Tuesday, 16 November 2010

Configuring dmake on SPARC to use *all* cpu

I've been trying to help out with Openindiana and Illumos recently and the buildtime was staggeringly poor compared to x86/x64 hosts. While the UltraSPARC IIIi at 1.2Ghz is no speed demon these days its results were well below par.


As I was building I noticed I had daft CPU usage stats, such as 70% idle but a high load average - clearly not doing much compiling then. After a quick google around I found out about .dmakerc (which doesn't seem to work) and about /etc/opt/SPROdmake/dmake.conf - setting max_jobs: 80 seems to have done the trick.


Now when compiling its got a high load average and is using all cpu.



last pid: 12642;  load avg:  6.11,  5.85,  4.09;  up 0+00:22:03        13:14:22
88 processes: 82 sleeping, 3 running, 1 zombie, 2 on cpu
CPU states:  0.0% idle, 80.2% user, 19.8% kernel,  0.0% iowait,  0.0% swap
Kernel: 445 ctxsw, 10766 trap, 596 intr, 9916 syscall, 14 fork, 6139 flt
Memory: 4096M phys mem, 2223M free mem, 2048M total swap, 2048M free swap







No comments: