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

Show version of systat:
sar -V

Common Sar Commands

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

Viewing specific time and date

sar -q -f /var/log/sa/sa23 -s 10:00:01
sar -p | grep -A5 "07:45"

Load average

sar -q

sar.1429602442.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