From owner-freebsd-arm@freebsd.org Tue Dec 3 16:28:34 2019 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id F41211B47BC for ; Tue, 3 Dec 2019 16:28:33 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound2m.ore.mailhop.org (outbound2m.ore.mailhop.org [54.149.155.156]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47S6qP5kWsz4ZQq for ; Tue, 3 Dec 2019 16:28:33 +0000 (UTC) (envelope-from ian@freebsd.org) ARC-Seal: i=1; a=rsa-sha256; t=1575390512; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=CMpuDxabJCq0A1uuxV5BzpGoRQ3xkW58T/V/CXsnEAbdz3yKi4QJQiwiX+6Nyvc2RmEGNHS0BGTe9 YJmJyNqpBNitb1FGWhYC1lDLSra8UcJmL/YNu/2wQwG18qQqQIW4Dwohzi8ovISPxqpr8MVu6NkOIi S4/hYXF9rCT/q7L4udrTJGtQd5rpUADwqfKLk5YFrTttH29PbGbwC9oa0TlJ3itqke3wa2EWpPtO6u zs+YkZaOBSKULL3UWuIc1upQIQnt6Hx+gOoPOyscucl1Yo0eTQBmylwPZ0H+R4BoS3KTKJTpDUn27z gEH8C4YRXE81nOK3+hwqxLJmrHlXLGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=arc-outbound20181012; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:cc:to:from:subject:message-id:dkim-signature:from; bh=3IfC1s+bMDqfbEazAAr5WM4V10Gk6Z2ja/NVCMzy/HY=; b=tKFvL/dj1vb/zAC+IDCCM0DLBbbfHC6JXVPI2mu+zN7eHRuK6B2vWCVX2phDqCOpKY53jxS/CQ8Sl FnIKLBfkV/CugLXeMazDxPfn3rvDizQPn2nwULUTpe9k6bKUioOse//H+LtPPBpjymDwfSYl0sDu6i ZZV5+AOBuU4MJw3rzaXAKPtikXkdkvYvPjfNa88BFriwD0sIEww+p1l4ztq8WbpDGUemGdq123U27V g51Lb9ArdhVhxoDGyEhSQjXChLMOAG4jdVvcLvcboXlrMq521hcNCEmXneKVwW3T+ciov312eq3xrD rak5ocofO8n1ySPhAZJXD2omAOHZ57A== ARC-Authentication-Results: i=1; outbound4.ore.mailhop.org; spf=softfail smtp.mailfrom=freebsd.org smtp.remote-ip=67.177.211.60; dmarc=none header.from=freebsd.org; arc=none header.oldest-pass=0; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=dkim-high; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:cc:to:from:subject:message-id:from; bh=3IfC1s+bMDqfbEazAAr5WM4V10Gk6Z2ja/NVCMzy/HY=; b=wmHUruzmISWZBNsCNO8wBsmVGFPsRskQLFL/TCdBRT8K3H5sKJlvOT5TozqF/HP/DOvEhDAI8HmY0 lctDxHIqSWx1obcOYcQPRFLx5KlB3qI48q/i/8lYkU8lqEne7YPHCAxjx/Zx5/+EU6ORREysI2HCj+ LuM3XyIHeSJy3dMup4WmIR+yZY3OBvZTy84KiSIjktrgBwRmuQ37BmQTYmwO/H+gnKS9ol+aRwdRtq uhobQluNDIbwTCiSbXLdm6Oal3Y+cB6+J7etS7wois+UIRnGKSWAHEoju7zA2/2xRQKKDnmQEgLCG8 kYP1WFfEE2vxQvXSKWNR2M++tZXk0CA== X-MHO-RoutePath: aGlwcGll X-MHO-User: f01fc4e0-15e9-11ea-829e-79a40d15cccd X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 67.177.211.60 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [67.177.211.60]) by outbound4.ore.mailhop.org (Halon) with ESMTPSA id f01fc4e0-15e9-11ea-829e-79a40d15cccd; Tue, 03 Dec 2019 16:28:31 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id xB3GSSJn000137; Tue, 3 Dec 2019 09:28:28 -0700 (MST) (envelope-from ian@freebsd.org) Message-ID: <84bf64123583ce7b16aa60ea42c77e86fad7ba26.camel@freebsd.org> Subject: Re: make -j1 produces four C++ instances From: Ian Lepore To: bob prohaska , greg@unrelenting.technology Cc: freebsd-arm@freebsd.org Date: Tue, 03 Dec 2019 09:28:28 -0700 In-Reply-To: <20191203162047.GB58722@www.zefox.net> References: <20191203155514.GA58722@www.zefox.net> <20191203162047.GB58722@www.zefox.net> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 FreeBSD GNOME Team Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 47S6qP5kWsz4ZQq X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-1.90 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-0.96)[-0.962,0]; ASN(0.00)[asn:16509, ipnet:54.148.0.0/15, country:US]; NEURAL_HAM_LONG(-0.94)[-0.942,0] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Dec 2019 16:28:34 -0000 On Tue, 2019-12-03 at 08:20 -0800, bob prohaska wrote: > On Tue, Dec 03, 2019 at 04:06:08PM +0000, greg@unrelenting.technology > wrote: > > December 3, 2019 6:55 PM, "bob prohaska" > > wrote: > > > > > Has the -j feature for make been changed/removed? > > > > > > IIRC, one could in the past limit the number of jobs created > > > while compiling software by using > > > make -jN > > > on the command line. Now it seems that > > > make -j1 > > > spawns four instances of C++ while trying to compile > > > www/chromium. > > > > make -jN won't necessarily do anything when make spawns other build > > systems > > which do their own parallelism. > > (*some* systems can integrate with GNU make, see e.g. > > https://github.com/ninja-build/ninja/issues/1139 ) > > > > Which leads to: > https://github.com/ninja-build/ninja/issues/1441 > > > Chromium is mostly built using their own GN system, > > the backend of which actually is ninja btw > > > > Implying the behavior is controlled by ninja, not make. > > Is there some other way to restrain parallelism in > compiling www/chromium? > > Thanks for replying! > > bob prohaska > When building ports, it's controlled by make variables which can be set in make.conf or on the command line. The ports build machinery does what it needs to, to pass that value down into whatever build system is used within the port (cmake or ninja or whatever). make MAKE_JOBS_NUMBER=2 # like -j2 make DISABLE_MAKE_JOBS=yes # disables multiple jobs completely -- Ian