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.
-
-
We're talking 20x performance hit kind of atrocious. 10 minutes for an rsync vs 30 seconds. Seriously. This is fucking bad.
Show this thread -
It seems this may only affect some enclosures (many/most UAS ones?). Check with `pvs -o +pe_start --units s`. If you get an odd or non-multiple-of-8 "1st PE" column then you're affected.
Show this thread
End of conversation
New conversation -
-
-
Apparently querying /sys/block/$disk/queue/physical_block_size was too hard??
-
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
- Show replies
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.