NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: How to get build.sh load-balance CPUs



Louis Guillaume wrote:

> My machine has 2 hyper-threaded CPUs...
> 
> cpu0 at mainbus0 apid 0: Intel 686-class, 2399MHz, id 0xf24
> cpu1 at mainbus0 apid 1: Intel 686-class, 2399MHz, id 0xf24
> cpu2 at mainbus0 apid 6: Intel 686-class, 2399MHz, id 0xf24
> cpu3 at mainbus0 apid 7: Intel 686-class, 2399MHz, id 0xf24
> 
> ... but build.sh can't seem to use but one of them: (from top -u during 
> a build.sh)...
> 
> CPU0 states:  0.0% user,  0.0% nice,  0.0% system,  0.0% interrupt, 
> 100% idle
> CPU1 states:  0.0% user,  0.0% nice,  0.2% system,  0.0% interrupt, 
> 99.8% idle
> CPU2 states:  0.0% user,  0.0% nice,  0.0% system,  0.0% interrupt, 
> 100% idle
> CPU3 states: 95.2% user,  0.0% nice,  4.8% system,  0.0% interrupt, 
> 0.0% idle
> 
> 
> ... the whole build is being done on CPU3. Is there a setting I can use 
> in mk.conf or somewhere to kick these builds into high gear?
> 
> Louis
> 

try passing "-j 8" to build.sh

Attachment: pgp0lkUqam6mN.pgp
Description: PGP signature



Home | Main Index | Thread Index | Old Index