Gentoo Archives: gentoo-user

From: "Canek Peláez Valdés" <caneko@×××××.com>
To: Volker Armin Hemmann <volkerarmin@××××××××××.com>
Cc: gentoo-user@l.g.o
Subject: Re: [gentoo-user] new machine : start-up time
Date: Sat, 13 Oct 2012 22:36:38
Message-Id: CADPrc82Q8ngE8XuGZY-EGK6QJncbViTbko4gDA6g7m0UQrefdg@mail.gmail.com
In Reply to: Re: [gentoo-user] new machine : start-up time by Volker Armin Hemmann
1 On Sat, Oct 13, 2012 at 5:28 PM, Volker Armin Hemmann
2 <volkerarmin@××××××××××.com> wrote:
3 > Am Samstag, 13. Oktober 2012, 16:40:45 schrieb Canek Peláez Valdés:
4 >> On Sat, Oct 13, 2012 at 4:14 PM, Volker Armin Hemmann
5 >>
6 >> <volkerarmin@××××××××××.com> wrote:
7 >> > Am Samstag, 13. Oktober 2012, 15:57:31 schrieb Canek Peláez Valdés:
8 >> >> On Sat, Oct 13, 2012 at 3:40 PM, Canek Peláez Valdés <caneko@×××××.com>
9 >> >
10 >> > wrote:
11 >> >> > On Sat, Oct 13, 2012 at 3:24 PM, Philip Webb <purslow@××××××××.net>
12 > wrote:
13 >> >> >> Regulars will remember the threads re the machine I built recently.
14 >> >> >> I thought they mb interested in the start-up time now all is working :
15 >> >> >> Gigabyte BIOS 10 s , Linux Lilo prompt - login prompt 8 s ,
16 >> >> >> 'startx' - GUI ready 4 s : total 22 s + entering userid+password ;
17 >> >> >> I start the I/net connection (Dhcpcd) manually from the GUI ( 15 s ).
18 >> >> >> I assume most of the speed is attributable to the SSD,
19 >> >> >> perhaps a bit to the 1600 MHz memory; of course, Gentoo shares the
20 >> >> >> honors;
21 >> >> >> my desktop manager is Fluxbox & I start apps on desktops manually.
22 >> >> >
23 >> >> > Toshiba Portégé Z830, with an iCore 5 at 1.60GHz, 6 GB of memory, and
24 >> >> > a tiny 128 GB SSD. It takes 12 seconds from GRUB to GDM, and from the
25 >> >> > time I enter my password and my GNOME 3 desktop is ready it takes
26 >> >> > another 6 seconds, so 18 seconds in total (plus how much it takes for
27 >> >> > me to click in my user and enter my password).
28 >> >> >
29 >> >> > Like you, I attribute most of the speed gain to the SSD. The rest is
30 >> >> > systemd.
31 >> >>
32 >> >> Damn, is GNOME fat. I booted to text console (disabled GDM), and I
33 >> >> also disabled plymouth. From GRUB2 to login prompt it takes less than
34 >> >> 6 seconds, so the really slow part is starting GDM and then switching
35 >> >> to GNOME 3. The BIOS is pretty fast, it takes 4 seconds from power on
36 >> >> to the GRUB2 menu.
37 >> >>
38 >> >> The fast part (GRUB2->login prompt) is because of systemd.
39 >> >
40 >> > I doubt that,
41 >>
42 >> Install systemd and do the test; I got the numbers to prove it.
43 >> systemd is consistently faster than OpenRC (which doesn't even
44 >> properly support parallel starting of services), sometimes several
45 >> times faster.
46 >>
47 >> Luca Barbato mentioned about a way to make OpenRC use busybox in
48 >> reentrant mode; the difference in speed in that case should be less.
49 >> However, the fact is that OpenRC doesn't support parallel start of
50 >> services; it said so in its own documentation:
51 >>
52 >> https://bugs.gentoo.org/show_bug.cgi?id=391945#c10
53 >>
54 >> "rc_parallel has never officially been declared a stable feature (see
55 >> the comments in rc.conf regarding this)."
56 >>
57 >> So no matter how fast the scripts could execute (which anyway will be
58 >> slower than small highly optimized C programs), the lack of proper
59 >> parallelization will make OpenRC slower than systemd.
60 >>
61 >> So doubt as much as you want. It doesn't change the fact that (in this
62 >> particular issue), you are wrong.
63 >>
64 >
65 > and since I use openrc with parallel startup, I just doubt it even more.
66
67 So you know better than the devs. I'm sure you believe so; good luck with that.
68
69 I would do the test, though; otherwise you are talking about beliefs, not facts.
70
71 > The place where I lose time is starting of my five md-raids. And that is
72 > something not even systemd can speed up.
73
74 That may be true, but until someone does the benchmark we don't know.
75
76 Regards.
77 --
78 Canek Peláez Valdés
79 Posgrado en Ciencia e Ingeniería de la Computación
80 Universidad Nacional Autónoma de México