Wednesday, February 2, 2011

SAR Utility Usage

SAR (system activity report) comes in sysstat package. This is the oldest & the best utility for digging in the system performance matrices,i.e. socket calls,socket creations/sec,pagefaults/sec, etc.
(believe me HUGE details).

1 1 ---------> 1 sec reporting interval for 1 times and then average
2 5 ---------> 2 sec reporting interval for 5 times and then average
1. sar -n ALL 1 1 ----------> this will report all the Network Statistics
2. sar -b 1 1 --------------> This will report I/O and tranfer rate statistics
3. sar -u 1 1 --------------> CPU utilization
4. sar -B 1 1 --------------> This will report Paging Statistics
5. sar -c 1 1 --------------> reports task creation activity
6. sar -d 1 1 --------------> reports activity on each block device(this will report the device names in dev m-n format)
7. sar -p -d 1 1 -----------> this will report friendly sda/hda naming patterns nad device block operations
8. sar -A -----------------> will report all the data from the sar (sar -A | tee data.txt | less)
9. sar -P (CPU | ALL) 1 1 ------------> will report for the processor or for all
10. sar -q 1 1 ---------> queue length and load averages
11. sar -r 1 1 ---------> reports memory and swap space utlization
12. sar -v 1 1 ---------> reports the inode activity
13. sar -W 1 1 --------> reports swapping statistics
14. sar -y 1 1 ---------> reports the TTY terminal activity

There are also some frontends to the SAR utility for graphical interpretations.
Also the SAR output is good for format manipulation and scripting.

No comments:

Post a Comment