LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-18-2007, 07:46 AM   #1
Sathya
Member
 
Registered: Sep 2007
Posts: 33

Rep: Reputation: 15
Question on top, ps and sar output


Hi

I have red hat AS Release 4 linux on a Sun x4600 server with Dual-Core AMD Opteron(tm) Processor 8218 (16 Processors).

When i run my application, and do a ps aux or a top on my process id, sometimes i see that the %CPU goes more than 100%. I sometimes see 1000% also. Why does the cpu utilization for the process goes more than 100%?

When i check the sar output %cpu for user remains at 12% and kernel remains as 3% when the application runs. Why is this difference in the cpu output between the two commands?

I can understand that the ps aux and top gives per process CPU utilization and sar gives over all utilization at a time. But i donot understand why per process cpu utilization goes more than 100% where as sar output remains at 12%

Please clarify

Thanks
Sathya
 
Old 10-18-2007, 01:22 PM   #2
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
12% of 16 cores' power = 1.92 of 1 core's power. In multi-processor setup (or multi-core, for that matter) top gives you sum over all processors. So it can give 192% here (and it can give nearly 1600% if you manage to fully load all your cores).
 
Old 10-19-2007, 12:31 AM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,369

Rep: Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753
iirc, on RH systems you can run 'top', then press the 'esc' key (might be '1' key) & it'll show per cpu numbers.
Try man top
 
Old 10-19-2007, 12:58 AM   #4
Sathya
Member
 
Registered: Sep 2007
Posts: 33

Original Poster
Rep: Reputation: 15
Thank you very much for the clarification

Sathya
 
  


Reply



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
sysstat output (using sar) cabloy Linux - Software 2 04-27-2010 04:10 AM
Difference in SAR and TOP result ImranAthar Linux - General 0 08-29-2007 09:04 AM
Conflicting data from sar & top clindo Red Hat 0 05-15-2007 09:20 AM
question re output of "top" slackist Linux - Newbie 2 04-12-2004 08:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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