From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RUnwv-00079o-Gw for garchives@archives.gentoo.org; Sun, 27 Nov 2011 23:15:53 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 24DD321C058; Sun, 27 Nov 2011 23:15:43 +0000 (UTC) Received: from mail-vx0-f181.google.com (mail-vx0-f181.google.com [209.85.220.181]) by pigeon.gentoo.org (Postfix) with ESMTP id CBA5321C028 for ; Sun, 27 Nov 2011 23:14:01 +0000 (UTC) Received: by vcbfl17 with SMTP id fl17so6291511vcb.40 for ; Sun, 27 Nov 2011 15:14:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=NWR74lOzWNx8gJRLWubMeunHyqta/XcQ5vVjEwPzTy8=; b=K5UN5O6vJLkZIV405rW4nzv1JmGtw7mPL6KQ9umsyjGyNQr0779uD3Bp1eF7cBVOmK fxox8sgKmsCw3H+HMu/2JZgCGiH5REDwdYTwDpkw6SmMhanzglg4U4FzmmYTNsXbJHLc ReqxHPNK56oZiBRYoi49QiZztFvuSUeFq6Ayk= Received: by 10.220.187.139 with SMTP id cw11mr4596730vcb.67.1322435641339; Sun, 27 Nov 2011 15:14:01 -0800 (PST) Received: from [192.168.2.5] (adsl-65-0-115-63.jan.bellsouth.net. [65.0.115.63]) by mx.google.com with ESMTPS id z6sm45830297vdg.18.2011.11.27.15.13.59 (version=SSLv3 cipher=OTHER); Sun, 27 Nov 2011 15:14:00 -0800 (PST) Message-ID: <4ED2C436.5010105@gmail.com> Date: Sun, 27 Nov 2011 17:13:58 -0600 From: Dale User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20111022 Firefox/7.0.1 SeaMonkey/2.4.1 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] emerge -j, make -j and make -l References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: 70d4b9c0-6064-403d-bb09-1a234a3b3da1 X-Archives-Hash: fbae05bb737f019e5f74e0acd853c178 Mark Knecht wrote: > On Sat, Nov 26, 2011 at 7:22 AM, Michael Mol 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!