Gentoo Archives: gentoo-user

From: Marc Joliet <marcec@×××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] systemd very slow to compile?
Date: Sun, 13 Sep 2015 11:16:42
Message-Id: 2457108.u4szjsHe4n@thetick
In Reply to: [gentoo-user] systemd very slow to compile? by walt
1 On Friday 11 September 2015 15:08:54 walt wrote:
2 >My very old and slow ~amd64 machine took 3 hours and 45-minutes to
3 >compile systemd-226 today.
4
5 Just out of curiosity: exactly how old? My dual-core amd64 system is almost 9
6 years old now, and systemd compiles in about 6 minutes:
7
8 # genlop -t systemd
9 * sys-apps/systemd
10
11 Fri Feb 20 21:54:48 2015 >>> sys-apps/systemd-216-r3
12 merge time: 6 minutes and 16 seconds.
13
14 Sun Feb 22 18:14:19 2015 >>> sys-apps/systemd-216-r3
15 merge time: 25 seconds.
16
17 Mon Apr 27 18:54:06 2015 >>> sys-apps/systemd-218-r3
18 merge time: 6 minutes and 5 seconds.
19
20 Sun Jul 12 00:28:48 2015 >>> sys-apps/systemd-218-r3
21 merge time: 6 minutes and 2 seconds.
22
23 Tue Aug 11 22:54:55 2015 >>> sys-apps/systemd-218-r3
24 merge time: 6 minutes and 5 seconds.
25
26 Mon Sep 7 23:57:50 2015 >>> sys-apps/systemd-218-r3
27 merge time: 12 minutes and 30 seconds.
28
29 (My system might have been pretty busy on that last one, and the second one
30 must have been a binpkg merge.)
31
32 >I was curious to know why it was taking so
33 >long to finish, so I used 'top' to see what was happening.
34 >
35 >Turns out that two instances of 'sh' were each using 15-30% of CPU for
36 >a total of 30-60% (the machine has two CPUs). cc1 never even showed up
37 >in 'top' although the compiler was obviously compiling code because the
38 >build did eventually finish.
39 >
40 >I tried the same on a faster 4-core machine and I could see much the
41 >same thing happening during the systemd build.
42 >
43 >Can anyone else reproduce what I'm seeing? Is this 'normal'?
44
45 Perhaps it is a problem only in the build system of newer systemd versions?
46 In any case, you can see my USE flags in the attached file for comparison
47 (sorry, I couldn't get KMail -- which I am still getting used to -- to stop
48 it's automatic line wrapping just for those lines, if it even supports that).
49
50 HTH
51 --
52 Marc Joliet
53 --
54 "People who think they know everything really annoy those of us who know we
55 don't" - Bjarne Stroustrup
56 --
57 Marc Joliet
58 --
59 "People who think they know everything really annoy those of us who know we
60 don't" - Bjarne Stroustrup
61 --
62 Marc Joliet
63 --
64 "People who think they know everything really annoy those of us who know we
65 don't" - Bjarne Stroustrup
66 --
67 Marc Joliet
68 --
69 "People who think they know everything really annoy those of us who know we
70 don't" - Bjarne Stroustrup

Attachments

File name MIME type
systemd use flags.txt text/plain
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] systemd very slow to compile? Peter Humphrey <peter@××××××××××××.uk>
Re: [gentoo-user] systemd very slow to compile? Neil Bothwick <neil@××××××××××.uk>