SAR is called System Activity Report, is an tool in Linux System which collect, save and report CPU Usage, I/O usage, Memory(RAM), Virtual Memory(Vmem) and other resources of system. SAR tool provides facility and help system admins to get an overview to monitor system resources usage at different points of time.
It provides facility to monitor realtime system Performance.
In this article we will discuss different examples of SAR Command in CentOS 7, in case SAR is not installed on your system then use the below command to install it.
You can run this command to check the working of SAR on server:
Syntax of SAR:
1. Monitor load average:
You can use (-q) option to obtain load average details. It will report the load averages of last 1,5 and 15 minutes.
(-r) option will display the memory usage, which helps to determine the usage of RAM on a point of time.
Option (-S) will produce the Swap memory usage.
To get server usage details from a prticular time period Or upto a certain period of time, then you can use option (s) and (e) for start and end time respectively.
It provides facility to monitor realtime system Performance.
In this article we will discuss different examples of SAR Command in CentOS 7, in case SAR is not installed on your system then use the below command to install it.
To check working of SAR:
You can run this command to check the working of SAR on server:
It will displays the server resources 3 times with one secong interval.
Syntax of SAR:
Now, we will check some options with SAR tool.
1. Monitor load average:
You can use (-q) option to obtain load average details. It will report the load averages of last 1,5 and 15 minutes.
2. Monitor Memory(RAM) details:
(-r) option will display the memory usage, which helps to determine the usage of RAM on a point of time.
3. To check SWAP Memory usage:
Option (-S) will produce the Swap memory usage.
4. To check resources usage from a certain time Or upto a certain period of time:
To get server usage details from a prticular time period Or upto a certain period of time, then you can use option (s) and (e) for start and end time respectively.
5. To report Paging statics:
6. To report I/O and transfer rate usage statistics:
7. Display statistics for currently mounted file systems:
8. To fetch records from a file:
9. To report hugepages utilisation stats:
10. To report CPU utilisation: