From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 5198 invoked from network); 15 Apr 1999 21:22:58 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 15 Apr 1999 21:22:58 -0000 Received: from Njord.bart.nl (Njord.bART.nl [194.158.170.15]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id QAA09346 for ; Thu, 15 Apr 1999 16:59:24 -0400 Received: from pentium (s15.zoetermeer.bART.NL [194.158.173.25]) by Njord.bart.nl (8.8.8/8.8.8) with SMTP id WAA23856 for ; Thu, 15 Apr 1999 22:59:13 +0200 (CEST) Message-Id: <3.0.1.32.19990415224854.0107d750@pop.bart.nl> X-Sender: geerten@pop.bart.nl X-Mailer: Windows Eudora Light Version 3.0.1 (32) Date: Thu, 15 Apr 1999 22:48:54 +0200 To: axp-list@redhat.com From: geerten kuiper Subject: Re: DS20 Assorted Difficulties In-Reply-To: <199904151715.NAA12481@linux04.hlo.dec.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" 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 does not inherit from toplevel make to subdirectory make: you start 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 would have no effect at all with these kernels: you had to change the MAKE= line in the makefile to get a -j 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