Bruce Dubbs <bruce.dubbs <at> gmail.com> writes:

> Slightly reformatted, it would be very nice as a hint. 


Thanks Bruce for your encouraging comments and for uploading the hint.


> Chris W. wrote:
> > Systemd
> > has matured quite a bit since last year and more distributions are
> > using it, among them Arch Linux.
> 
> OTOH, Gentoo is creating a udev fork.

I agree, that it should not be necessary to install all of systemd just
to use udev. The current ebuild (udev-193.ebuild) is still built from
systemd sources with patches and a custom makefile as far as I can tell.

Gentoo does have good support for systemd; ./configure
--with-distro=gentoo is integrated upstream. Just as fedora, suse,
debian, arch, altlinux, mandriva, mageia and angstrom. There is even an
unofficial slackware package ;-) A few distros have adopted systemd as
the default init system.

> Did you ever run 'mount' from the command line?

Yeah, and I read your discussion about it with Zach on this list from
January. I only see 4 cgroups listed though; not as many as in your
example. But definitely there is room for improvement here. I would
prefer to have an option in mount to hide cgroups and all the tmpfs.
Maybe submit a bug-report/feature-request to
http://vger.kernel.org/vger-lists.html#util-linux, as this is an issue
of the kernel exposing cgroups and `mount` (without the mtab file)
reporting all kinds of stuff we don't really want to see.

> > Bootup and shutdown times are considerably faster than
> > with SysVinit.
> 
> Do you have any data?  How fast can you get from grub to the login 
> prompt using systemd?  sysvinit?  What hardware are you using?

LFS 7.2 from grub to login prompt and back with 2.4 Ghz (dual)
Core i5 on the notebook running in Parallels 8, no SSD:

    SysVinit: 15 sec. bootup, 14 sec. shutdown
    Systemd : 4.5 sec. bootup, 4 sec. shutdown

Average over more than five bootups/shutdowns. Systemd logs show about
4.2 secs.  Using a 3.5.4. Linux kernel with mostly default options and
those needed for systemd. Apart from ksyslogd and udev, network and sshd
gets started.

Results on a shared Linode Xen Server, 512MB ram, 2.26 Ghz multi-core,
raid 6 storage using pvgrub, monitored from a Lish console:

    SysVinit: 6 sec. bootup, 22 sec. shutdown
    Systemd : 5 sec. bootup, 4 sec. shutdown

If I add Plone on the server, the differences become larger:

    SysVinit: 26 sec. bootup, 30 sec. shutdown
    Systemd : 11 sec. bootup, 10 sec. shutdown


> > How to install Systemd-193 on LFS
> > =================================
> 
> Very well written.  Slightly reformatted, it would be very nice as a 
> hint.  I do think the set of instructions is longer than anything else
in LFS/BLFS. 
>    -- Bruce

One reason the instructions got longer, was, because I could not get
systemd to work without uninstalling udev-188 first. The custom lfs
makefile installs udev in locations, that I find hard to match with the
configure options of systemd. Also, if systemd is installed in /lib,
rather than /usr/lib, D-Bus suddenly cannot find it any more. Maybe
someone could suggest a more elegant solution to this. 

Also replacing one init system with another covers a lot of ground.
In the LFS book the bootscripts make up more than 50 pages, 
and the instructions for sysvinit another 5 pages.
Most of this is covered by systemd and a number of much smaller
unit files.

Chris

---
(I hope this didn't get double-posted, as gmane seems to have swallowed my post 
yesterday.)
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to