Sorting disk I/O requests...
Posted Oct 2, 2002 11:49 UTC (Wed) by
axboe (
✭ supporter ✭, #904)
In reply to:
Sorting disk I/O requests... by Baylink
Parent article:
A new deadline I/O scheduler
You cannot say for sure where anything is on a hard drive, but you can make some basic assumptions that generally are true. The assumptions that the deadline io scheduler makes is that:
- Generally, sector x and x+1 are contigous on media.
That is it. I say generally, because x+1 might be remapped due to defects, for instance. But you'll find that in most cases the above is true. Of course drive makers are free to do whatever they want, but general performance breakdown would occur in _all_ os's if a streamed read from LBA 0 to LBA 2048, eg, would incur lots of seeks.
deadline doesn't even attempt to say that a seek from a to b is more or less costly than a seek from x to y.
Maybe you should read the source. I'll bet you it's a lot better source than some 'repairing pcs' book.
(
Log in to post comments)