Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


Closed Thread
  Search this Thread
Old 04-25-2010, 07:57 PM   #1
Registered: Apr 2010
Posts: 43

Rep: Reputation: 0
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

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?
Old 04-25-2010, 08:08 PM   #2
Senior Member
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
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 ?
Old 04-25-2010, 11:04 PM   #3
Registered: Apr 2010
Posts: 43

Original Poster
Rep: Reputation: 0
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.
Old 04-28-2010, 09:47 AM   #4
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 741Reputation: 741Reputation: 741Reputation: 741Reputation: 741Reputation: 741Reputation: 741
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:

Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Contradictory Output In 'top' And 'ps' forbin Red Hat 8 04-29-2010 09:35 AM
top shows contradicting information didi156 Linux - Kernel 1 10-06-2008 01:39 PM
LXer: Education, information access top Mellon Foundation award winners LXer Syndicated Linux News 0 12-18-2006 11:21 PM
df and du giving contradictory results ? wearetheborg Linux - General 7 02-03-2006 05:49 PM
contradictory rpm responses toreilly Linux - Newbie 3 04-15-2004 05:47 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:48 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration