Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Jan 2002 13:18:42 -0800
From:      Kent Stewart <kstewart@owt.com>
To:        Mike Tancsa <mike@sentex.net>
Cc:        freebsd-stable@FreeBSD.ORG
Subject:   Re: make -j4 world
Message-ID:  <3C4DD732.5030600@owt.com>
References:  <5.1.0.14.0.20020122145124.03cd1380@marble.sentex.ca> <5.1.0.14.0.20020122145124.03cd1380@marble.sentex.ca> <5.1.0.14.0.20020122151930.03d62220@marble.sentex.ca> <3C4DCB91.7080701@owt.com> <3C4DCDE7.C5E77C03@math.missouri.edu> <20020122125645.1a0c9b36.sreese@codysbooks.com> <5.1.0.14.0.20020122160206.0475a170@marble.sentex.ca>

next in thread | previous in thread | raw e-mail | index | archive | help


Mike Tancsa wrote:

> 
> Just successfully completed a -j2 on the same machine. Apart from rm -R 
> /usr/obj nothing was/is different.  What extra debugging information can 
> I provide to help track this down ?  The machine is not in production so 
> I can do with it as needed.


I think to start with you need to capture your build. What I use is 
the following script. It was just changed from -j4 to no -j to see 
what the difference in elapsed time is. I will run -j2 next. I don't 
have to do the recursive rm to get a successful buildworld. I think 
you would want it to fail and then see what isn't being syncronized 
properly.

opal# cat mkworld
#! /bin/sh
cd /usr/src
make     buildworld 2>&1 | tee  /var/log/build/bworld-`date 
"+%Y%m%d-%H%M"`.log
#make -j2 buildworld 2>&1 | tee  /var/log/build/bworld-`date 
"+%Y%m%d-%H%M"`.log
#make -j4 buildworld 2>&1 | tee  /var/log/build/bworld-`date 
"+%Y%m%d-%H%M"`.log

It is all one line tho. I added a build directory to /var/log and all 
of my builds and installs (kernel and world) go in there.

Kent


> At 01:04 PM 1/22/02 -0800, Kent Stewart wrote:
> 
> 
>> Scott Reese wrote:
>>
>>> On Tue, 22 Jan 2002 14:39:03 -0600
>>> Stephen Montgomery-Smith <stephen@math.missouri.edu> wrote:
>>>
>>>> On the "Error in make buildworld" thread I said that I had this problem
>>>> on 1 out of 3 machines, so you may not necessarily see this problem.  I
>>>> only saw this problem on the fastest machine.
>>>>
>>> I've actually found that on a fast computer (1.6 GHz Pentium IV) 
>>> using the "-j"
>>> flag tends to slow things down a bit.  The standard "make buildworld" 
>>> ran much
>>> faster and much more smoothly than "make -j4 buildworld."  It was the 
>>> same with
>>> kernel builds.  Honestly, with a machine that fast, I don't really 
>>> see a need
>>> for the "-j" flags anyway.
>>
>>
>>
>> That has also been my experience on most of my single cpu systems. I 
>> find the combination of # of controllers and ATA-100 drives makes a 
>> difference. I have one XP system setup with a -j4 and the other with 
>> -j6. I just finished a buildworld. It required 26:40. I have a make 
>> script that I uncomment the line I want it to use. The make script is 
>> setup to use no -j to -j12 in steps of 2. The system with -j6 used to 
>> be a dual 866 coppermine and I hadn't noticed that it was still -j6.
>>
>> There were two threads of build failures and I am not seeing it the 
>> buildworld fail on this end.
>>
>>
>> Kent
>>
>> -- 
>> Kent Stewart
>> Richland, WA
>>
>> mailto:kbstew99@hotmail.com
>> http://users.owt.com/kstewart/index.html
>> FreeBSD News http://daily.daemonnews.org/
>>
>>
>> To Unsubscribe: send mail to majordomo@FreeBSD.org
>> with "unsubscribe freebsd-stable" in the body of the message
> 
> 
> 
> .
> 


-- 
Kent Stewart
Richland, WA

mailto:kbstew99@hotmail.com
http://users.owt.com/kstewart/index.html
FreeBSD News http://daily.daemonnews.org/


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?3C4DD732.5030600>