The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Operating Systems > Linux > Red Hat
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 10-23-2008
mschwage mschwage is offline
Registered User
  
 

Join Date: Jul 2005
Location: Oak Park, IL
Posts: 102
How do sa1/sar time intervals work?

Hi,
I have set up sar on my RedHat and Fedora Linux systems. I am running sa1 from cron:

Code:
0 8-17 * * 1-5 /usr/lib/sa/sa1 1200 3 &
The 1200 and 3 parameters tell sa1 to save data every 1200 seconds (== 20 minutes) and to write 3 times.

When I run sar to observe my data, I'll see something like this:
Code:
# sar -A -f /var/log/sa/sa22 | more
Linux 2.6.21-1.3228.fc7 (opchux0011.comp.optiver.com)   10/22/2008

12:00:01 AM    proc/s
12:10:01 AM      0.03
12:20:01 AM      0.03
12:30:01 AM      0.03
12:40:01 AM      0.03
12:50:01 AM      0.03
01:00:01 AM      0.03
01:10:01 AM      0.18
01:20:01 AM      0.03
01:30:01 AM      0.38
01:40:01 AM      0.03
01:50:01 AM      0.03
...
...What gives? Why is it reporting data every 10 minutes? How come I only see 1 entry every 10 minutes, and not 3? I'm confused...

Thanks.
-mschwage