Gentoo Archives: gentoo-user

From: Matthew Cline <matthew.cline@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] gcc upgrade, portage niceness and distcc
Date: Thu, 04 May 2006 21:21:49
Message-Id: ff4f69a00605041346x5dac4b8dy65f3947cd5a50efb@mail.gmail.com
In Reply to: [gentoo-user] gcc upgrade, portage niceness and distcc by Daniel da Veiga
1 One solution to this issue is to use the faster server as a binary
2 host for the slower one. I was able to do something similar with a
3 slow laptop and a fast desktop machine. I'm not in front of my gentoo
4 machine right now, so I can't provide the exact details, but it goes
5 something like this:
6
7 On the fast machine (you can optionally do all of this inside a chroot):
8
9 1) set-up an ftp server and create a new user for the slower machine to use
10 2) in make.conf, set PKGDIR to a directory accessible to the ftp user
11 created above
12 3) for each package you want to install on the slow machine, run:
13 # emerge -B <package name> (Also, in make.conf, you can add
14 "buildpkg" in FEATURES to always build binary packages whenever you
15 emerge something.)
16
17 On the slow machine:
18
19 1) in make.conf, add "getbinpkg" to FEATURES
20 2) in make.conf, set PORTAGE_BINHOST to
21 "ftp://login:pass@fastmachine/path/to/binpkgs" where "fastmachine" is
22 the address of the fast machine used to build the packages.
23 3) then try to emerge the package on the slow machine
24
25
26 This setup worked for me, but, of course, YMMV
27
28 Matt
29
30 On 5/4/06, Daniel da Veiga <danieldaveiga@×××××.com> wrote:
31 > Hello List,
32 >
33 > I've been trying to upgrade an really old machine to the new gcc, and
34 > so, following the guide, I'm at the "emerge --oneshot
35 > sys-libs/libstdc++-v3" step. This old hardware suits my needs for a
36 > web server and MySQL mirror, but that's about the charge it can
37 > handle, so, I've set PORTAGE_NICENESS to 15, I don't mind if it take a
38 > whole month to compile, but it must be responsive to other processes
39 > all the time.
40 >
41 > What I've noticed is that the process is using nice 0 (that pretty
42 > much makes the machine unusable), and distcc is not working, if it
43 > was, I'm pretty sure the time would reduce greatly because other
44 > emerge operations that use it are getting super fast responses thanks
45 > to the distcc and ccache wonders (my host is already upgraded).
46 >
47 > Is there a way to compile this or migrate GCC with binary packages or
48 > something like it? I have compatible CHOSTs flags on both machines and
49 > the other one is a fast server.
50 >
51 > Any advice would be great.
52 >
53 > --
54 > Daniel da Veiga
55 > Computer Operator - RS - Brazil
56 > -----BEGIN GEEK CODE BLOCK-----
57 > Version: 3.1
58 > GCM/IT/P/O d-? s:- a? C++$ UBLA++ P+ L++ E--- W+++$ N o+ K- w O M- V-
59 > PS PE Y PGP- t+ 5 X+++ R+* tv b+ DI+++ D+ G+ e h+ r+ y++
60 > ------END GEEK CODE BLOCK------
61 >
62 > --
63 > gentoo-user@g.o mailing list
64 >
65 >
66
67 --
68 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] gcc upgrade, portage niceness and distcc Daniel da Veiga <danieldaveiga@×××××.com>