Mark Knecht wrote:
On Sat, Nov 26, 2011 at 7:22 AM, Michael Mol<mike...@gmail.com>  wrote:
I just wanted to share an experience I had today with optimizing parallel
builds after discovering "-l" for Make...

I've got a little more tweaking I still want to do, but this is pretty
awesome...

http://funnybutnot.wordpress.com/2011/11/26/optimizing-parallel-builds/

ZZ
Good post Michael. Thanks.

I want to verify that in make.conf this is indeed MAKEOPTS we are
talking about and not EMERGE_DEFAULT_OPTS.

Currently for my i7-980x (6 physical cores + hyper threading = 12
logical cores) I have:

MAKEOPTS="-j3"
EMERGE_DEFAULT_OPTS="--with-bdeps y "
PORTAGE_IONICE_COMMAND="ionice -c 3 -p \${PID}"

I generally keep -j small day-to-day to allow emerge to work more or
less the background while I'm using the machine for other things. If I
was going to do an emerge -e @world then in the past I'd push it up
for 13. (N+1)

I've not used the -l option but it sounds interesting. If I understand
the then you're suggesting in /etc/make.conf

MAKEOPTS="-j13 -l7"

or something in that range for a full blown emerge -e @world?

- Mark




You should also look into this setting if you want to let portage run in the background:

PORTAGE_NICENESS=5

I have a 4 core system and run this:

MAKEOPTS="-j16 -l10"
EMERGE_DEFAULT_OPTS="-j8 "

I can't even tell portage is running. Heck, I even watch videos and such. No problems with slowdown at all.

Oh, the -l10 is sort of new. The -j16 is changing a bit over time. Trying to test speed to see what is fastest. So far, no compile race problems either.

Dale

:-)  :-)

--
I am only responsible for what I said ... Not for what you understood or how 
you interpreted my words!


Reply via email to