Gentoo Archives: gentoo-amd64

From: "Conway S. Smith" <beolach@×××××××.net>
To: gentoo-amd64@l.g.o
Subject: Re: [gentoo-amd64] compiling on dual-cores - only 50% usage per cpu
Date: Sat, 10 Nov 2007 17:36:51
Message-Id: 20071110101301.43d7a269@mandalor.homelinux.net
In Reply to: [gentoo-amd64] compiling on dual-cores - only 50% usage per cpu by Bernhard Auzinger
1 On Sat, 10 Nov 2007 17:29:24 +0100
2 Bernhard Auzinger <e0026053@×××××××××××××××××.at> wrote:
3 > Hi everybody,
4 >
5 > it's not a important question, but has anybody of you noticed when
6 > compiling certain packages the load on both cpu's is only about 50%.
7 > I have the feeling that it happens with packages that can not be
8 > split up into two jobs. But in this case one cpu should be on 100%
9 > load and the other one at ~0%. Maybe someone of you has a good
10 > explanation for this behaviour.
11 >
12 > Rgds
13 > Bernhard
14
15 If you have a strong preference to having a process only use one CPU,
16 check out schedutils & CPU affinity. I also seem to recall reading
17 about a sysctl that let you modify how willing the scheduler is to
18 switch CPUs, but my quick google just now didn't find that, so maybe
19 I'm making that up.
20
21
22 Good luck,
23 Conway S. Smith

Attachments

File name MIME type
signature.asc application/pgp-signature