Subject: Re: pkgsrc on SMP machines
To: Lars Nordlund <lars.nordlund@hem.utfors.se>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: tech-pkg
Date: 12/23/2005 19:30:30
On Thu, Dec 22, 2005 at 10:54:23PM +0100, Lars Nordlund wrote:
> 
> > Installing/deinstalling packages takes a fair amount of time, and
> > some large part of the builds would just reinstall packages wich have
> > just been removed (it's common to build in a row several packages which
> > all depends on the same things - see the kde locale packages for example)
> 
> This optimization will be tricky to keep. Perhaps learn make(1) to sort
> build jobs so the ones with the same dependencies are done "as much in
> parallel as possible".. Uhm, no. They should not be done in parallel,
> instead they should be put into one specific 'job-queue'.. And how to
> control which 'job-queue' a target is run in? No, forget this. :-)
> 
> I think the win will be bigger to be able to schedule builds over many
> machines, then to optimize for the fewest amount of pkg_add/pkg_delete.

This is probably doable by improving the existing bulk scripts, rather
than reworking the bulk system to use make. Most of the pieces are
already there ...

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 26 ans d'experience feront toujours la difference
--