lefsha wrote:Never use this option!
In every system this should be -j1 by default!
There are some packages which won't compile and you will not get it faster.
Cause next day you wake up, you'll see only some packages was built.
And you will start searching here looking why certain package failed...
So it should go to FAQ. Never use anything else but -j1.
Code: Select all
emerge <options> || until emerge --resume --skipfirst; do sleep 2; done
Code: Select all
iqgryn ~ # for i in 1 `seq 32`; do time FEATURES="-ccache" MAKEOPTS="-j$i" emerge mozilla-sunbird > time-stdout-$i 2> time-stderr-$i; donehttp://bugs.gentoo.org/show_bug.cgi?id=149860Dralnu wrote:Someone have any useful info regarding the orignal post other then useless spam?
In one of those, they fixed it in the ebuild. Others there isn't any proof that it was the MAKEOPTS.lefsha wrote:http://bugs.gentoo.org/show_bug.cgi?id=149860Dralnu wrote:Someone have any useful info regarding the orignal post other then useless spam?
http://bugs.gentoo.org/show_bug.cgi?id=141132
http://bugs.gentoo.org/show_bug.cgi?id=136133
http://forums.gentoo.org/viewtopic-t-54 ... eopts.html
http://forums.gentoo.org/viewtopic-t-54 ... eopts.html
http://forums.gentoo.org/viewtopic-t-53 ... +bash.html
http://forums.gentoo.org/viewtopic-t-54 ... eopts.html
So far to the SPAM...
It's only a few posts I found related to that topic. I had many times problems with different packages just because only using MAKEOPTS="-j2".
So next time you going to call it SPAM, just avoid to write to the forum...![]()
Furthermore you never know, which package will be broken next time...
As NeddySeagoon said the best option for you will be MAKEOPTS="-j",
but please don't ask why something goes wrong...
I'm going fine with -j2 and a single core cpu.With MAKEOPTS you define how many parallel compilations should occur when you install a package. A good choice is the number of CPUs in your system plus one, but this guideline isn't always perfect.
Code: Select all
ll /usr/bin/xfdesktop
-rwxr-xr-x 1 root root 182K Mar 9 16:07 /usr/bin/xfdesktop*After -j14 I got bored started incrementing by 2 expecting the time to go up. Instead it remained fairly constant probably because it couldnt use the additional build process's above -j22.time MAKEOPTS="-j3" emerge xfdesktop
real 1m27.876s
user 0m59.653s
sys 0m31.745s
MAKEOPTS="-j4"
real 1m25.401s
user 0m59.406s
sys 0m30.881s
MAKEOPTS="-j5"
real 1m26.067s
user 0m59.613s
sys 0m31.988s
MAKEOPTS="-j6"
real 1m24.549s
user 0m59.393s
sys 0m31.518s
MAKEOPTS="-j7"
real 1m24.424s
user 0m59.423s
sys 0m31.141s
MAKEOPTS="-j8"
real 1m25.108s
user 0m59.436s
sys 0m31.365s
MAKEOPTS="-j9"
real 1m23.941s
user 0m59.023s
sys 0m31.615s
MAKEOPTS="-j10"
real 1m24.560s
user 0m59.193s
sys 0m30.991s
MAKEOPTS="-j11"
real 1m23.716s
user 0m59.149s
sys 0m30.571s
MAKEOPTS="-j12"
real 1m24.450s
user 0m59.149s
sys 0m31.268s
MAKEOPTS="-j13"
real 1m24.678s
user 0m59.286s
sys 0m31.065s
MAKEOPTS="-j14"
real 1m24.379s
user 0m59.506s
sys 0m30.981s
MAKEOPTS="-j16"
real 1m23.813s
user 0m59.156s
sys 0m31.145s
MAKEOPTS="-j18"
real 1m24.113s
user 0m59.169s
sys 0m31.171s
MAKEOPTS="-j20"
real 1m23.995s
user 0m59.183s
sys 0m30.775s
MAKEOPTS="-j22"
real 1m22.989s
user 0m59.026s
sys 0m31.005s
MAKEOPTS="-j24"
real 1m23.371s
user 0m58.903s
sys 0m30.811s
MAKEOPTS="-j26"
real 1m24.122s
user 0m59.539s
sys 0m30.211s
MAKEOPTS="-j28"
real 1m23.776s
user 0m59.256s
sys 0m30.681s
MAKEOPTS="-j30"
real 1m23.259s
user 0m58.849s
sys 0m30.625s
MAKEOPTS="-j32"
real 1m23.543s
user 0m59.026s
sys 0m30.618s
MAKEOPTS="-j34"
real 1m23.075s
user 0m59.306s
sys 0m30.798s
Again the same pattern. For a dualcore -j9 and -j22 seem to be the sweet spots, but nothing earth shattering. For a single core a guess that -j4 or 5 and maybe 11 should be sweet spots. Note none of these were c++ nor small programs.time MAKEOPT="-j3" emerge orage vim -1
real 2m58.740s
user 2m30.070s
sys 0m45.887s
MAKEOPT="-j7"
real 2m56.020s
user 2m30.404s
sys 0m45.444s
MAKEOPT="-j9"
real 2m55.729s
user 2m29.874s
sys 0m45.067s
MAKEOPT="-j11"
real 2m55.075s
user 2m30.060s
sys 0m44.634s
MAKEOPT="-j13"
real 2m56.335s
user 2m30.394s
sys 0m45.727s
.........
MAKEOPT="-j19"
real 2m58.560s
user 2m29.930s
sys 0m46.597s
MAKEOPT="-j20"
real 2m56.466s
user 2m29.977s
sys 0m46.107s
MAKEOPT="-j21"
real 2m56.968s
user 2m30.407s
sys 0m45.237s
MAKEOPT="-j22"
real 2m56.309s
user 2m30.120s
sys 0m45.357s
MAKEOPT="-j23"
real 2m57.146s
user 2m30.804s
sys 0m45.257s

time MAKEOPT="-j3" emerge glibc -1
real 35m38.746s
user 33m47.188s
sys 15m41.135s
MAKEOPT="-j4"
real 35m32.618s
user 33m52.701s
sys 15m46.222s
MAKEOPT="-j9"
real 35m40.452s
user 33m53.737s
sys 15m47.555s