User Tools

Site Tools


sar

This is an old revision of the document!


Installing sar

CentOS

yum install sysstat

Ubuntu

sudo apt-get install sysstat

Common Sar Commands

Show version of systat:

sar -V

Show CPU statistics 3 times with 1 second interval:
sar 1 3

CPU usage of all CPUs (focus on the last field “%idle” to see the cpu load):
sar -u 1 3

Show CPU usage for the current day
sar -u

Swap Space show for current day
sar -S
Show swap space for 1 second interval 3 times:
sar -S 1 3

sar.1428149190.txt.gz · Last modified: 2024/05/23 07:26 (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki