Setup of sar command for CPU measures


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Setup of sar command for CPU measures
# 1  
Old 07-15-2011
Setup of sar command for CPU measures

I receive on a daily basis CPU measures on a UNIX Server (AIX 5.3 version, korn shell). These CPU measures are provided by Omnivision tool.

We could see that Omnivision daily stats are not always equal to NMON stats regarding CPU level.

On my side (I work in an IT Production Support Team, not on UNIX System team), I've activated a CPU daily monitoring with sar command.

By default, sar CPU measures are provided every 5 minutes

Code:
/home/l479029 ) sar

AIX parva1006052 3 5 00C9053E4C00    07/15/11

System configuration: lcpu=10 ent=2.50 mode=Uncapped

00:00:00    %usr    %sys    %wio   %idle   physc   %entc
00:05:01      37      10       0      54    1.29    51.4
00:10:00      29       8       0      63    1.04    41.8
00:15:00      26       8       0      66    0.96    38.5
00:20:00      30       8       0      62    1.06    42.3
00:25:01      31       8       0      61    1.11    44.2
00:30:01      30       8       0      62    1.06    42.4
00:35:00      29       9       0      61    1.09    43.5
00:40:00      28       8       0      64    1.01    40.3
00:45:00      30       9       0      61    1.09    43.7
00:50:01      31       8       0      61    1.10    44.0
00:55:01      30       8       0      61    1.09    43.7
01:00:00      22       7       0      71    0.83    33.2
01:05:00      38      23       0      39    1.66    66.4

Regarding average CPU levels or CPU peaks, CPU measures which are provided by sar tool are always more "optimistic" (I mean with less CPU consumption level) than Omnivision CPU measures.

I imagine that the gap between both tools is linked to measure frequency, as CPU level on an UNIX Server is a very volatile data.

I tried to setup sar for more frequent measures rather than default 5 minutes frequency.
However, when I execute following command sar 5 17280 on a test server, I do not get all day history since midnight, as it is reported with default sar execution.

How can I both increase frequency of CPU measures with sar to make it more reliable and consistent with Omnivision, and also keep all reporting from 0:00 to 23:59 (the target afterwards for me is to calculate the CPU daily peak and the 24 hourly average CPU levels for each day) ?

Furthermore, between sar and Omnivision, are there technical gaps for CPU measure (for an equal frequency measure) ?

Thanks by advance for your help.

Last edited by pludi; 07-15-2011 at 07:03 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Understanding & Monitoring CPU performance (Load vs SAR)

Hi all, Been reading a lot of the cpu load and its "analogy of it to car traffic path of expressway" From wiki Most UNIX systems count only processes in the running (on CPU) or runnable (waiting for CPU) states. However, Linux also includes processes in uninterruptible sleep states... (13 Replies)
Discussion started by: javanoob
13 Replies

2. Red Hat

Need help on sar command.

Hi, how to find out actual utilization of memory using sar -r in Linux, I understand Linux keep entire memory in cache/buffers. I would like to know how to find out actual usage of memory (1 Reply)
Discussion started by: manoj.solaris
1 Replies

3. UNIX for Dummies Questions & Answers

CPU load in video decoding using SAR

Hi, I'm John_giova and I'm new in this Forum. Sorry my english, it's not my first language. So, I'm trying to check the CPU utlization during the video encoding and decoding (making a comparison between SW and HW ) using the SAR tool. According to a past thread I saw as CPU utilization I should... (4 Replies)
Discussion started by: John_giova
4 Replies

4. Linux

How to calculate total CPU usage from SAR report?

Hi, I want to calculate the total cpu usage from the sar report. Say for example, Linux 2.6.24-21-generic (blade10) 09/10/2012 04:54:36 PM CPU %user %nice %system %iowait %steal %idle 04:54:37 PM all 0.00 0.00 0.00 0.00 ... (1 Reply)
Discussion started by: rohitmd
1 Replies

5. AIX

Using sar to get CPU utilization for WPARs

Based on the documentation (Help - AIX 6.1 Information Center), I should be able to get the CPU utilization on a WPAR. But when I ran sar on the LPAR, I don't see the -@ option: Usage: sar { -A | } ]] ]] | ALL] ] ] I'm on AIX 6.1. ... (0 Replies)
Discussion started by: PPPP
0 Replies

6. UNIX for Dummies Questions & Answers

Is total CPU usage for sar %user+%system+%iowait?

Hi all Can anyone advise/confirm whether total CPU usage when running sar is %user+%system+%iowait or is it %user+%system only? I want to confirm whether I am having a CPU-bound problem or not. This is a single-CPU VMware machine. $ sar 5 20 Linux 2.6.18-238.5.1.el5... (7 Replies)
Discussion started by: newbie_01
7 Replies

7. Solaris

problem with sar command

hi all:- when i try to use sar command i get this error how can i fix it bash-3.00# sar -A sar: can't open /var/adm/sa/sa16 No such file or directory (5 Replies)
Discussion started by: sharkux
5 Replies

8. UNIX for Dummies Questions & Answers

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... (0 Replies)
Discussion started by: sevpert
0 Replies

9. UNIX for Dummies Questions & Answers

Can't understand sar command

HI Experts, Can anyone pls help me to understand this.. >sar 20:05:00 1 2 1 96 20:10:00 2 2 10 87 20:15:00 1 2 19 78 20:20:00 1 2 14 83 20:25:00 1 2 16 81 20:30:00 1 ... (1 Reply)
Discussion started by: shaan_dmp
1 Replies

10. HP-UX

sar output gives 98% idle CPU

Dear All, Our HPUX 8 GB 8CPU database server is behaving abnormally for the last 4+ weeks. I have generated a sar output and it is here- 11:46:52 %usr %sys %wio %idle 11:46:53 1 1 6 92 11:46:54 0 1 0 99 11:46:55 0 1 0... (3 Replies)
Discussion started by: Ashrunil
3 Replies
Login or Register to Ask a Question