Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: geerten kuiper <geerten@bart.nl>
To: axp-list@redhat.com
Subject: Re: DS20 Assorted Difficulties
Date: Thu, 15 Apr 1999 22:48:54 +0200	[thread overview]
Message-ID: <3.0.1.32.19990415224854.0107d750@pop.bart.nl> (raw)
In-Reply-To: <199904151715.NAA12481@linux04.hlo.dec.com>

Jay

At 13:15 15/04/99 -0400, you wrote:
>
>The 2.0 kernels did "parallel make" via breadth-then-depth; when dropping
>into a subdirectory, compile jobs would be spawned for all the files in that
>directory, and then wait for those to finish before going on to
>subdirectories or popping back up to do any siblings, etc, etc. So
>essentially the number of parallel compiles was limited to how many compiles
>were at a certain directory level, ie drivers/scsi would spawn off compiles
>for all the drivers configured plus the "generic" SCSI subsystem sources
>(like scsi.c and hosts.c).  This never got so big to cause problems; I like
>to run a pair of parallel makes in infinite loops to put a test load on a
>system.
>
>Now, the 2.2 kernels changed to a depth-then-breadth technique (at least
>that's what it looks like to me), in which all directory levels are
>activated at the same time (unless limited by a max number of processes to
>spawn, ie -j 8), with one compile at each level. This results, with just -j
>and no max limit, in a veritable flood of processes/compiles starting up,
>and it seems to overwhelm some part of the system.
>
>So, I ask again, anyone know why this was done, and does it adversely affect
>the INTELs as much as it does the ALPHAs, if just done with -j?
>
Here's what I seem to remember:

-j<n> does not inherit from toplevel make to subdirectory make: you start
<n> of them, but each is executed sequentially.

-j does inherit, so you start all makes and sub-makes and sub-sub-makes and
all tasks at once: this may get you into problems.

in the older kernels the "structure of the toplevel makefile would prevent
paralellism" at that level. -j would work one subdirectory at a time: a
system with a reasonable amount of RAM would handle that.

-j<n> would have no effect at all with these kernels: you had to change the
MAKE= line in the makefile to get a -j<n> to the sub-makes.


the "..." above is a quote-by-heart from a posting on smp-list. I think it
was from Linus himself, so at least the original (which may differ from my
memory) must have been correct.

Groeten,
Geerten.

Geerten Kuiper            |  "It is customary to append a signature or 
Corn. Houtmanstraat 113   |   .sig to a mail message, usually containing 
2593 RG   Den Haag        |   information on the author, along with a 
Nederland                 |   joke or a motto."
                          |                                Olaf Kirch
                          |        LINUX Network Administrators Guide


  parent reply	other threads:[~1999-04-15 21:22 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-04-15  5:52 DS20 Assorted Difficulties Simon Shapiro
1999-04-15 13:52 ` Greg Lindahl
1999-04-16  4:46   ` Simon Shapiro
1999-04-15 14:18 ` Jay.Estabrook
1999-04-15 14:21   ` Greg Lindahl
1999-04-15 17:15     ` Jay.Estabrook
1999-04-15 17:58       ` Greg Lindahl
1999-04-15 20:48       ` geerten kuiper [this message]
1999-04-16  4:43         ` Simon Shapiro
1999-04-16 19:22         ` Jay.Estabrook
1999-04-16 20:15           ` Quant-X Alpha Linux Support
1999-04-16  7:20       ` Richard Henderson
1999-04-18  5:18   ` Simon Shapiro
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox