Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Nov 1997 04:17:19 -0500 (EST)
From:      "John S. Dyson" <toor@dyson.iquest.net>
To:        Shimon@i-Connect.Net (Simon Shapiro)
Cc:        dyson@FreeBSD.ORG, freebsd-current@FreeBSD.ORG
Subject:   Re: More on fast make world...
Message-ID:  <199711040917.EAA00368@dyson.iquest.net>
In-Reply-To: <XFMail.971104010703.Shimon@i-Connect.Net> from Simon Shapiro at "Nov 4, 97 01:07:03 am"

next in thread | previous in thread | raw e-mail | index | archive | help
Simon Shapiro said:
> 
> Hi John S. Dyson;  On 04-Nov-97 you wrote: 
> >  Simon Shapiro said:
> > > I really am not so sure what takes the time, but it is not disk I/O.
> > > 
> > > I setup a test machine with 128MB of RAM, a RAID-1 root disk, a RAID-0
> > > 8x32KB stripes wide for /usr/src and /usr/obj, on a DPT PM3334UDW
> > > (Ultra,
> > > wide, differential).  Disks are 4GB Barcudas all around.
> > > 
> > > This configuration is capable of 980+ disk I/O per second on the RAID-1
> > > and
> > > 1740+ on the RAID-0 array.
> > > 
> > > Starting with a fresh install, SMP kernel current for today, DPT
> > > configured
> > > with no options, but the performance monitors and a 1 sec timeout hack
> > > to
> > > catch lost interrupts (new firmware that may be a bit buggy).
> > > 
> > > Top reports (abbreviated):
> > > 
> > > load averages:  7.36,  6.59,  5.06
> > > CPU states: 54.1% user, 0.0% nice, 44.4% system, 1.6% interrupt,
> > > 0.0%idle
> > > Mem: 11M Active, 17M Inact, 23M Wired, 47M Cache, 8248K Buf, 26M Free  
> > > 
> > > Iostat says:
> > > 
> > >       tty          sd0          sd16          cpu
> > >  tin tout sps tps msps  sps tps msps  us ni sy in id
> > >    0 1905 771  74  0.0  668  56  0.0  27  0 51  2 20
> > > 
> > > This is typical over the last hour or so.  Anything else I should try?
> > > 
> >  Try increasing the size of the vnode cache:
> >  sysctl -w debug.wantfreevnodes=15000
> >  
> >  Make sure you are using -pipe, if not, then use MFS for /tmp or
> >  wherever your tempfiles go...
> 
> Silly question:  How do I do that?  Last I tried I ended in a panic...
> How large? Where to mount?  /tmp or /var/tmp?  I foreget ...
> 
> Without these improvements, we are at 102 minutes end-to-end.  Let's go for
> sub-hour make world!
> 

This is my fstab entry.  You'll also have to add the MFS option to the kernel.
The -s param should be smaller than your amount of swap.  To add -pipe, just
edit your /etc/make.conf file and add -pipe to your CFLAGS entry.

swap			/tmp		mfs	rw,-s=210000,-b=16384,-f=2048 0 0

-- 
John
dyson@freebsd.org
jdyson@nc.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199711040917.EAA00368>