Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Sep 2001 18:06:10 -0400
From:      Garance A Drosihn <drosih@rpi.edu>
To:        Mike Tancsa <mike@sentex.net>, stable@FreeBSD.ORG
Subject:   Re: make -j4 vs -j8... 4 works, but 8 does not
Message-ID:  <p05101001b7c97cb4f801@[128.113.24.47]>
In-Reply-To: <5.1.0.14.0.20010915123606.035fcc18@192.168.0.12>
References:  <5.1.0.14.0.20010915123606.035fcc18@192.168.0.12>

next in thread | previous in thread | raw e-mail | index | archive | help
At 12:38 PM -0400 9/15/01, Mike Tancsa wrote:
>Should a parallel build always work ? I was just trying to stress
>a new series of MB we are evaluating and to my suprise, -j4 works,
>but not -j8

Well, in a philosophical sense, yes it "should" always work.  Bugs
creep into the process from time-to-time.  I can not say that I
know how to pin down such problems when they occur.  I do know
that earlier this year I had some problem I was checking, and as
a tangent to that problem I did several fresh 'make buildworld's,
going from -j2 to -j10 on my dual 650-MHz pentium machine.  I then
did md5 comparisons of the resulting obj-tree results, and they all
came out the same.  Of course, I wasn't getting any errors at build
time, either.

What happens if you remove all of /usr/obj/usr/src before trying
to build with -j8?

>===> usr.sbin/boot0cfg
>rm -f .depend
>mkdep -f .depend -a    -I/usr/obj/usr/src/i386/usr/include 
>/usr/src/usr.sbin/boot0cfg/boot0cfg.c
>cd /usr/src/usr.sbin/boot0cfg; make _EXTRADEPEND
>echo boot0cfg: /usr/obj/usr/src/i386/usr/lib/libc.a  >> .depend
>1 error
>*** Error code 2
>1 error
>*** Error code 2

the thing which interests me about the above is that  'make'  aborts
with "error code 2", but I don't see any error message as to what the
error was.  I wonder if this is another case in "/bin/sh -e" where an
error return is NOT being ignored when it should be ignored.  I fixed
two similar bugs last summer last summer.

[aside on those multiple builds that I did:  It was interesting that
even though it was on a dual-processor system, there was not much of
a speed improvement (on 4.3-stable) when going from -j4 to -j10.  Big
improvement going from -j1 to -j4, but after that it didn't help much]


-- 
Garance Alistair Drosehn            =   gad@eclipse.acs.rpi.edu
Senior Systems Programmer           or  gad@freebsd.org
Rensselaer Polytechnic Institute    or  drosih@rpi.edu

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




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