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 1PiSdp-00040d-0Y for garchives@archives.gentoo.org; Thu, 27 Jan 2011 14:16:05 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 057B9E0AE5; Thu, 27 Jan 2011 14:14:30 +0000 (UTC) Received: from smtpq3.tb.mail.iss.as9143.net (smtpq3.tb.mail.iss.as9143.net [212.54.42.166]) by pigeon.gentoo.org (Postfix) with ESMTP id C29F9E0AE5 for ; Thu, 27 Jan 2011 14:14:30 +0000 (UTC) Received: from [212.54.42.139] (helo=smtp8.tb.mail.iss.as9143.net) by smtpq3.tb.mail.iss.as9143.net with esmtp (Exim 4.71) (envelope-from ) id 1PiScH-0001fi-RK for gentoo-user@lists.gentoo.org; Thu, 27 Jan 2011 15:14:29 +0100 Received: from 5ed3454e.cm-7-4b.dynamic.ziggo.nl ([94.211.69.78] helo=data.antarean.org) by smtp8.tb.mail.iss.as9143.net with esmtp (Exim 4.71) (envelope-from ) id 1PiSah-0005Ea-Gl for gentoo-user@lists.gentoo.org; Thu, 27 Jan 2011 15:12:51 +0100 Received: from localhost (localhost [127.0.0.1]) by data.antarean.org (Postfix) with ESMTP id 36FDC275F for ; Thu, 27 Jan 2011 15:14:51 +0100 (CET) X-Virus-Scanned: amavisd-new at antarean.org Received: from data.antarean.org ([127.0.0.1]) by localhost (data.antarean.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nYwqiELLemzt for ; Thu, 27 Jan 2011 15:14:50 +0100 (CET) Received: from eve.localnet (eve.lan.antarean.org [10.20.13.50]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by data.antarean.org (Postfix) with ESMTPS id A1B70F0A for ; Thu, 27 Jan 2011 15:14:50 +0100 (CET) From: "J. Roeleveld" To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re: Simultaneously emerging multiple packages with same dependencies Date: Thu, 27 Jan 2011 15:12:49 +0100 User-Agent: KMail/1.13.5 (Linux/2.6.30-gentoo-r5; KDE/4.4.5; x86_64; ; ) References: <20110127140525.GA4844@ksp.sk> In-Reply-To: <20110127140525.GA4844@ksp.sk> 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 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201101271512.50141.joost@antarean.org> X-ZiggoSMTP-MailScanner-Information: Please contact the ISP for more information X-ZiggoSMTP-MailScanner-ID: 1PiSah-0005Ea-Gl X-ZiggoSMTP-MailScanner: Found to be clean X-ZiggoSMTP-MailScanner-SpamCheck: geen spam, SpamAssassin (niet cached, score=-0.928, vereist 5, BAYES_00 -1.90, RDNS_DYNAMIC 0.98, T_RP_MATCHES_RCVD -0.01) X-ZiggoSMTP-MailScanner-From: joost@antarean.org X-Spam-Status: No X-Archives-Salt: X-Archives-Hash: c4779a9493acab76d910a8c151a34c0d On Thursday 27 January 2011 15:05:25 YoYo Siska wrote: > On Thu, Jan 27, 2011 at 03:33:21PM +0200, Nikos Chantziaras wrote: > > On 01/27/2011 03:11 PM, Dale wrote: > > >[...] > > >I am using the -j option for the first time now. I'm updating KDE. It > > >seems to work fine. It doesn't scroll all the stuff like with a regular > > >emerges but this new rig is so fast, I can't read it anyway. I did have > > >a package to fail and it spit out the error for me to read. > > > > You don't need that if you have MAKEOPTS set in your make.conf, > > which is preferred. The -j option of emerge emerges multiple > > packages, while with MAKEOPTS set to "-j4" or whatever does a > > parallel build in the same package (meaning compiling multiple > > source files at the same time). > > > > It's preferred because with "emerge -jN" the last package will only > > use one CPU, while with "-jN" in MAKEOPTS even the last package will > > use N CPUs. Furthermore, emerge can't always build N packages at > > the same time because one can depend on the other, so it will have > > to wait until the dependency is built. > > On the other hand, unpacking, configure and install stages are not > parallel and emerge can do those in parallel for different packages... > The best would be somewhere in the middle ;) > > > There are also the load-average options to -j, i.e.: > MAKEOPTS="-j -l5" emerge -j --load-average=5 .... > > which makes make spawn parallel processes while load average is below 5 > and the same for emerge spawning parallel ebuilds (when make isn't > parallel enough) > > yoyo Hmmm... didn't know about that one yet. Does that mean that by doing it like that, the emerge-process (and compile- processes) will try to keep the load average at 5 and if that is lower, it will keep adding more processes? -- Joost