Jeremy Huntwork wrote: > On 2/4/12 4:41 PM, Bruce Dubbs wrote: >> Increased or decreased? How much? > > Sorry, yes, decreased. > > Hmm, but with already minimal systems like ours, apparently not enough > to really matter. I hadn't accurately measured the difference between > bash and dash on the bootscripts until you asked but I did just now, and > here's the results. > > Bash: .19 seconds > > Dash: .14 seconds > > Not a great increase, although I could see it adding up on a more > complex system.
Yes, it would be slightly more in a more complex system, but not enough to be noticeable to the user. Remember that when an executable terminates, it is not flushed from memory unless there is a need. When the same program runs again, it is not reloaded from the disk, but just restarted from memory. The program is reinitialized of course, but that is normally very quick. In non-interactive mode, bash does not read /etc/profile, etc. In other words, whether it's bash or dash or ash, the shell program is only read in from disk once for all the bootscripts. The only other difference is the time it takes to actually run the scripts. For our scripts that are generally about 5-10 statements for the start routine, any differences there would be hard to detect a timing difference. The longest part would be the time to process /lib/lsb/init-functions for each script, but that's quite a bit shorter than any commercial distro that I've seen. > I tested by changing my call to /etc/default/rc in the inittab to 'time > /etc/default/rc ...' Also, I start two extra services in my base system, > fcron and sshd. Yes, I had sshd too, but not fcron. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page