[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: 37.5% boot time reduction in Lenny is possible (recipe)



On Mon, Jun 02, 2008 at 08:01:50PM +0200, Petter Reinholdtsen wrote:
> Right.  Did you see if readahead helped?

No, I never tried that.  I could try that out and see.

> I suspect the makemode of startpar might work better.  It is not
> enabled yet.  I have to spend some time to test it, as it require a
> rewrite if init.d/rc.  It checks the system load and will start things
> based on the declared dependencies, not the sequence number.  This is
> how insserv and startpar is used by the authors, so I suspect it is
> the optimal way to do it. :)

I guess I better make sure all init scripts declare dependancies
correctly.  That can sometimes be hard given how various network related
things can affect each other.

> I am still curious on  your boot sequence, though.

Well I have this for rcS.d:
lrwxrwxrwx 1 root root  18 May 16 16:09 S01glibc.sh -> ../init.d/glibc.sh
lrwxrwxrwx 1 root root  21 May 16 16:09 S02hostname.sh -> ../init.d/hostname.sh
lrwxrwxrwx 1 root root  24 May 16 16:09 S02mountkernfs.sh -> ../init.d/mountkernfs.sh
lrwxrwxrwx 1 root root  26 May 16 16:09 S04mountdevsubfs.sh -> ../init.d/mountdevsubfs.sh
lrwxrwxrwx 1 root root  18 May 16 16:09 S05bootlogd -> ../init.d/bootlogd
lrwxrwxrwx 1 root root  22 May 16 16:09 S10checkroot.sh -> ../init.d/checkroot.sh
lrwxrwxrwx 1 root root  20 May 16 16:09 S11hwclock.sh -> ../init.d/hwclock.sh
lrwxrwxrwx 1 root root  17 May 16 16:09 S12mtab.sh -> ../init.d/mtab.sh
lrwxrwxrwx 1 root root  24 May 16 16:09 S18ifupdown-clean -> ../init.d/ifupdown-clean
lrwxrwxrwx 1 root root  21 May 23 11:45 S20loadmodules -> ../init.d/loadmodules
lrwxrwxrwx 1 root root  27 May 16 16:09 S20module-init-tools -> ../init.d/module-init-tools
lrwxrwxrwx 1 root root  18 May 16 16:09 S20modutils -> ../init.d/modutils
lrwxrwxrwx 1 root root  23 May 23 11:45 S21remove8139too -> ../init.d/remove8139too
lrwxrwxrwx 1 root root  26 May 16 16:09 S25libdevmapper1.02 -> ../init.d/libdevmapper1.02
lrwxrwxrwx 1 root root  20 May 16 16:09 S30checkfs.sh -> ../init.d/checkfs.sh
lrwxrwxrwx 1 root root  22 May 23 11:45 S30getinventory -> ../init.d/getinventory
lrwxrwxrwx 1 root root  19 May 16 16:09 S30procps.sh -> ../init.d/procps.sh
lrwxrwxrwx 1 root root  21 May 16 16:09 S31chassisdraw -> ../init.d/chassisdraw
lrwxrwxrwx 1 root root  24 May 23 11:45 S31earlybootclean -> ../init.d/earlybootclean
lrwxrwxrwx 1 root root  17 May 23 11:45 S31lpcfpga -> ../init.d/lpcfpga
lrwxrwxrwx 1 root root  21 May 16 16:09 S32alertdclean -> ../init.d/alertdclean
lrwxrwxrwx 1 root root  17 May 23 11:45 S32hwprobe -> ../init.d/hwprobe
lrwxrwxrwx 1 root root  16 May 16 16:09 S33alertd -> ../init.d/alertd
lrwxrwxrwx 1 root root  23 May 23 11:45 S33enablesystems -> ../init.d/enablesystems
lrwxrwxrwx 1 root root  16 May 23 11:45 S33hwprep -> ../init.d/hwprep
lrwxrwxrwx 1 root root  21 May 16 16:09 S35mountall.sh -> ../init.d/mountall.sh
lrwxrwxrwx 1 root root  21 May 16 16:09 S36configwatch -> ../init.d/configwatch
lrwxrwxrwx 1 root root  24 May 23 11:45 S36iprouteconvert -> ../init.d/iprouteconvert
lrwxrwxrwx 1 root root  31 May 16 16:09 S36mountall-bootclean.sh -> ../init.d/mountall-bootclean.sh
lrwxrwxrwx 1 root root  21 May 23 11:45 S36mountvarlog -> ../init.d/mountvarlog
lrwxrwxrwx 1 root root  16 May 16 16:09 S37setkey -> ../init.d/setkey
lrwxrwxrwx 1 root root  18 May 16 16:09 S37watchdog -> ../init.d/watchdog
lrwxrwxrwx 1 root root  18 May 16 16:09 S38pppd-dns -> ../init.d/pppd-dns
lrwxrwxrwx 1 root root  17 May 23 11:45 S38ptpfpga -> ../init.d/ptpfpga
lrwxrwxrwx 1 root root  19 May 23 11:45 S38purgebist -> ../init.d/purgebist
lrwxrwxrwx 1 root root  19 May 16 16:09 S39dns-clean -> ../init.d/dns-clean
lrwxrwxrwx 1 root root  18 May 16 16:09 S39ifupdown -> ../init.d/ifupdown
lrwxrwxrwx 1 root root  23 May 16 16:09 S39shorewallstop -> ../init.d/shorewallstop
lrwxrwxrwx 1 root root  20 May 16 16:09 S40networking -> ../init.d/networking
lrwxrwxrwx 1 root root  28 May 16 16:09 S40networking-wanpipe -> ../init.d/networking-wanpipe
lrwxrwxrwx 1 root root  19 May 27 10:47 S40shorewall -> ../init.d/shorewall
lrwxrwxrwx 1 root root  15 May 16 16:09 S41ipsec -> ../init.d/ipsec
lrwxrwxrwx 1 root root  18 May 16 16:09 S42end2endb -> ../init.d/end2endb
lrwxrwxrwx 1 root root  18 May 23 11:45 S42gre.init -> ../init.d/gre.init
lrwxrwxrwx 1 root root  18 May 23 11:45 S42ledboard -> ../init.d/ledboard
lrwxrwxrwx 1 root root  17 May 16 16:09 S43portmap -> ../init.d/portmap
lrwxrwxrwx 1 root root  21 May 16 16:09 S45mountnfs.sh -> ../init.d/mountnfs.sh
lrwxrwxrwx 1 root root  31 May 16 16:09 S46mountnfs-bootclean.sh -> ../init.d/mountnfs-bootclean.sh
lrwxrwxrwx 1 root root  20 May 16 16:09 S47lm-sensors -> ../init.d/lm-sensors
lrwxrwxrwx 1 root root  19 May 16 16:09 S50l2tunneld -> ../init.d/l2tunneld
lrwxrwxrwx 1 root root  19 May 16 16:09 S50serserver -> ../init.d/serserver
lrwxrwxrwx 1 root root  21 May 16 16:09 S55bootmisc.sh -> ../init.d/bootmisc.sh
lrwxrwxrwx 1 root root  15 May 23 11:45 S55irigb -> ../init.d/irigb
lrwxrwxrwx 1 root root  17 May 16 16:09 S55urandom -> ../init.d/urandom
lrwxrwxrwx 1 root root  15 May 23 11:45 S90l2tpd -> ../init.d/l2tpd
lrwxrwxrwx 1 root root  18 May 16 16:09 S90poe.init -> ../init.d/poe.init
lrwxrwxrwx 1 root root  14 May 16 16:09 S90ptpd -> ../init.d/ptpd
lrwxrwxrwx 1 root root  30 May 16 16:09 S99stop-bootlogd-single -> ../init.d/stop-bootlogd-single

And this for rc2.d:
lrwxrwxrwx 1 root root  21 May 23 11:45 K36mountvarlog -> ../init.d/mountvarlog
lrwxrwxrwx 1 root root  18 May 16 16:09 S10sysklogd -> ../init.d/sysklogd
lrwxrwxrwx 1 root root  15 May 16 16:09 S11klogd -> ../init.d/klogd
lrwxrwxrwx 1 root root  15 May 16 16:09 S15bind9 -> ../init.d/bind9
lrwxrwxrwx 1 root root  17 May 16 16:09 S18portmap -> ../init.d/portmap
lrwxrwxrwx 1 root root  20 May 16 16:09 S20keepalived -> ../init.d/keepalived
lrwxrwxrwx 1 root root  15 May 16 16:09 S20linkd -> ../init.d/linkd
lrwxrwxrwx 1 root root  17 May 16 16:09 S20makedev -> ../init.d/makedev
lrwxrwxrwx 1 root root  23 May 16 16:09 S20openbsd-inetd -> ../init.d/openbsd-inetd
lrwxrwxrwx 1 root root  16 May 16 16:09 S20quagga -> ../init.d/quagga
lrwxrwxrwx 1 root root  15 May 16 16:09 S20rsync -> ../init.d/rsync
lrwxrwxrwx 1 root root  18 May 16 16:09 S20smcroute -> ../init.d/smcroute
lrwxrwxrwx 1 root root  15 May 16 16:09 S20snmpd -> ../init.d/snmpd
lrwxrwxrwx 1 root root  13 May 16 16:09 S20ssh -> ../init.d/ssh
lrwxrwxrwx 1 root root  16 May 16 16:09 S20webmin -> ../init.d/webmin
lrwxrwxrwx 1 root root  20 May 16 16:09 S21nfs-common -> ../init.d/nfs-common
lrwxrwxrwx 1 root root  13 May 16 16:09 S23ntp -> ../init.d/ntp
lrwxrwxrwx 1 root root  22 May 16 16:09 S40dhcp3-server -> ../init.d/dhcp3-server
lrwxrwxrwx 1 root root  13 May 16 16:09 S89atd -> ../init.d/atd
lrwxrwxrwx 1 root root  14 May 16 16:09 S89cron -> ../init.d/cron
lrwxrwxrwx 1 root root  18 May 16 16:09 S99rc.local -> ../init.d/rc.local
lrwxrwxrwx 1 root root  18 May 16 16:09 S99restartd -> ../init.d/restartd
lrwxrwxrwx 1 root root  19 May 16 16:09 S99rmnologin -> ../init.d/rmnologin
lrwxrwxrwx 1 root root  23 May 16 16:09 S99stop-bootlogd -> ../init.d/stop-bootlogd
lrwxrwxrwx 1 root root  20 May 23 11:45 S99zrunonboot -> ../init.d/zrunonboot

A few non standard things in there for unusual hardware.

I can try and play with the boot time logging thing sometime.

-- 
Len Sorensen


Reply to: