Solved Building world. CPU ~75% idle.

rigoletto@

Developer
Hello,

I am building world and top report CPU 75% idle, I was expecting 100% usage.

Is this behavior expected, and is there a way to improve?

Thanks!

EDIT: Core 2 Quad Q9300

make.conf:

Code:
CPUTYPE?=core2 
MAKE_JOBS_NUMBER?=4
BUILD_OPTIMIZED=YES
OPTIMIZED_CFLAGS=YES
WITH_CPUFLAGS=YES
WITH_OPTIMIZED_CFLAGS=YES
WITH_ICONV=YES
WITHOUT_DEBUG=YES
NO_PROFILE=YES
NO_WERROR=
WERROR=

## Server options 
WITHOUT_X11=YES
WITHOUT_CUPS=YES
WITHOUT_FONTCONFIG=YES
WITHOUT_MODULES = sound ntfs
OPTIONS_UNSET= CUPS DOCS NLS LPR

## Other options
NO_SENDMAIL=true
DEFAULT_VERSIONS+=ssl=libressl

src.conf:

Code:
WITHOUT_BLUETOOTH=YES
WITHOUT_GAMES=YES
WITHOUT_EE=YES
WITHOUT_FLOPPY=YES
WITHOUT_HYPERV=YES
WITHOUT_IPFILTER=YES
WITHOUT_IPFW=YES
WITHOUT_KERBEROS=YES
WITHOUT_KERNEL_SYMBOLS=YES
WITHOUT_LIB32=YES
WITHOUT_LPR=YES
WITHOUT_MAIL=YES
WITHOUT_PPP=YES
WITHOUT_PROFILE=YES
WITHOUT_TALK=YES
WITHOUT_TELNET=YES
WITHOUT_WIRELESS=YES
WITHOUT_ZFS=YES
 
I've never used MAKE_JOBS_NUMBER?=4 in make.conf, but I'm guessing it does the same thing as -j#.
Have you tried playing around a bit with that value?

Per the handbook (https://www.freebsd.org/doc/handbook/makeworld.html):
"On a multi-CPU machine, try values between 6 and 10 to see how they speed things up."

I'm not near my machine right now, but I believe I'm currently using 6 or 7.
However, that's on a 6-core CPU.

Nonetheless, see if boosting that value up changes your CPU usage.
 
nbosley I understand MAKE_JOBS_NUMBER? is exactly same of -jX, but now making some quick tests I believe it is obsolete. The idle times are very different when using -jX instead of MAKE_JOBS_NUMBER?.

I will try to buildword with -j6 to see what happens.

Thanks!
 
make buildworld failed to compile with -j6 but also with -j4. I will make some changes on make.conf in order to try to have it compiled. On both cases I had about 0% idle CPU time.

Thanks!
 
Back
Top