From owner-freebsd-stable Tue Jan 22 12:20:57 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mikea.ath.cx (okc-65-30-192-11.mmcable.com [65.30.192.11]) by hub.freebsd.org (Postfix) with ESMTP id CA86337B41A for ; Tue, 22 Jan 2002 12:20:34 -0800 (PST) Received: (from mikea@localhost) by mikea.ath.cx (8.11.6/8.11.1) id g0MKKMK06805; Tue, 22 Jan 2002 14:20:22 -0600 (CST) (envelope-from mikea) Date: Tue, 22 Jan 2002 14:20:22 -0600 From: mikea To: Stephen Montgomery-Smith Cc: freebsd-stable@FreeBSD.ORG Subject: Re: Error in make buildworld Message-ID: <20020122142022.B6717@mikea.ath.cx> References: <3C4D86A0.1BDE2840@math.missouri.edu> <20020122094857.A5407@mikea.ath.cx> <3C4DC7B6.B6C55696@math.missouri.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3C4DC7B6.B6C55696@math.missouri.edu>; from stephen@math.missouri.edu on Tue, Jan 22, 2002 at 02:12:38PM -0600 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Jan 22, 2002 at 02:12:38PM -0600, Stephen Montgomery-Smith wrote: > mikea wrote: > > This is a known difficulty with multiple make threads. Note that > > I do _NOT_ call it a problem. It is caused by a thread that > > needs getting to the part that expects to have been > > built before the thread that actually builds gets to the > > build-foo code. I have found that I frequently can reissue the > > same command and will get built before it is required by > > something in another thread, and the make will run to completion > > the second time. > But shouldn't the make wait until the first thread finishes before > starting the dependent thread? > > (But I guess if the computer is really fast, it doesn't matter if you > don't have -j4. make buildworld takes 45 minutes on the "fast" > machine.) I haven't noticed that thread synchronization (if make does any) is particularly good for -j 4 or bigger. I have seen that -j 4 is safe on my 2xPIII-866 system, and that -j 8 or larger will fail from time to time because of dependencies not being satisfied. I'm running 4.5-RC1, with UDMA-66 disks and 1GB of RAM, and it runs like a scalded ape, but sometimes make just falls over dead because it needs and 's not built yet. Maybe someone with more knowledge can discuss thread synch issues in make, or provide some URLs. I'd like to know more. -- Mike Andrews mikea@mikea.ath.cx Tired old sysadmin since 1964 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message