Get the App
SLTechnology News&Howtos  ›  Servers  › 

Running status Statistics of the system using sar Command of linux

Shulou Source: shulou.com Published: 2022-06-02 12:43:13 10月03日 Update

Xiaobian to share with you the use of linux sar command system running status statistics, I hope you read this article after the harvest, let us discuss it together!

The sar command is a system health statistics tool under Linux that displays specified operating system status counters to standard output devices.

The sar tool samples the current state of the system and calculates data and scales to represent the current operating state of the system. Its characteristic is that it can continuously sample the system and obtain a large number of sampling data. Both the sampled data and the results of the analysis can be stored in files, consuming very little system resources.

Syntax format: sar [parameter]

Common parameters:

-R shows memory status-b shows I/O rate-B shows page change status-d shows status of each block device-i Time between status information refreshes-u shows CPU utilization

Reference Example

Use the-R parameter to display memory information:

[root@linuxcool ~]# sar -R

Use the-b parameter to display the I/O rate:

[root@linuxcool ~]# sar -R

Use the-u parameter to display CPU utilization:

[root@linuxcool ~]# sar -u After reading this article, I believe you have a certain understanding of the running status statistics of the sar command system using linux. If you want to know more about it, welcome to pay attention to the industry information channel. Thank you for reading!

Tags: Status system parameters runs commands statistics data information memory utilization tools articles devices rates operating systems finished instances will be used commonly used files Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Huawei NVidia Microsoft MariaDB