help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Multiple jobs option doesn´t work after s ome time


From: PATTON, BILLY \(SBCSI\)
Subject: RE: Multiple jobs option doesn´t work after s ome time
Date: Wed, 29 Mar 2006 07:13:10 -0600

Michael,
I'm building a system that will be handling 40k+ files.  But I don't having it 
working yet.  I would be very interested ,if you get email directly to you, on 
what your answers are.

Have you tried "-j --max-load 4.0" ?
This will tell it to execute all jobs possible until system load average 
reaches 4.0.
The number can be increased or decreased.  I would be very interested if you 
experiment with this.

Also
.NOTPARALLEL 
If .NOTPARALLEL is mentioned as a target, then this invocation of make will be 
run serially, even if the `-j' option is given. Any recursively invoked make 
command will still be run in parallel (unless its makefile contains this 
target). Any prerequisites on this target are ignored. 


If any of your sub Makefile have the .NOTPARALLEL It might effect your jobs.

This might also effect your jobs
5.6.3 Communicating Options to a Sub-make 
...
If your operating system doesn't support the above communication, then `-j 1' 
is always put into MAKEFLAGS instead of the value you specified. This is 
because if the `-j' option were passed down to sub-makes, you would get many 
more jobs running in parallel than you asked for. If you give `-j' with no 
numeric argument, meaning to run as many jobs as possible in parallel, this is 
passed down, since multiple infinities are no more than one.

>From the above, could it be that the -j 1 has been passed to your sub dirs and 
>your dependencies are that one subdir must finish before the next can start?  
>If this is true then you will only get one job at a time.  In my current 
>assignment this was the exact problem faced with a vary large build system and 
>used over 1k of independent makefiles.  They were getting no parallel 
>compiles.  I've begun a process to combine all the makefiles into one.  They 
>needed dependencies between independent makefiles, which was not possible, and 
>give them speed.  It was 12 hours for a build.  Our goal is 4 hours.

> -----Original Message-----
> From: address@hidden 
> [mailto:address@hidden On Behalf 
> Of Michael Stather
> Sent: Wednesday, March 29, 2006 6:56 AM
> To: address@hidden
> Subject: Multiple jobs option doesn´t work after some time
> 
> 
> Hi,
> 
> I´ve a very large source tree. When I compile it with eG "-j 4" it 
> starts and spawns 4 jobs, but after some time (it goes down into many 
> subdirs)
> I see that only one job is spawned (by the CPU usage) until the 
> compilatione ends. I don´t see any errors from make.
> Does anyone have a solution or idea what this could be?
> 
> regards
> 
> Michael
> 
> 
> _______________________________________________
> Help-make mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/help-make
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]