Subject: Re: pkgsrc on SMP machines
To: Alan Post <firstname.lastname@example.org>
From: None <email@example.com>
Date: 12/15/2005 03:54:33
On Thu, 15 Dec 2005 03:16:55 +0000 (UTC)
Alan Post <firstname.lastname@example.org> wrote:
> In article <email@example.com>, firstname.lastname@example.org 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.
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