Make buildworld failure
tillman at seekingfire.com
Tue Aug 19 21:10:41 PDT 2003
On Tue, Aug 19, 2003 at 09:03:11PM -0400, Jud wrote:
> On Tue, 19 Aug 2003 15:49:38 -0500, Charles Howse <chowse at charter.net>
> > Very interesting.
> > On page 490 of "FreeBSD Unleashed" it references the -j4 parameter as a
> > way to speed up the make buildworld process by spawning multiple
> > simultaneous processes.
> > The same thing is referenced in Chapter 20 of the FreeBSD Handbook.
> > Is this now depreciated?
> Whether deprecated or not, many posts to this mailing list have said -j4
> doesn't speed up "make buildworld" anyway, and that's been my experience.
> I'm sure it depends on your setup.
To use -j effectively, try putting /usr/obj and /usr/src on different
drives (ideally, on drives dedicated to the task, meaning a third drive
for the OS itself) and testing with `time make buildkernel -jX` (where X
is greater than 1). You should see a measurable decrease in compile
time even on a single CPU system simply because you can keep both disks
On the other hand, if you have only a single CPU and a single disk and
one or the other is maxed out it's unlikely that using -j will help (as
Chapter 18 of _Absolute BSD_ (Michael Lucas) has a description of tuning
buildkernel. If you compare the output of `top` with `vmstat 5` while
building without -j on a box with a reasonably fast CPU and a single
disk you'll probably see that the CPU is idle for some percentage of the
time, but the number of items under the 'b' column in vmstat is
occassionally above 0. This means that the CPU has cycles available yet
tasks are blocking on disk: classic disk IO bottlenecking.
'Course, as I say all this, building with -j on sparc64 is broken in
-CURRENT at the moment so I'm not using -j for a while. Heh. It's handy
when it works :-)
"Surely the 4 sysadmins of the apocalypse should be:
edquota, rm -rf, kill -9, and shutdown."
- Rob Blake
More information about the freebsd-questions