sargraph.com

  • Increase font size
  • Default font size
  • Decrease font size
Home About SAR

About SAR - System Acitvity Reports

E-mail Print PDF

SAR is tool to collect system performance metrix like CPU, memory, disk IO, run queue etc. Its available for major unix distributions like Solaris, HPUX, AIX and Linux flavors. Its originally developed by SUN engineers. Sar generating reports using the metrics collected from tools like iostat,vmstat etc.

SAR can collect half dozen of performance statistics like

1. CPU utilization

2. Disk IO

3. Memory utilization

4. Run queue

5. Number of open files

6. Number of running processes

7. Swap utilization


The package consists of two programs sarc and sar:

* The sadc command is a data collecting part of the package. It writes in binary format to the specified output file. To run sar in real time type:

sar -u 1 100

In this case the sar command calls sadc to access system data.

* To report on previously captured data – type
sar -u -f filename > file
* Two shell scripts /usr/lib/sa/sa1 and usr/ib/sa/sa2 are also provided. They can be run by the cron daemon and provide daily statistics and reports.

Sar is not enabled by default.  To enable sar, you must include invocation of two of its components (sadc and sar) at selected intervals  in cron. Usually sadc is evoked via sa1 script and sar via sa2 script).

On Solaris 9 and 10 it is preinstalled, but you need un-comment lines in the start script (/etc/rc2.d/S21perf) and crontab file (/var/spool/cron/crontabs/sys) associated with the tool. If sar is activated the crontab for root should contain something like this:

# Collect measurements at 10-minute intervals
0,10,20,30,40,50   * * * *   /usr/lib/sa/sa1
# Create daily reports and purge old files
0 * * *   /usr/lib/sa/sa2 -A

For linux you need to download, install and activate sysstat package.

For rhel users...

#rpm -ivh sysstat-7.0.2-3.el5.x86_64.rpm

or by yum

#yum install sysstat

#service sysstat start

For ubuntu and linux users...

#apt-get install sysstat

#service sysstat start

 

Last Updated on Sunday, 04 September 2011 15:54  

Comments   

 
-1 #2 Anemonalove 2017-07-06 11:12
Hello guys! Who wants to see me live? I have profile at HotBabesCams.co m, we
can chat, you can watch me live for free, my nickname is Anemonalove , here is
my photo:

https://3.bp.blogspot.com/-u5pGYuGNsSo/WVixiO8RBUI/AAAAAAAAAFA/JWa2LHHFI2AkHParQa3fwwHhVijolmq8QCLcBGAs/s1600/hottest%2Bwebcam%2Bgirl%2B-%2BAnemonalove.jpg
Quote
 
 
+1 #1 website development 2014-06-21 15:26
:D nice post ! great work
Quote
 

Add comment


Security code
Refresh

More info