Re: Poor CPU utilization in 2.3?

From: Kjetil Torgrim Homme (kjetilho@ifi.uio.no)
Date: Sat Apr 08 2000 - 13:56:04 EST


An update, but it's not any better.
This is running Linux 2.3.99-pre4-5 while doing make -j 3 on same:

CPU states: 29.0% user, 14.1% system, 5.0% nice, 57.9% idle
CPU states: 32.6% user, 3.1% system, 4.0% nice, 65.3% idle
CPU states: 19.1% user, 2.5% system, 4.4% nice, 79.5% idle
CPU states: 65.8% user, 6.5% system, 5.6% nice, 29.3% idle
CPU states: 48.4% user, 9.5% system, 3.8% nice, 43.6% idle
CPU states: 56.7% user, 4.5% system, 4.4% nice, 39.9% idle

Since this is a dual-celeron, those numbers should add up to 200%.
Here's a full snapshot of top:

  8:35pm up 3 min, 4 users, load average: 4.02, 1.58, 0.59
74 processes: 68 sleeping, 6 running, 0 zombie, 0 stopped
CPU states: 39.4% user, 4.5% system, 4.6% nice, 57.6% idle
Mem: 254884K av, 103856K used, 151028K free, 0K shrd, 3852K buff
Swap: 104416K av, 0K used, 104416K free 52988K cached

  PID USER PRI NI SIZE RSS SHARE STAT LIB %CPU %MEM TIME COMMAND
  969 root 20 0 5692 5692 1688 R 0 16.1 2.2 0:00 cc1
  975 root 20 0 4348 4348 1244 R 0 8.9 1.7 0:00 cc1
  959 root 0 0 968 968 484 S 0 2.9 0.3 0:00 make
  221 kjetilho 19 19 736 736 584 R N 0 2.5 0.2 2:16 rc5des
  960 root 3 0 968 968 484 S 0 2.3 0.3 0:00 make
  220 kjetilho 19 19 736 736 584 R N 0 2.1 0.2 2:17 rc5des
  968 root 1 0 1772 1772 404 S 0 2.1 0.6 0:00 cpp
  980 root 20 0 1376 1376 404 R 0 1.7 0.5 0:00 cpp
  974 root 5 0 1328 1328 404 S 0 1.5 0.5 0:00 cpp
  225 root 0 0 39968 39M 1584 S 0 0.7 15.6 0:03 X

When it is truly idle, top looks like this:

52 processes: 49 sleeping, 3 running, 0 zombie, 0 stopped
CPU states: 199.6% user, 0.1% system, 199.5% nice, 0.0% idle
Mem: 254884K av, 86724K used, 168160K free, 0K shrd, 3860K buff
Swap: 104416K av, 0K used, 104416K free 53336K cached

  PID USER PRI NI SIZE RSS SHARE STAT LIB %CPU %MEM TIME COMMAND
  220 kjetilho 20 19 736 736 584 R N 0 99.9 0.2 2:26 rc5des
  221 kjetilho 19 19 736 736 584 R N 0 99.6 0.2 2:25 rc5des
  418 kjetilho 0 0 796 796 612 R 0 0.1 0.3 0:00 top
    1 root 0 0 196 196 168 S 0 0.0 0.0 0:04 init
    2 root 0 0 0 0 0 SW 0 0.0 0.0 0:00 kswapd
    3 root 0 0 0 0 0 SW 0 0.0 0.0 0:00 kflushd
    4 root 0 0 0 0 0 SW 0 0.0 0.0 0:00 kupdate

rc5des is the distributed.net project, of course, and it does next to
no I/O. It should gobble up all available CPU-time. How can I tell
how much time is spent in spinlocks? (I assume some patch is needed :-)

Kjetil T.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Apr 15 2000 - 21:00:11 EST