Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Top command - cpu usage

Status
Not open for further replies.

ddrillich

Technical User
Jun 11, 2003
546
0
0
US
Good Day,

I have the following output of top -

top - 09:54:53 up 230 days, 4:29, 4 users, load average: 4.32, 2.49, 1.11
Tasks: 143 total, 1 running, 142 sleeping, 0 stopped, 0 zombie
Cpu(s): 42.9%us, 0.4%sy, 0.0%ni, 56.7%id, 0.0%wa, 0.0%hi, 0.1%si, 0.0%st
Mem: 4148416k total, 2949920k used, 1198496k free, 403764k buffers
Swap: 8388600k total, 0k used, 8388600k free, 2003024k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
28768 appadmin 19 0 617m 391m 17m S 345.3 9.7 176:08.72 java
6903 http 18 0 277m 5704 1384 S 1.0 0.1 0:00.41 httpd
8 root RT -5 0 0 0 S 0.3 0.0 0:00.04 migration/2
6740 appdev 15 0 2324 1052 800 R 0.3 0.0 0:00.31 top
1 root 15 0 2064 628 544 S 0.0 0.0 0:02.98 init


What’s the relation between Cpu(s): 42.9%us, and %CPU at 345.3 of the java process?

Regards,
Dan
 
Got it - we have 8 cpu on the server. So, 345/800 is %43.1 a bit off, however, of the 42.9%us ...

Regards,
Dan
 
While in top, press 1 to see individual CPU core utilization.
 
Depending on your distro, you might also look at htop - it has a nice ncurses graphics display.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top