tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: write alignment matters?
> You have to use multiple of the sector size here (usually 512 bytes,
> but can be 4k now) so I don't find it unreasonable to also expect the
> buffer to be aligned on the machine's natural integer size.
If the interface were being designed now, I wouldn't either.
But the interface is much older than that, and, even if it's not
codified, there's a lot of history behind the notion that userland
alignment of write() buffers affects, at most, performance, to the
point where I consider it part of the interface.
/~\ The ASCII Mouse
\ / Ribbon Campaign
X Against HTML mouse%rodents-montreal.org@localhost
/ \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B
Home |
Main Index |
Thread Index |
Old Index