Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
linux_wiki:sar [2014/12/03 22:09] billdozor |
linux_wiki:sar [2019/05/25 23:50] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== sar (system activity report) ====== | ====== sar (system activity report) ====== | ||
+ | |||
+ | **General Information** | ||
+ | |||
sar is used for displaying collected activity counters of various OS stats, including CPU, memory, swap, and disk I/O. | sar is used for displaying collected activity counters of various OS stats, including CPU, memory, swap, and disk I/O. | ||
- | sar is a command provided by the sysstat package. | + | **Checklist** |
+ | * Distro(s): Any | ||
+ | * Package: | ||
+ | |||
+ | ---- | ||
===== Installation and Configuration ===== | ===== Installation and Configuration ===== | ||
Line 25: | Line 32: | ||
Look for a line like this to edit: | Look for a line like this to edit: | ||
+ | < | ||
# Activity reports every 10 minutes everyday | # Activity reports every 10 minutes everyday | ||
5-55/10 * * * * root command -v debian-sa1 > /dev/null && debian-sa1 1 1 | 5-55/10 * * * * root command -v debian-sa1 > /dev/null && debian-sa1 1 1 | ||
+ | </ | ||
4) Start the service | 4) Start the service | ||
Line 63: | Line 72: | ||
---- | ---- | ||
- | === CPU Utilization === | + | ==== CPU Utilization |
< | < | ||
sar -u (displays for current day until that point) | sar -u (displays for current day until that point) | ||
Line 90: | Line 99: | ||
---- | ---- | ||
- | === Memory (RAM) Stats === | + | ==== Memory (RAM) Stats ==== |
< | < | ||
sar -r (display todays memory stats) | sar -r (display todays memory stats) | ||
Line 111: | Line 120: | ||
---- | ---- | ||
- | === Swap Stats === | + | ==== Swap Stats ==== |
< | < | ||
sar -S (todays swap usage) | sar -S (todays swap usage) | ||
Line 133: | Line 142: | ||
---- | ---- | ||
- | === Disk I/O === | + | ==== Disk I/O ==== |
< | < | ||
sar -b (todays disk I/O and transfer rates) | sar -b (todays disk I/O and transfer rates) | ||
Line 155: | Line 164: | ||
---- | ---- | ||
- | === Network Stats === | + | ==== Network Stats ==== |
< | < | ||
sar -n TYPE (todays network statistics) | sar -n TYPE (todays network statistics) | ||
Line 182: | Line 191: | ||
---- | ---- | ||
- | === Start and End === | + | ==== Start and End ==== |
Report only specfic time periods | Report only specfic time periods | ||