![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 01:00 PM |
| CPU Utilization | thinakarmani | UNIX for Advanced & Expert Users | 2 | 05-18-2006 12:33 PM |
| CPU Utilization | kimosilk | UNIX for Dummies Questions & Answers | 4 | 06-13-2005 11:44 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
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... |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|