Re: elevator algorithm bug in ll_rw_blk.c

H. Peter Anvin (hpa@transmeta.com)
16 Nov 1998 03:58:56 GMT


Followup to: <Pine.LNX.3.96.981115160941.3229F-100000@52-a-usw.rb1.blv.nwnexus.net>
By author: Tim Smith <tzs@tzs.net>
In newsgroup: linux.dev.kernel
>
> On Sun, 15 Nov 1998, Vojtech Pavlik wrote:
> > You could apply a two way elevator well if you knew about the physical
> > characteristics of the drive. Unfortunately there is no way to find that out
> > for most modern drives.
>
> Actually, by analyzing timings on carefully selected request sequences, you
> can figure out pretty much all of the physical characteristics of most
> drives. See
>
> http://www.ece.cmu.edu/~ganger/papers/
>

Do you really want to bother keeping track of them, especially since
modern drives have different numbers of sectors per track?

I think the current algorithm (a) works well, (b) avoids penalizing
part of the disk, and (c) is simple.

-hpa

-- 
    PGP: 2047/2A960705 BA 03 D3 2C 14 A8 A8 BD  1E DF FE 69 EE 35 BD 74
    See http://www.zytor.com/~hpa/ for web page and full PGP public key
        I am Bahá'í -- ask me about it or see http://www.bahai.org/
   "To love another person is to see the face of God." -- Les Misérables

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/