Re: [OT] speeding boot process (was Re: [ANNOUNCE] hotplug-ng 001release)

From: Helge Hafting
Date: Tue Feb 15 2005 - 08:21:07 EST


Bernd Petrovitsch wrote:

On Tue, 2005-02-15 at 09:55 +0100, Helge Hafting wrote:
[...]


The init-script dependencies are specifies already - at least on debian.



These are not dependencies but "only" the sequence of startup (and it is
not only Debian but also Fedora/RedHat, SuSE, Mandrake and probably all
except Gentoo).


Yes, it is a sequence. It it derived from real dependencies though,
where nondependent stuff have the same number.

Yuo get a much stricter ordering and sorting (and thus much simpler to
implement in a shell script).


Correct.

This would be a win (especially if the numbers are tweked to tune this)
with a relatively small effort.
However for real dependencies and parallelism you want the info similar
to creat a Makefile from it (i.e. the explicit dependency from service X
to service Y). As a consequence you can get rid of the numbers (since
they are not needed any more).


Now that is a really good idea. Init could simply run "make -j init2" to
enter runlevel 2. A suitable makefile would list all dependencies, and
of course the targets needed for "init2", "init3" and so on.

It might not be that much work either. Parallel make exists already, and the
first attempt at a makefile could simply implement the current sequence that
is known to work. Then the tweaking comes. :-)

Helge Hafting


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/