PSA PSA PSA: if you use LVM with USB drives you will get absolutely *abysmal* performance by default (especially on HDDs). You must use `pvcreate --dataalignment 2048s` to fix it. Fix requires re-creating PV and copying all data.
The problem is they queried /sys/block/$disk/queue/optimal_io_size and trusted it over physical_block_size. And: # sg_inq -p 0xb0 /dev/sda [...] Optimal transfer length granularity: 8 blocks Maximum transfer length: 65535 blocks Optimal transfer length: 65535 blocks
-
-
Is that normal for USB drives? My SanDisk Extreme reports 0 as optimal_io_size.
-
I think it might be mostly UAS drives, perhaps only SATA bridges. I have at least two that do it from different vendors.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.