Subject: Re: pkgsrc slow on older archs (m68k)
To: None <tech-pkg@NetBSD.org>
From: grant beattie <grant@NetBSD.org>
List: tech-pkg
Date: 01/02/2006 12:20:12
On Thu, Dec 29, 2005 at 03:08:51PM +0100, Bernd Ernesti wrote:

> Hi,
> 
> I was trying to do a bulk build of Q4 on my amiga (68040@40MHz with 96MB RAM)
> and every make target is takes ages.
> 
> E.g. there are some variables printed at the begining:
> 
> +----------------------------------------+
> | Some variables used in the bulk build: |
> +----------------------------------------+
> OPSYS           = NetBSD
> OS_VERSION      = 3.0
> MACHINE_ARCH    = m68k
> ..
> 
> It takes 36 seconds to print each variable.
> 
> I have the feeling that the .mk files are just too complex.
> 
> This makes it nearly impossible to do a bulk build on slower archs, which
> are in a big need for binary packages.
> 
> Any ideas how we could improve this situation?

is fork() particularly expensive on this machine?

the most obvious way I can think of to improve performance is to
reduce the number of fork()s (tv has already done a lot of work in
this area, I believe).

grant.