Sar question


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Sar question
# 1  
Old 03-26-2003
Sar question

Hi all,

With Sar, it gives you the CPU usage for the last x minutes etc, does anyone know if this is an average value when the machine in question has multiple CPU's, or simply just a reading of CPU #1?

Ta.
danhodges99
# 2  
Old 03-26-2003
Well, after a ton of searching, I couldn't find the answer.. how annoying.

But just looking at the man page for sar, it says that the commands cpusar and mpsar are basically the same as sar, but while sar reports activity on a single processor system, the other two commands report activity on multiprocessor systems.

It looks like cpusar will list individual CPUs and mpsar will average everything together..

Quote:
sar reports system activity on single processor systems. cpusar and mpsar
report activity on multiprocessor machines.

cpusar reports activity for an individual CPU specified by the cpu argument
to the -P option. cpu must be a number in the range from 1, the base
processor, to the number of processors configured on the system. cpusar
reports the data on CPU utilization, inter-CPU interrupts, and number of
locked processes.

mpsar reports activity for an entire SMP system by combining the data of all
the CPUs.
To me, that implies that, since sar isn't made for multiple processors, it probably just grabs the first one it sees, but I'm not sure..
# 3  
Old 03-26-2003
Have used sar and cpusar on an SCO Unix 5.0.5. SMP System. From memory sar returned averages for that moment in time the snap-shot was taked across the whole system. Where as cpusar returned actual readings for that moment of the snap-shot.

Could still be wrong - It's been a while for me. Hope that helps
# 4  
Old 03-28-2003
On HP_UX you can specify -M option to get the CPU usage of each processor and the average also
#sar -u -M 1 1
====================================
HP-UX MyHP B.11.00 A 9000/800 03/28/03

09:20:19 cpu %usr %sys %wio %idle
09:20:20 0 0 0 0 100
1 0 0 0 100
system 0 0 0 100
===================================
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

sar output

One of my servers giving all zero sar output. Could anyone explain this behaviour. Thanks CHaandana Sample: 10:43:37 %usr %sys %wio %idle 16:15:01 2 1 0 97 16:20:02 2 1 0 97 16:25:02 2 1 0 97 16:30:01 ... (3 Replies)
Discussion started by: chaandana
3 Replies

2. Solaris

SAR averages question

Hi all Bit of a silly question, but if I run sar to get the CPU stats (something like this): sar -u 300 1 The figures that are returned, is it in the above case the average over 300 seconds, or does it just wait for 300 seconds before obtaining the readings? (1 Reply)
Discussion started by: kinetik
1 Replies

3. AIX

SAR

I am running below script to display last 48 hour data but the output is not displaying heading - AIX eqrdb26u1 1 6 00CFD5E34C00 01/21/10 System configuration: lcpu=8 ent=2.00 mode=Uncapped 22:31:40 %usr %sys %wio %idle physc %entc and footer - Average 25 9 ... (1 Reply)
Discussion started by: noorm
1 Replies

4. UNIX for Dummies Questions & Answers

Question about SAR command

Hi, # SAR -u 5 5 shows this 10:01:32 AM CPU %user %nice %system %iowait %idle 10:01:37 AM all 1.90 0.00 1.20 96.90 0.00 10:01:42 AM all 1.30 0.00 1.70 97.00 0.00 10:01:47 AM all 4.30 0.00 ... (1 Reply)
Discussion started by: egorig
1 Replies

5. AIX

sar

I am trying to set up sar on my AIX server. We have been running sar and getting reports on out Linux boxes in the past but would like to try to do the same in AIX. On my Linux i have a sar.sh that looks like this: #!/bin/bash LC_ALL=C sar -A -f /var/log/sa/sa27 > /server023.txt LC_ALL=C sar -A... (1 Reply)
Discussion started by: seacros
1 Replies

6. HP-UX

Sar

Hey guys in sar -v 5 5 command what is the proc means. (1 Reply)
Discussion started by: sbn
1 Replies

7. AIX

sar problem

when i used sar -u -f xxxx i've got the result like the following ... 18Aug200614:45:00 0 1 0 99 18Aug200614:50:00 1 1 0 98 18Aug200622:42:46 1 0 0 98 18Aug200607:00:00 0 0 100 0 18Aug200608:20:48 ... (0 Replies)
Discussion started by: pohnpohnpohn
0 Replies

8. UNIX for Advanced & Expert Users

sar error

at work i have a HP-UX box. i attempt to use sar to monitor but it comes up with following message: can't open /var/adm/sa/sa13 i recreated the file as i thought that was the problem but it was not. cheers hush (2 Replies)
Discussion started by: hu$h
2 Replies

9. AIX

error with sar

hello when i want to launch tha sar command with some arguments, i have this message : sar -mu -P ALL sar: 0551-201 Cannot open /var/adm/sa/sa08. sar: 0551-213 Try running /usr/lib/sa/sa1 <increment> <number> if I look in /var/adm/sa, there is nothing, no file. the sar 2 5 is available.... (2 Replies)
Discussion started by: pascalbout
2 Replies

10. Filesystems, Disks and Memory

sar

We have a script that uses sar -u 1 10 | awk '/Average/ { print ( $2 + $3 ) }' to get the CPU usage of a mutli engine machine. We think we are getting wrong information from the above string. We think it is adding up the total of the 12 engines and reporting back the total not the overall... (5 Replies)
Discussion started by: kevinb
5 Replies
Login or Register to Ask a Question