Re: QAD patch to speed up lilo

Werner Almesberger (almesber@lrc.epfl.ch)
Wed, 21 Feb 1996 20:48:07 +0100 (MET)


> Quick and dirty patch to last_dev to remember the last
> parent/major/increment result and return the same result if the next
> call is for the same parameters. Cuts readdir/stat calls down by 90%.

Nice try ;-) ftp://lrcftp.epfl.ch/pub/linux/local/lilo/lilo.18dev.tar.gz
achieves the following reductions on one of my machines:

stat 3801 -> 19 (- 99%)
readdir 3783 -> 0 (-100%)
syscalls 8525 -> 934 (- 89%)

The changes are admittedly a bit more complex ...

- Werner

-- 
  _________________________________________________________________________
 / Werner Almesberger, DI-LRC,EPFL,CH   werner.almesberger@lrc.di.epfl.ch /
/_IN_R_133__Tel_+41_21_693_6621__Fax_+41_21_693_6610_____________________/