1 |
On Thursday 27 January 2011 19:56:23 Allan Gottlieb wrote: |
2 |
> On Thu, Jan 27 2011, Neil Bothwick wrote: |
3 |
> > On Thu, 27 Jan 2011 17:09:27 +0200, Nikos Chantziaras wrote: |
4 |
> >> > So on a 20 package world update, only 19 are faster while the 20th |
5 |
> >> > runs at the same speed? Where's the loss there? Even if the last were |
6 |
> >> > slower, it would be worth it. |
7 |
> >> |
8 |
> >> Given the amount of time unpack/configure/install of most packages |
9 |
> >> needs (very short), my observation is that it would not be worth it. |
10 |
> > |
11 |
> > Even if that were true, how much time would you have to save to justify |
12 |
> > adding -j 2 to EMERGE_DEFAULTS in make.conf? |
13 |
> > |
14 |
> > But it's not true, large packages spend a lot of time on these phases of |
15 |
> > the install. |
16 |
> |
17 |
> OK I'm convinced since I know that those phases do take noticeable time. |
18 |
> |
19 |
> I have a "4" processor i7 model 620 (2 cores, doubled for |
20 |
> hyperthreading) and have set MAKEOPTS="-j5". |
21 |
> If I add -jobs=2 to EMERGE_DEFAULT_OPTS, should I lower |
22 |
> MAKEOPTS to 3 (to 4)? |
23 |
> |
24 |
> thanks, |
25 |
> allan |
26 |
|
27 |
You could, as if you leave it at -j5, you can end up with 2 * 5 = 10 |
28 |
processed, eg: similar as if running with MAKEOPTS="-j10" |
29 |
|
30 |
I think the option that YoYo came with is a good compromise: |
31 |
# MAKEOPTS="-j -l5" emerge -j --load-average=5 |
32 |
|
33 |
Next time I am doing a big upgrade, I'm going to test that to see how it |
34 |
behaves. |
35 |
|
36 |
-- |
37 |
Joost |