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 -SShow swap space for 1 second interval 3 times:
sar -S 1 3
sar.1428149168.txt.gz · Last modified: 2024/05/23 07:26 (external edit)