Now that flash storage is becoming more popular, IO alignment
question keeps popping up more often than it used to when all we
had were rotating hard disk drives. I think the reason is very
simple – when systems only had one bearing hard disk drive (HDD)
as in RAID1 or one disk drive at all, you couldn’t really have
misaligned IO because HDDs operate in 512-byte sectors and that’s
also the smallest amount of disk IO that systems can do. NAND
flash on the other hand can have a page size of 512-bytes,
2kbytes or 4kbytes (and often you don’t know what size it is
really) so the IO alignment question becomes more relevant.
It was and still is, however, relevant with HDD RAID storage –
technology we have been using for many years – when there’s
striping like in RAID0, 5, 6 or any variation of them (5+0, 1+0,
1+0+0 etc.). While IO inside the RAID is perfectly aligned to
disk sectors (again due to the fact operations are done in …
[Read more]