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.
-
Show this thread
-
Seriously, on most current drives (512e) random write performance will be *abso-fucking-lutely atrocious* unless you fix this, and SSDs will have increased wear.
1 reply 3 retweets 6 likesShow this thread -
This happens because the USB drive maximum transfer size is 65535 sectors, and LVM in its infinite wisdom decides that's a good alignment value for PVs, thus de-aligning the physical sectors/FS blocks completely, causing read-modify-write cycles for every single small write.
2 replies 2 retweets 20 likesShow this thread -
We're talking 20x performance hit kind of atrocious. 10 minutes for an rsync vs 30 seconds. Seriously. This is fucking bad.
1 reply 3 retweets 20 likesShow 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.
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.