-
jbk
ok
-
holin
is there currently a recommended way of setting zfs ashift parameter for SSDs or is it done automagically?
-
holin
for advanced format HDDs I've set ashift=12 just to make sure
-
holin
looking at a few SSD I probably didn't set it, "zpool get ashift mypool" shows that ashift=0 and zdb shows =9
-
jclulow
holin: It depends on what the SSD firmware tells us about the block size of the device
-
jclulow
Some SSDs correctly say they support a physical block size (e.g., 4K) that is distinct from the logical block size (e.g., 512B)
-
jclulow
And some just say the logical size
-
holin
does illumos have any tools to get that? smartctl shows 512/512 for all (SATA) SSDs that I have
-
jclulow
You know, I actually don't remember how to fish it out
-
jclulow
Ultimately if you absolutely want a 4k (=12) pool, you should probably specify it
-
jclulow
But we will under many conditions do the right thing
-
holin
Frankly, I've never cared about this on SSDs, thinking that trying to too clever on the user's side will likely just go against the SSD firmware trying to also be clever, but now I got some new disks and thought about trying to be clever nonetheless :-)
-
jclulow
If they are NVMe disks, you may be able to reconfigure/"reformat" them to be 4k native
-
jclulow
Which might allow them to perform better, depending on how smart the firmware is
-
jclulow
See the "format" subcommand in nvmeadm(8)
-
jbk
haha.. i managed to make reboot(1M) segfault somehow
-
jbk
actually.. ficlVmInnerLoop is crashing (called by be_get_boot_args)
-
holin
one other thing regarding SSDs: does setting autotrim make sense? On linux I have usually a cron job doing manual TRIM once a week..
-
jclulow
I think trim has generally been found to improve performance on consumer grade SSDs, even on some enterprise SSDs that supposedly don't need it
-
jclulow
It's pretty deep firmware magic though, so it could also make things worse
-
jclulow
If you care about the performance you'll probably need to do experiments with your particular workload
-
jclulow
and your particular drives and firmware revisions
-
jbk
it also wouldn't be surprising if it also depended on how full your SSD is
-
holin
for the drives at hand, longevity is more important than performance. These are consumer grade SSDs fwiw.
-
holin
btw. does illumos have the NCQ TRIM exceptions for Samsung EVO 850/860 drives that Linux has?
-
holin
have some of those around, too, and might end up using them for illumos deployments
-
tsoome_
jbk core?
-
holin
what could possibly make a disk not seen by illumos? Two SSDs behind mpt2sas controller and linux sees them both, while illumos (oi) only sees one according to "format" and also /dev/rdsk
-
holin
identical, unformatted (unpartitioned) SSDs
-
holin
previously the same bays/slots had two other disks which showed up fine
-
holin
i'm thinking that not having partition table has something to do with this..
-
andyf
holin - do they show up in the output of `diskinfo`?
-
holin
no, same thing as format
-
holin
i could try partitioning in linux and see how that goes
-
andyf
diskinfo shouldn't care about the partition table - any difference if you run it a second time?
-
andyf
Another command that shows disks is `iostat -En`
-
holin
iostat shows the same thing also
-
holin
one'd think that if it was the disks (incompatible etc.), neither would show up; if it was the controller, the previous two disks wouldn't have worked either
-
andyf
That's strange. It definitely sounds like it's worth doing what you suggested
-
holin
d'oh. gave them gpt disklabels with parted and still no dice
-
holin
my second guess: the disks differ only by the last three digits in their serial# so maybe whatever in illumos generated the disk id's uses too few digits and gets confused(?)
-
holin
(i.e. considers the disks the same)
-
holin
the previous, also identical, disks had a bigger difference in serial#
-
holin
the ports on the motherboard get names like c3t1d0 c3t2d0 c3t3d0 and so forth
-
holin
these disk behind the mpt2sas controller all start with c4t3 juxtaposed with something generated from the disk identification info
-
holin
so, it would at least appear possible to have collisions in device ids
-
gwr
Here's an interesting discovery: With MTU=9000 on all of: a vnic on an aggr over two mlxcx physical interfaces, something above mac_ring_tx is dividing outbound messages into 1460 byte segments. That means mlxcx always copies here:
src.illumos.org/source/xref/illumos…/mlxcx/mlxcx_ring.c?r=7fdea60d#2268
-
gitomat
[illumos-gate] 15016 find_elf should cope with O_DIRECTORY absence -- Yuri Pankov <ypankov⊙tc>
-
richlowe
gwr: a question for dan, or dtrace, or both?
-
jclulow
gwr: Is it a local LAN, or is it possible there has been some path MTU detection keeping it down