forum.netbsd.se - NetBSD Sweden

You are not logged in.

#1 2004-12-19 18:50:33

LasseKongo
Guest

Parallel build of packages

HI all!

Is it possible to make pkgsrc use more than 1 CPU for building packages (make -jX) ??

I have installed NetBSD 2.0 with SMP kernel on my dual sparcstation 20 and it would be nice to speed up the builds.

regards
DD

 

#2 2004-12-19 19:22:57

mikael
Member
From: Stockholm, Sweden
Registered: 2004-05-11
Posts: 101

Re: Parallel build of packages

Issue the command 'top' as you build a package.
Isn't both processors under load without passing
any extra flags to make?

Offline

 

#3 2004-12-19 21:08:17

mikael
Member
From: Stockholm, Sweden
Registered: 2004-05-11
Posts: 101

Re: Parallel build of packages

Oh, I forgot a small detail, make is single threaded and therefore do not
take advantage of several processors unless parallell make processes are
launched.
You can put CFLAGS+=-j2 in /etc/mk.conf. Make understands when two
build processes do not depend on each other and parallell builds can be
launched.

Offline

 

#4 2004-12-21 19:35:14

LasseKongo
Guest

Re: Parallel build of packages

Doesn´t seem to work.
CFLAGS+= sets extra flags to pass to the compiler, not to make.

Any other ideas ? It would be really nice to get both 50 Mhz working smile

 

#5 2004-12-21 22:17:47

mikael
Member
From: Stockholm, Sweden
Registered: 2004-05-11
Posts: 101

Re: Parallel build of packages

ops, try MAKEFLAGS instead.

Offline

 

#6 2004-12-22 10:44:36

LasseKongo
Guest

Re: Parallel build of packages

Thanks, that did the trick.

 

Board footer

Powered by PunBB
© Copyright 2002–2008 PunBB