Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Feb 2014 16:36:18 -0500
From:      Glen Barber <gjb@FreeBSD.org>
To:        freebsd-toolchain@FreeBSD.org
Subject:   bmake(1) "sometimes" honors '-j' ?
Message-ID:  <20140209213618.GA63417@glenbarber.us>

next in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140209213618.GA63417>