LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Self-contradictory information in 'top' (https://www.linuxquestions.org/questions/linux-software-2/self-contradictory-information-in-top-804154/)

forbin 04-25-2010 07:57 PM

Self-contradictory information in 'top'
 
Look at CPU 7 in the following output from 'top'. It shows 91% idle. Fine, but then look at pid 2986 (first in the list) which shows it at 100% utilization on CPU 7.

top - 15:16:59 up 55 days, 11:25, 4 users, load average: 1.43, 1.56, 1.52
Tasks: 361 total, 1 running, 358 sleeping, 0 stopped, 2 zombie
Cpu0 : 11.6%us, 2.3%sy, 0.0%ni, 84.1%id, 0.0%wa, 0.3%hi, 1.7%si, 0.0%st
Cpu1 : 1.0%us, 0.3%sy, 0.0%ni, 98.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu2 : 59.3%us, 0.3%sy, 0.0%ni, 40.4%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu3 : 2.0%us, 0.3%sy, 0.0%ni, 97.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu4 : 0.3%us, 0.3%sy, 0.0%ni, 99.3%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu5 : 0.7%us, 1.7%sy, 0.0%ni, 97.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu6 : 18.5%us, 0.7%sy, 0.0%ni, 80.8%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu7 : 21.3%us, 0.3%sy, 0.0%ni, 91.4%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 24942760k total, 23152296k used, 1790464k free, 317332k buffers
Swap: 2031608k total, 300k used, 2031308k free, 3572272k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ P COMMAND
2986 site024 17 0 256m 92m 31m S 100 0.4 38:13.87 7 java
5897 site014 18 0 254m 143m 30m S 2 0.6 10:28.13 0 java
9793 site039 18 0 287m 180m 33m S 1 0.7 131:15.04 5 java
17426 site057 25 0 454m 336m 31m S 1 1.4 10:48.94 6 java
19514 site040 17 0 270m 135m 31m S 1 0.6 6:53.53 1 java
21029 root 34 19 0 0 0 S 1 0.0 485:31.55 5 kipmi0
4221 site029 23 0 298m 188m 31m S 1 0.8 122:45.26 3 java
14627 site046 17 0 282m 159m 30m S 1 0.7 77:49.32 1 java
23496 site081 18 0 276m 166m 31m S 1 0.7 84:01.37 5 java


It stayed this way continuously for several hours, even though I exited and restarted top multiplee times. What gives?

smoker 04-25-2010 08:08 PM

100 % utilized and 100 % idle are not mutually exclusive.
Just because a process attaches to a cpu and expects some service doesn't mean the program is any good at letting go. Besides which, every process listed is a java process (apart from kipmi0) is there nothing else running on your machine ?

forbin 04-25-2010 11:04 PM

I mean no disrespect, but your comment does not make any sense, either technically or in terms of the English language. By definition, "idle" and "utilized" are mutually exclusive. If a CPU is 30% utilized then it is, by definition, 70% idle, and vise versa.

It seems to me that whether a process knows how to let go of a CPU is immaterial. The extent to which it continues to utilitzes the CPU is still its CPU utilization percent. It does not make sense for 'top' to say that pid 2986 is using 100% of CPU 7 and yet report that CPU 7 is 100% idle, does it?

Yes, the computer has many java processes running on it, but not all of them are java, by any means.

pixellany 04-28-2010 09:47 AM

Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.

Continue here:
http://www.linuxquestions.org/questi...and-ps-803850/


All times are GMT -5. The time now is 05:21 AM.