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
linux_wiki:sar [2014/12/03 22:08]
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: 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 45: Line 54:
 After sysstat has collected data for a while, you can start to view the information with sar. After sysstat has collected data for a while, you can start to view the information with sar.
  
-=== Log location ===+==== Log location ====
 Sar logs to either: Sar logs to either:
   * /var/log/sysstat/   * /var/log/sysstat/
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.1417662523.txt.gz
  • Last modified: 2019/05/25 23:50
  • (external edit)