Wednesday, 9 April 2014

sar command in Linux


sar - Collect, report, or save system activity information.

yum install sysstat

cd /var/log/sa

sar

Linux 2.6.18-238.9.1.el5         04/09/2014

04:40:01 AM       CPU     %user     %nice   %system   %iowait    %steal     %idle
04:50:01 AM       all      9.93      0.00      1.04      1.02      0.00     88.01
05:00:01 AM       all      8.56      0.00      0.79      1.07      0.00     89.58
05:10:01 AM       all      6.81      0.00      0.65      1.18      0.00     91.36
05:20:01 AM       all      7.63      0.10      0.68      0.91      0.00     90.69
05:30:01 AM       all      6.95      0.00      0.64      0.79      0.00     91.62
05:40:01 AM       all     10.36      0.00      0.83      0.97      0.00     87.83
05:50:01 AM       all      9.30      0.00      0.82      0.92      0.00     88.96
06:00:01 AM       all      9.34      0.00      0.81      0.90      0.00     88.95
06:10:01 AM       all     12.96      0.00      0.81      0.81      0.00     85.43
06:20:01 AM       all     11.03      0.10      1.03      0.58      0.00     87.27
06:30:01 AM       all     12.49      0.00      1.10      0.70      0.00     85.72
06:40:01 AM       all      9.44      0.00      0.82      0.66      0.00     89.07
06:50:01 AM       all      9.09      0.00      0.79      0.56      0.00     89.56
07:00:01 AM       all     10.42      0.00      0.93      0.61      0.00     88.04
07:10:01 AM       all     10.75      0.00      0.91      0.63      0.00     87.71
Average:             all      9.67      0.01      0.84      0.82      0.00     88.65


             %user
                     Percentage of CPU utilization that occurred while execut-
                     ing at the user level (application).

              %nice
                     Percentage of CPU utilization that occurred while execut-
                     ing at the user level with nice priority.

              %system
                     Percentage of CPU utilization that occurred while execut-
                     ing at the system level (kernel).

              %iowait
                     Percentage of time that the CPU or CPUs were idle  during
                     which the system had an outstanding disk I/O request.

              %idle
                     Percentage of time that the CPU or CPUs were idle and the
                     system did not have an outstanding disk I/O request.

Ref:- http://www.linuxcommand.org/man_pages/sar1.html

No comments:

Post a comment