Why partition alignment?
Why partition alignment?
Posted Mar 11, 2010 8:43 UTC (Thu) by PO8 (guest, #41661)Parent article: 4K-sector drives and Linux
Posted Mar 11, 2010 15:50 UTC (Thu)
by BenHutchings (subscriber, #37955)
[Link] (3 responses)
Posted Mar 11, 2010 17:15 UTC (Thu)
by etienne_lorrain@yahoo.fr (guest, #38022)
[Link]
Posted Mar 11, 2010 18:39 UTC (Thu)
by PO8 (guest, #41661)
[Link] (1 responses)
Posted Mar 11, 2010 19:33 UTC (Thu)
by cmccabe (guest, #60281)
[Link]
So when they get a request for a 512-byte write, rather than doing the read-modify-write of a 16k block, they wait to see if the user wants to do any more I/O to that erase block.
The disadvantages of write coalescing are kind of obvious-- it's complex, requires temporary storage (for the un-coalesced 512-byte chunks). More buffering also means there's a longer window when power failures can result in data loss.
Overall, it's not something you want to do unless you absolutely have to. Performance and stability would be a lot better if the kernel knew about the real situation on the hardware.
Why partition alignment?
Why partition alignment?
1. The EXTxFS superblock is no more located at 1 Kbyte from the beginning of the partition but at the 3rd sector i.e. LBA=2.
It then only make unreadable the EXTxFS located on DVD-RAM or the EXTxFS images written to CDROM/DVDs.
Also, it seems strange to search for a signature in the middle of a sector when the device has 4096 bytes/sector.
2. The EXTxFS superblock is located at the 3rd *physical* sector of the partition.
Then to mount the FS the software has to scan few sectors to see if it find an EXT* superblock, and old mount command can probably handle the "-o offset=1" parameter.
Why partition alignment?
Why partition alignment?