From owner-freebsd-hackers Wed Feb 21 6: 7:32 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from num1sun.intercore.com (num1sun.intercore.com [199.181.243.1]) by hub.freebsd.org (Postfix) with ESMTP id 5481A37B491 for ; Wed, 21 Feb 2001 06:07:29 -0800 (PST) (envelope-from robin@num1sun.intercore.com) Received: (from robin@localhost) by num1sun.intercore.com (8.11.2/8.11.2) id f1LE28E11487; Wed, 21 Feb 2001 09:02:08 -0500 (EST) Date: Wed, 21 Feb 2001 09:02:07 -0500 From: Robin Cutshaw To: Peter Wemm Cc: Robin Cutshaw , freebsd-hackers@FreeBSD.ORG Subject: Re: Build timings - FreeBSD 4.2 vs. Linux Message-ID: <20010221090207.A11473@intercore.com> References: <20010219134043.A8347@intercore.com> <200102192021.f1JKLQr61572@mobile.wemm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200102192021.f1JKLQr61572@mobile.wemm.org>; from peter@netplex.com.au on Mon, Feb 19, 2001 at 12:21:26PM -0800 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Feb 19, 2001 at 12:21:26PM -0800, Peter Wemm wrote: > > > > Any ideas as to why it would take almost three times longer to build > > on FreeBSD? > > This is probably a silly question, but you did recompile the kernel for > SMP, right? > Actually, I was using the stock GENERIC UP kernel. I wanted to get a baseline. > Have you tuned the FreeBSD kernel? It still ships with a worst-case > configuration so that it runs optimally on i386 cpus. :-( Copy GENERIC > to something else and remove all but 'cpu i686', rebuild and install. > Also, get rid of 'sl', and 'ppp' from the kernel config as that messes > up certain things (interrupt masks). Ideally, do a proper cleanup and > configure it for your specific hardware (ie: remove all the other ethernet > drivers, etc). > There's a problem here. I tried to configure an SMP kernel but when it booted the fxp0 (Compaq dual eepro100 adapter) got timeout errors and wouldn't work. I went back and did the config/make on the GENERIC kernel and booted it. Same thing. The stock GENERIC kernel that came with the dist works just fine. Any ideas? One other problem I've seen with the Compaq 8500 system. FreeBSD doesn't see the pci adapter on the secondary bus. I had to move the ethernet adapter to the primary bus for it to work. > > A couple of possibilities.. If you want to compare the two side by side, > try mounting the freebsd filesystems in async mode, just like linux does by > default. In particular, make sure you get /tmp, /var/tmp and wherever your > build is. > OK, I set softupdates on the disk/partition that the build source/target is on. It made no difference in timing. I then created a memory disk, set softupdates on it, and mounted it as /tmp. AMAZINGLY, the build went from 2:50 to 0:40, now much faster than the Linux system. I'm going to do the ram disk thing on Linux and see if it makes a difference. Once I figure out the fxp0 problem from above, I'll do a parallel build and see what speedups occur. Thanks! Robin -- ---- Robin Cutshaw internet: robin@interlabs.com robin@intercore.com Internet Labs, Inc. BellNet: 404-713-4000 robin@XFree86.Org XFree86 coreteam/board member "Time is just one damn thing after another" -- PBS/Nova ---- -- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message