Re: [PATCH] src/main.c: Add -J to detect number of job slots based on nproc.

2024-04-12 Thread Howard Chu via Bug reports and discussion for GNU make
default, > if there was to be one at all, should be conservative so nproc * 2 would be a > bad choice. I've always used nproc * 1.5. This factor was determined empirically by observing idle time on many builds using nproc * 1 and nproc * 2. -- -- Howard Chu CTO, Symas Corp. ht

Re: Add support for limiting CPU pressure

2022-12-20 Thread Howard Chu via Bug reports and discussion for GNU make
ry will Just Work after that, and all of the relevant OSs have support for named pipes. -- -- Howard Chu CTO, Symas Corp. http://www.symas.com Director, Highland Sun http://highlandsun.com/hyc/ Chief Architect, OpenLDAP http://www.openldap.org/project/

Re: Goodbye to GNU make's "build.sh" ... ?

2022-06-26 Thread Howard Chu via Bug reports and discussion for GNU make
pable of supporting gmake that don't already have a make utility. Or that telling anyone so unlucky "first bootstrap with gmake 4.3" is a bad answer. -- -- Howard Chu CTO, Symas Corp. http://www.symas.com Director, Highland Sun http://highlandsun.com/hyc/ Chief Architect, OpenLDAP http://www.openldap.org/project/

Re: Parallel job instance identifiers?

2021-09-06 Thread Howard Chu via Bug reports and discussion for GNU make
Paul Smith wrote: > On Fri, 2021-08-13 at 14:14 +0100, Howard Chu via Bug reports and > discussion for GNU make wrote: >> I'm looking for a way to expose a job ID number to the individual >> jobs, in a consecutive range from 1-[number of jobs]. Not just >> unique numbers

Re: Parallel job instance identifiers?

2021-08-14 Thread Howard Chu via Bug reports and discussion for GNU make
use the range of 9000-9020. On a build/test machine we don't worry about conflicts, a developer has no business running conflicting software at the same time as building/testing our software. And of course, the baseport 9000 can be moved at will. > > Christian > > On Fri, Aug 13,

Parallel job instance identifiers?

2021-08-13 Thread Howard Chu via Bug reports and discussion for GNU make
of client/server test scripts in parallel. Is there anything that could do this now, exposed as a Make variable? -- -- Howard Chu CTO, Symas Corp. http://www.symas.com Director, Highland Sun http://highlandsun.com/hyc/ Chief Architect, OpenLDAP http://www.openldap.org/project/

Re: "make -jN" requires mechanical changes to a Makefile [SOLVED]

2020-09-13 Thread Howard Chu
= all: copy1 copy2 copy3 copy4 copy1: Makefile install -c -m 644 Makefile $@ copy2: copy1 install -c -m 644 Makefile $@ copy3: copy2 install -c -m 644 Makefile $@ copy4: copy3 install -c -m 644 Makefile $@ ======

Re: [bug #56701] Do not allow -j without a number

2019-08-26 Thread Howard Chu via Bug-make
and avoid introducing any regressions. > > For example, if -j is given without an argument and no -l option is provided, > behave as if -j -l $(nproc) was specified. -- -- Howard Chu CTO, Symas Corp. http://www.symas.com Director, Highland Sun http://highlandsu

Re: Should make handle non-blocking jobserver and use socket pair instead?

2019-08-15 Thread Howard Chu via Bug-make
ctually a socket pair instead of a pipe, but then > that jobserver needs to be created externally, as the GNU make > creating the jobserver creates a pipe and not a socket pair. As a > hack, a wrapper program could do it and then call GNU make. > > What are your opinions of this? I

Re: "make -jN" requires mechanical changes to a Makefile

2019-05-12 Thread Howard Chu
-m 644 Makefile copy3 >> install -c -m 644 Makefile copy4 > > I think the "representative" file should be copy4 here, because it's the one > that gets created last. That sort of thing is only true in serial make, you can't rely on it in parallel make. -- -- Howard Ch

Re: Parallel Build with GNU make

2016-02-02 Thread Howard Chu
in your Makefile. Read this: http://highlandsun.com/hyc/#Make in particular this http://highlandsun.com/hyc/GNUYou.htm -- -- Howard Chu CTO, Symas Corp. http://www.symas.com Director, Highland Sun http://highlandsun.com/hyc/ Chief Architect, OpenLD

Re: Dynamic adjustments of build dependencies for the number of available processors

2015-01-05 Thread Howard Chu
preparation step will remain serial no matter what -j arguments are used, so it should be safe to just invoke make -j xx at the beginning and let things run serially or in parallel as necessary. -- -- Howard Chu CTO, Symas Corp. http://www.symas.com Director, Highland Sun

Re: feature request: parallel builds feature

2013-04-30 Thread Howard Chu
. ___ Bug-make mailing list Bug-make@gnu.org https://lists.gnu.org/mailman/listinfo/bug-make -- -- Howard Chu CTO, Symas Corp. http://www.symas.com Director, Highland Sun http://highlandsun.com/hyc/ Chief Architect, OpenLDAP http

Re: feature request: parallel builds feature

2013-04-30 Thread Howard Chu
to stdout. That has nothing to do with stdin. Looks to me like you have no F'ing idea what you're talking about. -- -- Howard Chu CTO, Symas Corp. http://www.symas.com Director, Highland Sun http://highlandsun.com/hyc/ Chief Architect, OpenLDAP http://www.openldap.org/project

Re: Thoughts on limiting the parallel build load, suggestion for a new -j auto option

2012-03-01 Thread Howard Chu
be able to do while waiting for a build. Eddy. -- -- Howard Chu CTO, Symas Corp. http://www.symas.com Director, Highland Sun http://highlandsun.com/hyc/ Chief Architect, OpenLDAP http://www.openldap.org/project/ ___ Bug

Re: [bug #35485] New $(.MFDIR) built-in variable

2012-02-26 Thread Howard Chu
the string up into words, then operate on those, and that happens every time the function is invoked. If that happens a lot, then you should simply construct the lists once and keep them... -- -- Howard Chu CTO, Symas Corp. http://www.symas.com Director, Highland Sun http

Re: Thoughts on limiting the parallel build load, suggestion for a new -j auto option

2012-02-22 Thread Howard Chu
. -- -- Howard Chu CTO, Symas Corp. http://www.symas.com Director, Highland Sun http://highlandsun.com/hyc/ Chief Architect, OpenLDAP http://www.openldap.org/project/ ___ Bug-make mailing list Bug-make@gnu.org https

Re: New Feature Submission for GNU Make

2011-05-31 Thread Howard Chu
another reason not to do things that way... -- -- Howard Chu CTO, Symas Corp. http://www.symas.com Director, Highland Sun http://highlandsun.com/hyc/ Chief Architect, OpenLDAP http://www.openldap.org/project/ ___ Bug-make mailing

Re: New Feature Submission for GNU Make

2011-05-30 Thread Howard Chu
/bar/.. != foo. -- -- Howard Chu CTO, Symas Corp. http://www.symas.com Director, Highland Sun http://highlandsun.com/hyc/ Chief Architect, OpenLDAP http://www.openldap.org/project/ ___ Bug-make mailing list Bug-make@gnu.org https

Re: patch to support output synchronization under -j

2011-04-15 Thread Howard Chu
. (Default pipe buffer is 4K which sets -j4096 as the practical limit without mucking with kernel params.) -- -- Howard Chu CTO, Symas Corp. http://www.symas.com Director, Highland Sun http://highlandsun.com/hyc/ Chief Architect, OpenLDAP http://www.openldap.org/project

Re: Fwd: [RFC]serialize the output of parallel make?

2010-08-03 Thread Howard Chu
to not mingle/mangle lines from different processes together. But again, that's not gnu-make's problem, that's a Cygwin issue. -- -- Howard Chu CTO, Symas Corp. http://www.symas.com Director, Highland Sun http://highlandsun.com/hyc/ Chief Architect, OpenLDAP http://www.openldap.org

Re: Fwd: [RFC]serialize the output of parallel make?

2010-08-02 Thread Howard Chu
would be useful. In fact, since load averages are calculated so slowly, by the time your -l limit is reached the actual CPU load will have blown past it and your machine will be thrashing. That's the entire reason I came up with the -j implementation in the first place. -- -- Howard Chu CTO

Re: [RFC]serialize the output of parallel make?

2010-07-30 Thread Howard Chu
since it's usually nonbuffered, but again, that's not the common case. -- -- Howard Chu CTO, Symas Corp. http://www.symas.com Director, Highland Sun http://highlandsun.com/hyc/ Chief Architect, OpenLDAP http://www.openldap.org/project

Re: Fwd: [RFC]serialize the output of parallel make?

2010-07-30 Thread Howard Chu
) and by how long 2x is too much. 1.5x has been the best in my experience, any more than that and you're losing too much CPU to scheduling overhead instead of real work. Any less and you're giving up too much in idle or I/O time. -- -- Howard Chu CTO, Symas Corp. http://www.symas.com

Re: [RFC]serialize the output of parallel make?

2010-07-29 Thread Howard Chu
thing to have this ability though. -- -- Howard Chu CTO, Symas Corp. http://www.symas.com Director, Highland Sun http://highlandsun.com/hyc/ Chief Architect, OpenLDAP http://www.openldap.org/project/ ___ Bug-make mailing list Bug

[bug #22923] option to prevent interspersed output in parallel builds

2010-01-14 Thread Howard Chu
Follow-up Comment #7, bug #22923 (project make): Reaching back 25 years again, this is basically what Alliant Concentrix parallel make did. It prefixed each output line with the job number |1|, |2| and so on. (This is also why in my original proposal for make -j, I used different numbered job

[bug #28134] inconsistent reporting of linux kernel builds with -j2

2010-01-14 Thread Howard Chu
Follow-up Comment #3, bug #28134 (project make): As a complete digression, and based on 26 years of doing parallel builds (damn it's been a long time), I just wanted to point out that you can generally use 50% more jobs than your number of CPUs/cores. E.g., for a dual-core machine, use make -j3.

Re: [bug #22923] option to prevent interspersed output in parallel builds

2009-03-26 Thread Howard Chu
of their output was prefixed with |jobnum|. It was quite nice, but I never felt it was important enough to duplicate that behavior for gmake. -- -- Howard Chu CTO, Symas Corp. http://www.symas.com Director, Highland Sun http://highlandsun.com/hyc/ Chief Architect, OpenLDAP http

Re: Switching from CVS to GIT

2007-10-15 Thread Howard Chu
with it doesn't really enter the equation. Aside from that, happy to leave this for later. -- -- Howard Chu Chief Architect, Symas Corp. http://www.symas.com Director, Highland Sunhttp://highlandsun.com/hyc/ Chief Architect, OpenLDAP http://www.openldap.org/project

Re: EAGAIN in read jobs pipe

2007-01-10 Thread Howard Chu
use maybe -j 10 (when I know 10 more calls to make are made) On some machines this might be unacceptable and bring them to their knees. On other machines it can work really well. -- -- Howard Chu Chief Architect, Symas Corp. http://www.symas.com Director, Highland Sunhttp

Re: [bug #18396] stack size setrlimit call interacts badly with Solaris/x86 kernel bug

2006-11-30 Thread Howard Chu
doesn't impose restrictions retroactively. (E.g., if you open a file and have a valid descriptor on it, and someone else chmods the file, removing your access permissions, you still have your original privileges through the open descriptor.) -- -- Howard Chu Chief Architect, Symas Corp. http

Re: [bug #18396] stack size setrlimit call interacts badly with Solaris/x86 kernel bug

2006-11-29 Thread Howard Chu
are good, but stack-based allocation is still better a lot of the time. Especially for temporary variables that are just going to be discarded after a few computations. -- -- Howard Chu Chief Architect, Symas Corp. http://www.symas.com Director, Highland Sunhttp://highlandsun.com/hyc

[bug #17873] .NOTPARALLEL enhancements

2006-09-28 Thread Howard Chu
Follow-up Comment #3, bug #17873 (project make): Haven't been paying a lot of attention, but when is such a lame thing nas .NOTPARALLEL needed? Why aren't people just writing proper dependencies so that parallel/serial is irrelevant? ___

[bug #17881] Better documentation of make rules

2006-09-28 Thread Howard Chu
URL: http://savannah.gnu.org/bugs/?17881 Summary: Better documentation of make rules Project: make Submitted by: hyc Submitted on: Thursday 09/28/2006 at 20:26 Severity: 3 - Normal Item Group: Enhancement

Re: [bug #17881] Better documentation of make rules

2006-09-28 Thread Howard Chu
Bah. Pretty sure I selected Documentation for this submission, not Enhancement. Howard Chu wrote: URL: http://savannah.gnu.org/bugs/?17881 Summary: Better documentation of make rules Project: make Submitted by: hyc Submitted

[bug #17881] Better documentation of make rules

2006-09-28 Thread Howard Chu
Follow-up Comment #1, bug #17881 (project make): It might be worthwhile to add some kind of makefile validation flag, which processes all prerequisites in random or right-to-left order, specifically to expose occurrences of incorrect prerequisites.

Re: [bug #17873] .NOTPARALLEL enhancements

2006-09-28 Thread Howard Chu
that!?) I've noticed that SCons has this feature, but it might come in handy for verifying that a makefile is properly written. Yes, I've suggested this a number of times in the past. Never formally in a bug report, but #17881 which I just submitted lists that as well. -- -- Howard Chu Chief

Re: [bug #17873] .NOTPARALLEL enhancements

2006-09-28 Thread Howard Chu
that I couldn't live without, and it was worth my effort to push it forward. Frankly this is trivial and personally uninteresting, and I can live without it just fine, since I know how to write correct Makefiles. -- -- Howard Chu Chief Architect, Symas Corp. http://www.symas.com Director

Re: Error in processing of :: targets

2005-06-14 Thread Howard Chu
: ; @echo $@; sleep 1; echo [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -- -- Howard Chu Chief Architect, Symas Corp. Director, Highland Sun http://www.symas.com http://highlandsun.com/hyc Symas: Premier OpenSource Development and Support

Re: parallelism: job slots vs. levels

2004-08-31 Thread Howard Chu
, there will be no difference whether make is run serially or in parallel. If there is any difference, then the Makefile rules didn't correctly capture all of the real dependencies of the project. -- -- Howard Chu Chief Architect, Symas Corp. Director, Highland Sun http://www.symas.com

Re: parallelism: job slots vs. levels

2004-08-31 Thread Howard Chu
examples have nothing to do with each other, I don't see how you can reach this conclusion. -- -- Howard Chu Chief Architect, Symas Corp. Director, Highland Sun http://www.symas.com http://highlandsun.com/hyc Symas: Premier OpenSource Development and Support

RE: GNU enhancement -- $(xargs cmd, list)

2000-11-07 Thread Howard Chu
I would omit the XARGS LEN. Presumably the local platform's xargs command is already properly configured for the native system's line length limitations. -- Howard Chu Chief Architect, Symas Corp. Director, Highland Sun http://www.symas.com http://highlandsun.com/hyc

RE: GNU enhancement -- $(xargs cmd, list)

2000-11-06 Thread Howard Chu
problem mechanics were understood... -- Howard Chu Chief Architect, Symas Corp. Director, Highland Sun http://www.symas.com http://highlandsun.com/hyc -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Reid Madsen Sent: Monday

RE: GNU enhancement -- $(xargs cmd, list)

2000-11-06 Thread Howard Chu
Try "xargs command tmpfile" instead of "cat tmpfile | xargs command" ... -- Howard Chu Chief Architect, Symas Corp. Director, Highland Sun http://www.symas.com http://highlandsun.com/hyc -Original Message- From: [EMAIL PROTECTED] [mai

RE: does gnumake 3.77 wildcard work under solaris 2.6?

2000-06-15 Thread Howard Chu
This is a known bug in 3.77. 3.79 is the current version, you really need to update. -- Howard Chu Chief Architect, Symas Corp. Director, Highland Sun http://www.symas.com http://highlandsun.com/hyc -Original Message- From: John Lewis 425-865-3510 [mailto

RE: -j fails on DYNIX/ptx

2000-05-31 Thread Howard Chu
that a file does not exist, even though it does. The big question is what is generating the signals - presumably it's SIGCHLD in this case, and there's probably not much you can do about that. -- Howard Chu Chief Architect, Symas Corp. Director, Highland Sun http://www.symas.com