From owner-freebsd-toolchain@FreeBSD.ORG Sun Feb 9 21:36:25 2014 Return-Path: Delivered-To: freebsd-toolchain@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2685D27E; Sun, 9 Feb 2014 21:36:25 +0000 (UTC) Received: from mail0.glenbarber.us (mail0.glenbarber.us [IPv6:2607:fc50:1:2300:1001:1001:1001:face]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id EAF371992; Sun, 9 Feb 2014 21:36:21 +0000 (UTC) Received: from glenbarber.us (c-71-224-221-174.hsd1.nj.comcast.net [71.224.221.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: gjb) by mail0.glenbarber.us (Postfix) with ESMTPSA id B3D1320986; Sun, 9 Feb 2014 21:36:20 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.8.3 mail0.glenbarber.us B3D1320986 Authentication-Results: mail0.glenbarber.us; dkim=none reason="no signature"; dkim-adsp=none Date: Sun, 9 Feb 2014 16:36:18 -0500 From: Glen Barber To: freebsd-toolchain@FreeBSD.org Subject: bmake(1) "sometimes" honors '-j' ? Message-ID: <20140209213618.GA63417@glenbarber.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="AqsLC8rIMeq19msA" Content-Disposition: inline X-Operating-System: FreeBSD 11.0-CURRENT amd64 User-Agent: Mutt/1.5.22 (2013-10-16) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Feb 2014 21:36:25 -0000 --AqsLC8rIMeq19msA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Maybe there is an obvious answer to this, or maybe I just do not understand how computers work. For snapshot builds for RPI-B and BEAGLEBONE, I am hard-coding '-j10' for buildworld and '-j6' for buildkernel, because these values are somewhat "safe" considering various race conditions with high '-j' values. Crochet sets the '-j' value to '1', if WORLDJOBS and KERNJOBS are not set, so what I end up with is basically: 'make [...] -j10 -j1 ${.TARGET}'. What I see in ps(1) is a bit confusing to me, though. For example, the following suggests '-j10' is being honored for the 'libraries' target, but '-j1' is being forced for the 'buildworld' target, and I'm not sure I understand why. (Lines broken up for readability.) root@grind:~ # ps auxww | grep make | grep 'j' root 67766 0.0 0.0 9024 1048 4 S+ 7:20PM 0:03.02 make TARGET_ARCH=armv6 SRCCONF=/dev/null __MAKE_CONF=/dev/null -j10 -j 1 buildworld root 13112 0.0 0.0 9024 1488 4 S 8:24PM 0:00.94 make -j10 -f Makefile.inc1 DESTDIR=/usr/obj/arm.armv6/usr/src/tmp -DNO_FSCHG -DWITHOUT_HTML -DWITHOUT_INFO -DNO_LINT -DWITHOUT_MAN -DNO_PROFILE -DNO_TESTS libraries So, if I am reading this correctly, the 'libraries' target is honoring the '-j10', and 'buildworld' is honoring the later-specified '-j1'. Am I reading this incorrectly, or is this something I just do not understand about our toolchain? Thanks. Glen --AqsLC8rIMeq19msA Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (FreeBSD) iQIcBAEBCAAGBQJS9/TSAAoJELls3eqvi17QsgEQAIALz9631LVyct/QbrRt+AHl 9bfEMyfxSoiW0c3oLQXMkv0DX+O5CmfkesaNEnu2hhBvqwNnwtaGXNoeoLjIVM3Z vgGCWRAm+YbpK8NG0SXs5sBkniCzrhasTiOj9/ELDCciWk8Rx1D81tWu4kUiAkem 9dOfidCsIw6Ff1if65WYICCslkIKxpoJPKollzvMYTENvC29bzNgW6BxJpukAokV cqbEjUr8DLWCB8f0kxElhHzgVGDPZbRIN6k+Swt0R7o2ZOnk2Dgl52/pPFYbHeAL kK3X/SVFXWUwqbHWKcTXLkuT1AKyeWMaiKsse4n6EpDLQGgqyTFJ8y9I5DGyxShN Fy/4cEv7Jh4B9ICZ/Emof1AS/87jrJ+WyLtSuVCCvBM9S9bdqhx+W/ElAgvaZYYv IT+8sdBV8ZAXDiLLqJcnSRuJtai1bRD8HxFVLJeVaJNx1XSrm+zWaIvvVj4UAA0n 2PZ9klbETOIoSJbR/KCsx9UbUFc4n9m3V52l7ir/uEkLWMEN1nd/OmX+rUd4esrN rDop6/9z3WF1r+aW41299CT+W4BH/Due1MOOnbNNNWyTctc/oqPfRGAeYiVo/0+g 15JhD3fyYxxoRn/zGRCIRdltYlsPOWrjUPKM2ciDX4CP7Vk/WpN40j/WQmMCy1Jx GTspjz5wvMz0Q/477Jnl =TLce -----END PGP SIGNATURE----- --AqsLC8rIMeq19msA--