The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
CPU Utilization bullz26 Shell Programming and Scripting 3 02-25-2008 05:24 AM
Low average cpu utilization. Moodie SUN Solaris 3 12-11-2007 07:25 PM
% CPU utilization karthikosu UNIX for Dummies Questions & Answers 1 07-28-2006 12:00 PM
CPU Utilization thinakarmani UNIX for Advanced & Expert Users 2 05-18-2006 11:33 AM
CPU Utilization kimosilk UNIX for Dummies Questions & Answers 4 06-13-2005 10:44 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-21-2008
sevpert sevpert is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 1
Question CPU utilization: sar vs ps

Any reason why the "sum of all" average cpu utilization numbers collected from ps during any given time sample are "consistently" lower than the corresponding numbers reported by sar (%usr, %sys). We have a Solaris O/S 2.8.

We have been trying to correlate the CPU numbers from the sar, to the processes reported by the ps for the same sampling periods, especially during periods of heavy usage. sar is set up to run every 5 seconds. We have tried to run ps every 5 seconds, and also every second, using the following script:

========================================
#!/bin/sh
while true
do
date
ps -eo pcpu,time,etime,pid,args
sleep 5
done
========================================

Either way, if we add up the "pcpu" numbers for all the reported processes for a given sample, we are as much as 30-40% short of the sar numbers for the same period, very consistently. I thought the ps pcpu numbers would reflect %usr+%sys for each process. What am I missing?

Thanks for any suggestions...
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 01:04 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0