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 -SShow 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.1428660068.txt.gz · Last modified: 2024/05/23 07:26 (external edit)