URL:
<http://savannah.gnu.org/bugs/?49844>
Summary: 'make -j' without explicit process count sometimes
doesn't parallelize
Project: make
Submitted by: dkogan
Submitted on: Wed 14 Dec 2016 07:02:15 PM GMT
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Component Version: None
Operating System: None
Fixed Release: None
Triage Status: None
_______________________________________________________
Details:
Hi. I have this trivial Makefile:
%:
echo Starting $@ || true
timeout 5 bash -c 'while true; do true; done' || true
echo Done $@ || true
It's meant to spin the cpu for 5 seconds for each target being built. I can
ask for 5 simultaneous jobs with something like 'seq 1000 | xargs -n1000 make
-j5' and this command should always redline 5 CPUs. If I give 'make -j'
instead of 'make -j5' I would expect it to redline ALL my CPUs, but I see it
not do any parallelization at all instead. If the Makefile contains normal
(not pattern) rules, then it works how I would expect.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?49844>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-make mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-make