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

FW: Faster boot by running init.d scripts in parallel



I think this is interesting also for d-u. Hint: Petter Reinholdtsen is 
(one of) the maintainer of sysvinit and insserv.

Regards,
Andrei

----- Forwarded message from Petter Reinholdtsen <pere@hungry.com> -----

Date: Thu, 10 Sep 2009 13:05:32 +0200
From: Petter Reinholdtsen <pere@hungry.com>
To: debian-devel@lists.debian.org
Subject: Faster boot by running init.d scripts in parallel
User-Agent: Mutt/1.5.19 (2009-01-05)
Sender: Petter Reinholdtsen <petter.reinholdtsen@usit.uio.no>

One "hidden" feature of the current Debian boot sustem, is the ability
to run the init.d scripts in parallel.  This require dependency based
boot sequencing to be enabled, and the init.d script dependencies to
be complete and correct to work reliably.  The feature is hidden and
undocumented, because we plan to drop the CONCURRENCY variable in the
future and make concurrent booting the default when dependency based
boot sequencing is enabled.

If you want to test this feature in testing or unstable, use this
command:

  echo CONCURRENCY=makefile >> /etc/default/rcS

It will enable makefile style concurrency, and run N scripts in
parallel during boot, where N is the number of CPUs or cores on the
machine.  This only work when dependency based boot sequencing.  This
can be enabled using

  dpkg-reconfigure insserv sysv-rc

If some services fail to work properly, the problem is most likely
because of bugs in the init.d script headers.  See
<URL: http://wiki.debian.org/LSBInitScripts/DependencyBasedBoot > for
clues on how to fix it.  Most scripts have correct enough dependency
information, but help is needed to find and fix the remaning few with
bugs.  Please make sure to usertag reported bugs to make them show up
on
<URL: http://bugs.debian.org/cgi-bin/pkgreport.cgi?usertag=initscripts-ng-devel@lists.alioth.debian.org >

If you want to improve boot speed even more, I recommend installing
the readahead-fedora packages, and boot once with the 'profile' kernel
option to adjust its readahead list to the list of files needed during
boot.

Happy hacking,
-- 
Petter Reinholdtsen


-- 
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

----- End forwarded message -----

Attachment: signature.asc
Description: Digital signature


Reply to: