Improving bootup time by 11 seconds
Hi list! I tried to find out if preloading can improve startup time if you use autologin (=no login screen, KDE gets started immediately). With just one small modification I managed to save 11.6 seconds on my system, bringing the time from 71 seconds down to 59.4! This would certainly be a great thing for the 1CD install, so I would like you to test this. I want to see if it is really that easy to improve performance. Setup: - activate autologin for a user that uses KDE - Insert a command in /etc/init.d/boot.localfs. Change
rc_status mount -av -t nonfs,noproc,nodevpts,nosmbfs -O no_netdev rc_status -v1 -r ;; stop)
to
rc_status mount -av -t nonfs,noproc,nodevpts,nosmbfs -O no_netdev /usr/bin/ionice -n6 /sbin/preload < /var/cache/preload/kde.preload & rc_status -v1 -r ;; stop)
The only remaining problem is timing. A stopwatch is too unprecise, so I have attached a file that you should place in /opt/kde3/share/autostart. When the system starts, it will open a small window that shows the current uptime of the system (first number, ignore the second one). I would really appreciate your feedback! Cheers nordi
On Friday 30 September 2005 17:14, nordi wrote:
I tried to find out if preloading can improve startup time if you use autologin (=no login screen, KDE gets started immediately). With just one small modification I managed to save 11.6 seconds on my system, bringing the time from 71 seconds down to 59.4! [...] I would really appreciate your feedback!
Very nice. I tested your modification on a rc1 standard install (with no SUPER modifications). On average it improved boot time by 3.8 seconds. Here are the numbers: Without modification 71.57 42.39 68.01 41.91 69.68 44.56 average: 69.7533 With modification 63.74 37.16 65.92 37.26 68.14 41.43 average: 65,9333 Cheers, Andreas
Andreas Simon wrote:
With modification 63.74 37.16 65.92 37.26 68.14 41.43
Those a pretty big differences, 63.7 vs 68.1 seconds seems like something is making the measurements rather unprecise. My measurements were 60.06, 58.26, 60.24 and 59.21. So the differences were _much_ smaller. Could it be that some strange hardware or a slow dhcp server is the reason for this deviation? I measured the whole thing with network cable unplugged and no extra hardware attached, trying to eliminate any hardware-dependant effects. Regards nordi
On Sunday 02 October 2005 14:52, nordi wrote:
Andreas Simon wrote:
With modification 63.74 37.16 65.92 37.26 68.14 41.43
Those a pretty big differences, 63.7 vs 68.1 seconds seems like something is making the measurements rather unprecise. My measurements were 60.06, 58.26, 60.24 and 59.21. So the differences were _much_ smaller.
Could it be that some strange hardware or a slow dhcp server is the reason for this deviation? I measured the whole thing with network cable unplugged and no extra hardware attached, trying to eliminate any hardware-dependant effects.
Regards nordi
4, 5 sec. I didn't turn off my 10.0 RC1 yet and SuSE 9.3 running more than one month.
On Sunday 02 October 2005 21:52, nordi wrote:
Those a pretty big differences, 63.7 vs 68.1 seconds seems like something is making the measurements rather unprecise. My measurements were 60.06, 58.26, 60.24 and 59.21. So the differences were _much_ smaller.
Could it be that some strange hardware or a slow dhcp server is the reason for this deviation? I measured the whole thing with network cable unplugged and no extra hardware attached, trying to eliminate any hardware-dependant effects.
Yes, definitely network issues. Thus I deactivated all network interfaces, unplugged the machine, and rebooted a couple of times. without modification 58.48 33.87 58.52 33.25 60.92 33.17 average: 59.3 with modification 59.00 32.99 59.94 32.72 58.05 32.21 average: 59.0 This time there are no big differences anymore but the added preload does seem to have nearly no effect. To unmake the hack I just did --- boot.localfs.modified 2005-10-01 20:09:54.000000000 +0200 +++ boot.localfs 2005-10-03 11:36:46.000000000 +0200 @@ -138,7 +138,6 @@ mount -fv -t devpts $optpts devpts /dev/pts rc_status mount -av -t nonfs,noproc,nodevpts,nosmbfs -O no_netdev - /usr/bin/ionice -n6 /sbin/preload < /var/cache/preload/kde.preload & rc_status -v1 -r ;; stop) Cheers, Andreas
participants (3)
-
ajtiM
-
Andreas Simon
-
nordi