2001-12-08 14:34:06

by Petr Kulhavy

[permalink] [raw]
Subject: 119.5% CPU load

Hello.

Look at this "top" snapshot:

-----------------------------------------------------------------------------
2:30pm up 3:46, 10 users, load average: 2.96, 1.50, 0.84
49 processes: 44 sleeping, 4 running, 0 zombie, 1 stopped
CPU states: 0.1% user, 119.4% system, 0.0% nice, 0.0% idle
Mem: 63208K av, 62004K used, 1204K free, 24556K shrd, 34892K buff
Swap: 34236K av, 140K used, 34096K free 7056K cached

PID USER PRI NI SIZE RSS SHARE STAT LIB %CPU %MEM TIME COMMAND
1632 brain 20 0 1724 1724 992 R 0 33.4 2.7 1:19 mc
1654 brain 20 0 784 784 576 R 0 32.2 1.2 0:49 mpg123
1652 root 14 0 500 500 368 R 0 21.4 0.7 0:40 top
84 root 0 0 244 224 192 S 0 15.7 0.3 0:03 gpm
1655 root 20 0 624 624 476 R 0 10.6 0.9 0:02 vi
3 root 0 0 0 0 0 SW 0 5.0 0.0 0:18 kupdate
121 root 2 0 844 844 588 S 0 0.6 1.3 0:00 bash
4 root 0 0 0 0 0 SW 0 0.2 0.0 0:08 kswapd
-----------------------------------------------------------------------------

That's not a joke, it WAS on my machine on very busy network. I've got 2.2.19
kernel and single AMD K6-2/400. I don't have any turbocharger, so I suppose my
CPU is able to perform mere 100% of the load. Can you explain it?

Thanx

Brain

--------------------------------
Petr `Brain' Kulhavy
<[email protected]>
http://artax.karlin.mff.cuni.cz/~brain
Faculty of Mathematics and Physics, Charles University Prague, Czech Republic

---
Promising costs nothing, it's the delivering that kills you.




2001-12-08 15:41:02

by Ken Brownfield

[permalink] [raw]
Subject: Re: 119.5% CPU load

Heh, that's nothing. I see this all the time (I just chose a random
machine and voila):

7:35am up 172 days, 7:29, 1 user, load average: 8.76, 9.69, 10.87
126 processes: 117 sleeping, 9 running, 0 zombie, 0 stopped
CPU states: 38.9% user, 18.9% system, 42.1% nice, 421902.3% idle
Mem: 517192K av, 514040K used, 3152K free, 78564K shrd, 84884K buff
Swap: 1025016K av, 4380K used, 1020636K free 255572K cached

I've always assumed it's a 'top' precision issue, but I think I've only
seen this on 2.2 now that I think about it.

--
Ken.
[email protected]


On Sat, Dec 08, 2001 at 04:43:30PM +0100, [email protected] wrote:
| Hello.
|
| Look at this "top" snapshot:
|
| -----------------------------------------------------------------------------
| 2:30pm up 3:46, 10 users, load average: 2.96, 1.50, 0.84
| 49 processes: 44 sleeping, 4 running, 0 zombie, 1 stopped
| CPU states: 0.1% user, 119.4% system, 0.0% nice, 0.0% idle
| Mem: 63208K av, 62004K used, 1204K free, 24556K shrd, 34892K buff
| Swap: 34236K av, 140K used, 34096K free 7056K cached
|
| PID USER PRI NI SIZE RSS SHARE STAT LIB %CPU %MEM TIME COMMAND
| 1632 brain 20 0 1724 1724 992 R 0 33.4 2.7 1:19 mc
| 1654 brain 20 0 784 784 576 R 0 32.2 1.2 0:49 mpg123
| 1652 root 14 0 500 500 368 R 0 21.4 0.7 0:40 top
| 84 root 0 0 244 224 192 S 0 15.7 0.3 0:03 gpm
| 1655 root 20 0 624 624 476 R 0 10.6 0.9 0:02 vi
| 3 root 0 0 0 0 0 SW 0 5.0 0.0 0:18 kupdate
| 121 root 2 0 844 844 588 S 0 0.6 1.3 0:00 bash
| 4 root 0 0 0 0 0 SW 0 0.2 0.0 0:08 kswapd
| -----------------------------------------------------------------------------
|
| That's not a joke, it WAS on my machine on very busy network. I've got 2.2.19
| kernel and single AMD K6-2/400. I don't have any turbocharger, so I suppose my
| CPU is able to perform mere 100% of the load. Can you explain it?
|
| Thanx
|
| Brain
|
| --------------------------------
| Petr `Brain' Kulhavy
| <[email protected]>
| http://artax.karlin.mff.cuni.cz/~brain
| Faculty of Mathematics and Physics, Charles University Prague, Czech Republic
|
| ---
| Promising costs nothing, it's the delivering that kills you.
|
|
|
| -
| To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
| the body of a message to [email protected]
| More majordomo info at http://vger.kernel.org/majordomo-info.html
| Please read the FAQ at http://www.tux.org/lkml/

2001-12-08 17:19:06

by William Park

[permalink] [raw]
Subject: Re: 119.5% CPU load

On Sat, Dec 08, 2001 at 04:43:30PM +0100, [email protected] wrote:
> PID USER PRI NI SIZE RSS SHARE STAT LIB %CPU %MEM TIME COMMAND
> 1632 brain 20 0 1724 1724 992 R 0 33.4 2.7 1:19 mc
> 1654 brain 20 0 784 784 576 R 0 32.2 1.2 0:49 mpg123
> 1652 root 14 0 500 500 368 R 0 21.4 0.7 0:40 top
> 84 root 0 0 244 224 192 S 0 15.7 0.3 0:03 gpm

Now, that's a mighty mouse!

> 1655 root 20 0 624 624 476 R 0 10.6 0.9 0:02 vi
> 3 root 0 0 0 0 0 SW 0 5.0 0.0 0:18 kupdate
> 121 root 2 0 844 844 588 S 0 0.6 1.3 0:00 bash
> 4 root 0 0 0 0 0 SW 0 0.2 0.0 0:08 kswapd

--
William Park, Open Geometry Consulting, <[email protected]>.
8 CPU cluster, NAS, (Slackware) Linux, Python, LaTeX, Vim, Mutt, Tin

2001-12-10 10:39:26

by Pavel Machek

[permalink] [raw]
Subject: Re: 119.5% CPU load

Hi!

> Look at this "top" snapshot:
>
> -----------------------------------------------------------------------------
> 2:30pm up 3:46, 10 users, load average: 2.96, 1.50, 0.84
> 49 processes: 44 sleeping, 4 running, 0 zombie, 1 stopped
> CPU states: 0.1% user, 119.4% system, 0.0% nice, 0.0% idle
> Mem: 63208K av, 62004K used, 1204K free, 24556K shrd, 34892K buff
> Swap: 34236K av, 140K used, 34096K free 7056K cached
>
> PID USER PRI NI SIZE RSS SHARE STAT LIB %CPU %MEM TIME COMMAND
> 1632 brain 20 0 1724 1724 992 R 0 33.4 2.7 1:19 mc
> 1654 brain 20 0 784 784 576 R 0 32.2 1.2 0:49 mpg123
> 1652 root 14 0 500 500 368 R 0 21.4 0.7 0:40 top
> 84 root 0 0 244 224 192 S 0 15.7 0.3 0:03 gpm
> 1655 root 20 0 624 624 476 R 0 10.6 0.9 0:02 vi
> 3 root 0 0 0 0 0 SW 0 5.0 0.0 0:18 kupdate
> 121 root 2 0 844 844 588 S 0 0.6 1.3 0:00 bash
> 4 root 0 0 0 0 0 SW 0 0.2 0.0 0:08 kswapd
> -----------------------------------------------------------------------------
>
> That's not a joke, it WAS on my machine on very busy network. I've got 2.2.19
> kernel and single AMD K6-2/400. I don't have any turbocharger, so I suppose my
> CPU is able to perform mere 100% of the load. Can you explain it?

Yes. Reading /proc is not atomic. Therefore you can't expect values to
sum to 100%.

But I wonder... Why is it all in *system*?
Pavel
--
"I do not steal MS software. It is not worth it."
-- Pavel Kankovsky