From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0626C1382C5 for ; Sun, 21 Jun 2020 10:12:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 14E93E08C4; Sun, 21 Jun 2020 10:11:54 +0000 (UTC) Received: from mail.itouring.de (mail.itouring.de [188.40.134.68]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B0455E0876 for ; Sun, 21 Jun 2020 10:11:53 +0000 (UTC) Received: from tux.applied-asynchrony.com (p5ddd79e0.dip0.t-ipconnect.de [93.221.121.224]) by mail.itouring.de (Postfix) with ESMTPSA id 816F241605A8 for ; Sun, 21 Jun 2020 12:11:51 +0200 (CEST) Received: from [192.168.100.223] (ragnarok.applied-asynchrony.com [192.168.100.223]) by tux.applied-asynchrony.com (Postfix) with ESMTP id DA84CF01605 for ; Sun, 21 Jun 2020 12:11:50 +0200 (CEST) Subject: [gentoo-user] Re: "emerge --jobs=1 ..." vs "MAKEOPTS=-j1 emerge ..." To: gentoo-user@lists.gentoo.org References: <24303.11806.371890.563490@tux.local> From: =?UTF-8?Q?Holger_Hoffst=c3=a4tte?= Organization: Applied Asynchrony, Inc. Message-ID: Date: Sun, 21 Jun 2020 12:11:50 +0200 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 X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 In-Reply-To: <24303.11806.371890.563490@tux.local> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Archives-Salt: c1a2fbcd-5d39-4f5b-b292-1570578b6120 X-Archives-Hash: c1791dea08da987088b8f586c05d5c29 On 2020-06-21 11:53, Dr Rainer Woitok wrote: > Greetings, > > is there any difference between running "emerge --jobs=1 ..." and runn- > ing "MAKEOPTS=-j1 emerge ..."? --jobs=1 starts one package build at a time, possibly using many parallel processes - depending on MAKEOPTS and how the build works. MAKEOPTS sets the number of parallel processes within one package build. They are complementary, and you can combine them. However frequently a series of packages have dependencies (a before b before c), so starting multiple --jobs may not have any effect. Or it may, e.g. in the case of rebuilds or independent packages that often only use one process to build, e.g. perl modules or something smaller. --jobs can really make a difference since otherwise you would suffer from portage/script/shell overhead relative to the actual work being performed. make offers the -l parameter that constrains the number of processes by load, and adjusts them accordingly. As an example, with 8 cores you could use MAKEOPTS="-j8 -l8" to enable inter-ebuild parallelism and a max. load for one package, then start several --jobs to build independent packages without waiting for each other. Hope this helps. -h