Re: Poor CPU utilization in 2.3?

From: Rik van Riel (riel@conectiva.com.br)
Date: Mon Apr 10 2000 - 05:53:31 EST


On 8 Apr 2000, Kjetil Torgrim Homme wrote:

> 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

What you want is a non-broken top...

The version of top you have simply adds the time of
all the running processes and uses it to calculate
the CPU state ... which won't work if you only see
10% of the GCCs.

What top _should_ do is get the CPU info from
/proc/stat, like vmstat does. You'll see your CPUs
are getting used like they should as soon as you
switch to a non-buggy top.

cheers,

Rik

--
The Internet is not a network of computers. It is a network
of people. That is its real strength.

Wanna talk about the kernel? irc.openprojects.net / #kernelnewbies http://www.conectiva.com/ http://www.surriel.com/

- 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:13 EST