From owner-freebsd-hackers Thu Feb 22 7:54:51 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from urban.iinet.net.au (urban.iinet.net.au [203.59.24.231]) by hub.freebsd.org (Postfix) with ESMTP id 8503237B4EC for ; Thu, 22 Feb 2001 07:54:46 -0800 (PST) (envelope-from julian@elischer.org) Received: from elischer.org (i077-134.nv.iinet.net.au [203.59.77.134]) by urban.iinet.net.au (8.8.7/8.8.7) with ESMTP id XAA00219; Thu, 22 Feb 2001 23:54:28 +0800 Message-ID: <3A953617.CD81D643@elischer.org> Date: Thu, 22 Feb 2001 07:53:59 -0800 From: Julian Elischer X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 5.0-CURRENT i386) X-Accept-Language: en, hu MIME-Version: 1.0 To: Robin Cutshaw Cc: Peter Wemm , freebsd-hackers@FreeBSD.ORG Subject: Re: Build timings - FreeBSD 4.2 vs. Linux References: <20010219134043.A8347@intercore.com> <200102192021.f1JKLQr61572@mobile.wemm.org> <20010221090207.A11473@intercore.com> Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Robin Cutshaw wrote: > > 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. soft updates is pointless on a ram disk. but it makes a huge difference if /tmp is on disk. > 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. turn soft updtes off again on it.. it is just wasting CPU cycles. > > 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 -- __--_|\ Julian Elischer / \ julian@elischer.org ( OZ ) World tour 2000-2001 ---> X_.---._/ v To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message