
On Tue, 10 Apr 2012, Tim Connors wrote:
On Tue, 10 Apr 2012, Trent W. Buck wrote:
Toby Corkindale wrote:
Do watch out for that sector alignment gotcha on Linux.. New tools tend to get it right, old ones won't.
That is the case as far as partition alignment at 4k blocks (parted /dev/sda check-align optimal 1), but Ty Ts'o had a blog post indicating it was non-trivial to also align the mdadm and lvm layers. That was for the much larger SSD write-erase blocks, but IIRC it would apply equally to 4k blocks. Can't find the article now, though... :-/
http://thunk.org/tytso/blog/2009/02/20/aligning-filesystems-to-an-ssds-erase...
But poofully, right now that's a "connection refused".
So interweb archive it is then!
http://web.archive.org/web/20101224211915/http://thunk.org/tytso/blog/2009/0...
Ho Ho Ho Ho. "And avoiding fsync() in applications will also be helpful, since a cache flush operation will force the SSD to write to an erase block even if it isn’t completely filled." (if you can't tell, I have a pet hate for people that insist fsync() is the only true way to ensure data integrity. Use a reliable filesystem instead!) -- Tim Connors