Subject: Re: MP scheduling
To: None <hockey@dialectronics.com>
From: Havard Eidnes <he@NetBSD.org>
List: port-macppc
Date: 11/11/2004 14:17:39
> On Thu, 11 Nov 2004 07:56:18 -0500
> Michael <macallan18@earthlink.net> wrote:
>
> > There should be a way to tell build.sh to run make with -j2 :)

There is, it's "-j 2" as argument to build.sh.

> I wonder if the shell script isn't picking up that it's on a
> multiprocessor kernel...

The build.sh script does not automatically detect the number of
concurrent make processes to use.  First off, "-j 2" might not be
enough to fully utilize two CPUs; sometimes processes are idling
waiting for I/O, which could be used by a third job.  On the other
hand, overdoing the concurrency is going to be counter-productive.
Secondly, the script should not try to second-guess the user and
assume that he really wanted to hog all the available CPU resources,
so I think we're stuck with having to manually specify the make job
concurrency level.

Regards,

- H=E5vard