Subject: Re: pkgsrc on SMP machines
To: Alan Post <apost@recalcitrant.org>
From: None <segv@netctl.net>
List: tech-pkg
Date: 12/15/2005 03:54:33
On Thu, 15 Dec 2005 03:16:55 +0000 (UTC)
Alan Post <apost@recalcitrant.org> wrote:

> In article <20051215025259.57449f5c.segv@netctl.net>, segv@netctl.net wrote:
> > Hi, can anyone suggest a good strategy for utilising the most of SMP
> > hardware when building software from pkgsrc??
> > 
> > I have Sun E450 with 4X 250MHz UltraSparc II CPUs, most of the time
> > the system is 70% idle, because pkgsrc tends to use mainly 1 CPU.
> > 
> > Fixing all Makefiles to support -j > 1 seems quite unreasonable, I
> > guess the best solution would be to have a multithreaded compiler,
> > which distributes workload to a specified number of threads, i.e
> 
> Alternatively, if you're building a bunch of packages, pkgsrc could
> run multiple builds concurrently, since it has all the dependency
> information.  I seem to recall reading on this list about an
> implementation of this in the past.
> 
>   Alan
> 
> 

The downside of this apporach is: if you have a large package like www/firefox,
it won't be able to take advantage for multiple CPUs