Unix Technical Forum

Re: boot faster by running rc scrips in parallel

This is a discussion on Re: boot faster by running rc scrips in parallel within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> In article <slrnbpiebv.1qd.aku@darkstar.example.net>, aku wrote: (Hmmm, darkstar.example.net, that hostname sounds familiar! > Came across this: http://linuxdevices.com/articles/AT7...html#resources > It's tailored ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-18-2008, 07:04 PM
/dev/rob0
 
Posts: n/a
Default Re: boot faster by running rc scrips in parallel

In article <slrnbpiebv.1qd.aku@darkstar.example.net>, aku wrote:

(Hmmm, darkstar.example.net, that hostname sounds familiar!

> Came across this: http://linuxdevices.com/articles/AT7...html#resources
> It's tailored to redhat, but the idea is applicable to all distro's.
> In essence: use 'make -j' to start rc scripts in parallel and thereby
> potentially speed up the boot process.


I saw that and worked on a bash-centric way to start a limited number of
processes in parallel. In news://comp.unix.shell I posted these:
Message-Id: <slrnbodt4q.58d.rob0@ns.linux.box>
Message-Id: <slrnboec76.b41.rob0@ns.linux.box>
They're in the same thread. The latter contains the code which was
tested and proven to work, except for a potentially serious bug in the
next-to-last line: "rm $FILE" should be commented, because once the loop
completes, all pending jobs will be started if $FILE isn't there.

If limiting is not needed, as I suspect may be the case with startup
scripts, why not just start them in the background with "&"? The "make"
idea seems unnecessarily complex to me (but then again I should aver
that I didn't read it well enough for it all to sink in.) The ones which
must be completed first, such as rc.modules and rc.inet1 could be run in
the foreground, then all others in the background.

ISTM that booting speed is of little consequence, since I do it only
when forced (power outages usually.) YMMV.
--
/dev/rob0 - preferred_email=i$((28*28+28))@softhome.net
or put "not-spam" or "/dev/rob0" in Subject header to reply
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:03 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com