linux_wiki:sar

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
linux_wiki:sar [2014/12/03 22:09]
billdozor
linux_wiki:sar [2015/03/09 23:00]
billdozor
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** 
 +  * Distros: All 
 +  * Package: sar is a command provided by the "sysstatpackage. 
 + 
 +----
  
 ===== 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:
 +<code>
 # 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
 +</code>
  
 4) Start the service 4) Start the service
Line 63: Line 72:
 ---- ----
  
-=== CPU Utilization ===+==== CPU Utilization ====
 <code> <code>
 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 ====
 <code> <code>
 sar -r  (display todays memory stats) sar -r  (display todays memory stats)
Line 111: Line 120:
 ---- ----
  
-=== Swap Stats ===+==== Swap Stats ====
 <code> <code>
 sar -S  (todays swap usage) sar -S  (todays swap usage)
Line 133: Line 142:
 ---- ----
  
-=== Disk I/O ===+==== Disk I/O ====
 <code> <code>
 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 ====
 <code> <code>
 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
  
  • linux_wiki/sar.txt
  • Last modified: 2019/05/25 23:50
  • (external edit)