Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] initial compile time
Date: Mon, 28 Aug 2017 16:52:58
Message-Id: 8dd22dab-9958-3427-cb90-a1330c6ee7d5@gmail.com
In Reply to: Re: [gentoo-user] initial compile time by Rich Freeman
1 On 28/08/2017 18:47, Rich Freeman wrote:
2 > On Mon, Aug 28, 2017 at 9:08 AM, Alan McKinnon <alan.mckinnon@×××××.com> wrote:
3 >> On 28/08/2017 13:41, mad.scientist.at.large@××××××××.com wrote:
4 >>> Ok, i'm starting to understand the install instructions, a steeper curve
5 >>> than i expected but still way easier than LFS.
6 >>> So, on a dual core athlon II 6000 (two cores, 3ghz) roughly how long
7 >>> will stage3 take to compile, roughly?
8 >>
9 >> How many extra USE flags did you set? What software did you decide to
10 >> add? How old is the stage 3 you used? A recent one will obviously need
11 >> fewer recompiles than a 6-month old one. But to portage it's all the
12 >> same - make a list of stuff to be done and do it from the beginning.
13 >>
14 >
15 > I imagine that some people like to rebuild everything after changing
16 > their CFLAGS, but there is certainly no requirement to do so.
17 >
18 > Also, I tend to favor getting the system booting on its own before
19 > fiddling with it. There isn't much you need to build before you have
20 > the system booting, and at that point you're at least running while
21 > you're doing the rest. If I'm going to switch the init implementation
22 > then I'll do that before the first boot since that impacts the grub
23 > configuration. Systemd does take a bit to build, but it is still a
24 > far cry from doing a ton of rebuilds.
25 >
26 > However, if you do have a /etc/portage configuration you like, and a
27 > /var/lib/portage/world, then you can just update these and the profile
28 > and just do an emerge -NDu world and watch it all come into place. I
29 > have a typical set of configuration files I deploy on any new system
30 > so I will often build this stuff directly before rebooting (which
31 > includes stuff like systemd, vim, screen, grub, dracut, and so on).
32 >
33
34 Good points Rich.
35
36 I forgot to mention there are things that /significantly/ improve
37 compile times. Top of the list is /var/tmp/portage on tmpfs.
38
39 On 16G Ram and 8G tmpfs, I see total build times usually halved.
40 firefox, thunderbird, libreoffice, icu and webkit all benefit, and those
41 packages seem to be updating more often than most these days as well as
42 being the biggest time hogs
43
44
45 --
46 Alan McKinnon
47 alan.mckinnon@×××××.com

Replies

Subject Author
Re: [gentoo-user] initial compile time allan gottlieb <gottlieb@×××.edu>