[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #60919] Communicating -j to sub-make not working properly after mak
[bug #60919] Communicating -j to sub-make not working properly after make 4.1
Thu, 15 Jul 2021 03:56:39 -0400 (EDT)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36
Summary: Communicating -j to sub-make not working properly
after make 4.1
Submitted by: bahaahamza
Submitted on: Thu 15 Jul 2021 07:56:37 AM UTC
Severity: 3 - Normal
Item Group: Bug
Assigned to: None
Discussion Lock: Any
Component Version: 4.1
Operating System: None
Fixed Release: None
Triage Status: None
Referring to make manual, in "Communicating Options to a Sub-make". The
following was mentioned:
"The ‘-j’ option is a special case (see Parallel Execution). If you set it
to some numeric value ‘N’ and your operating system supports it (most any
UNIX system will; others typically won’t), the parent make and all the
sub-makes will communicate to ensure that there are only ‘N’ jobs running
at the same time between them all."
Prior to make version 4.1 (4.0 and earlier), this was working fine. If parent
make was run with -jN, eventually make and sub-make will be running only N
But since make 4.1 (till 4.3), it's not working as before.
sub-make will spawn several jobs and the total count is more than N.
I tried to check in Changelog if this was an intended change in behavior, but
i didn't find this change.
I've attached a testcase to this bug.
For example, you can run "make -j 2" using make 3.8 and make 4.2.
For v3.8, you will notice that only 2 jobs will be running at a time
While for v4.2, all chile subtests will be spawned (2 * 8).
Reply to this item at:
Message sent via Savannah
- [bug #60919] Communicating -j to sub-make not working properly after make 4.1,
Bahaa Hamza <=