From owner-freebsd-newbies@FreeBSD.ORG Tue Mar 9 10:29:25 2004 Return-Path: Delivered-To: freebsd-newbies@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 933FD16A4CE for ; Tue, 9 Mar 2004 10:29:25 -0800 (PST) Received: from mail.gmx.net (mail.gmx.de [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id CCFF643D1F for ; Tue, 9 Mar 2004 10:29:24 -0800 (PST) (envelope-from lars@gmx.at) Received: (qmail 9370 invoked by uid 65534); 9 Mar 2004 18:29:23 -0000 Received: from 147.195.186.195.cust.bluewin.ch (EHLO gmx.at) (195.186.195.147) by mail.gmx.net (mp004) with SMTP; 09 Mar 2004 19:29:23 +0100 X-Authenticated: #912863 Message-ID: <404E0D0A.7030902@gmx.at> Date: Tue, 09 Mar 2004 19:29:30 +0100 From: lars User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6b) Gecko/20040206 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Nikolas Britton References: <200403081055.10903.david.blackorby@comcast.net> <404CDB39.4030504@gmx.at> <404DF52C.3020008@nbritton.org> In-Reply-To: <404DF52C.3020008@nbritton.org> X-Enigmail-Version: 0.83.3.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-newbies@freebsd.org Subject: Re: Update X-BeenThere: freebsd-newbies@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Gathering place for new users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Mar 2004 18:29:25 -0000 Nikolas Britton wrote: > lars wrote: > >> David Blackorby wrote: >> $cd /usr/src >> $sudo make -j4 buildworld > > > I was told* that running make/buildworld to use mutli processors was a > bad idea, is this still true? > > *Absolute BSD, Book > > I did this on a Intel P4 HTT enabled system...and it's crashing pretty consistently. Albeit not always with the same error, sometimes with a panic: ohci_add_done addr not found ... just now with a Fatal trap 12: page fault while in kernel mode fault code = supervisor read, page not present I'll have to investigate further on that. ----------------------------------------------------------------------------- However when I do above on a P4Mobile (the machine I'm writing on atm), I have no problems. I have this info from http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html Specifically: It is now possible to specify a -j option to make which will cause it to spawn several simultaneous processes. This is most useful on multi-CPU machines. However, since much of the compiling process is IO bound rather than CPU bound it is also useful on single CPU machines. On a typical single-CPU machine you would run: # make -j4 buildworld make(1) will then have up to 4 processes running at any one time. Empirical evidence posted to the mailing lists shows this generally gives the best performance benefit. If you have a multi-CPU machine and you are using an SMP configured kernel try values between 6 and 10 and see how they speed things up. Be aware that this is still somewhat experimental, and commits to the source tree may occasionally break this feature. If the world fails to compile using this parameter try again without it before you report any problems. Regards, Lars.