Subject: Re: i386 MP performance (generic.mp and generic almost same)
To: Eric Haszlakiewicz <erh@nimenees.com>
From: Gary Thorpe <gathorpe79@yahoo.com>
List: current-users
Date: 11/13/2007 15:26:11
--- Eric Haszlakiewicz <erh@nimenees.com> wrote:

> 
> > I was just curios: while -jN may not work to build one package, is
> it
> > still possible to build N different packages in parallel with
> pkgsrc?
> > [What does that other LOCK variable do?]
> >   
> 
> The PKGSRC_LOCKTYPE variable makes it possible to build packages in 
> parallel, but it's still up to you to kick off N number of make 
> processes.  i.e. you might do something like:
> echo PKGSRC_LOCKTYPE=sleep >> /etc/mk.conf
> cd /usr/pkgsrc/net/firefox && make install > make.out 2>&1 &
> cd /usr/pkgsrc/lang/gcc && make install  > make.out 2>&1 &
> 
> This will probably work best if the dependency trees between each
> make 
> have little overlap, as I don't think the build will go to the next 
> dependency if an earlier is locked, so things can tend to get 
> synchronized without much parallelism.
> 
> eric
> 

Thanks for explaining this.

Are there other specific values PKGSRC_LOCKTYPE takes besides 'sleep'?
Is there any documention on how it works in detail (I checked to pkgsrc
guide and it doesn't seem to be described)?


      Ask a question on any topic and get answers from real people. Go to Yahoo! Answers and share what you know at http://ca.answers.yahoo.com