User Tools

Site Tools


sar

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
sar [2015/04/04 12:06] luke7858sar [2024/05/23 07:26] (current) – external edit 127.0.0.1
Line 1: Line 1:
-==== Installing sar ==== +~~NOCACHE~~ 
-=== CentOS === +====== Sar ====== 
- +{{tabembed>[[[[sar_install|Install, [[sar_commands|Commands}}
-<sxh bash> +
-yum install sysstat +
-</sxh> +
- +
-=== Ubuntu === +
-<sxh bash> +
-sudo apt-get install sysstat +
-</sxh> +
-\\ +
-==== Common Sar Commands ==== +
-Show **version** of systat: +
-<sxh bash> +
-sar -V +
-</sxh> +
-\\ +
-Show **CPU statistics** 3 times with 1 second interval: +
-<sxh bash> +
-sar 1 3 +
-</sxh> +
-\\ +
-CPU usage of **all** CPUs (focus on the last field “%idle” to see the cpu load): +
-<sxh bash> +
-sar -u 1 3 +
-</sxh> +
-\\ +
-Show **CPU** usage for the **current day** +
-<sxh bash> +
-sar -u +
-</sxh> +
-\\ +
-**Swap Space** show for **current day** +
-<sxh bash> +
-sar -S +
-</sxh> +
-Show swap space for 1 second interval 3 times: +
-<sxh bash> +
-sar -S 1 3 +
-</sxh>+
sar.1428149168.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