diff --git a/content/roadmaps/102-devops/content/102-managing-servers/101-live-in-terminal/108-sar.md b/content/roadmaps/102-devops/content/102-managing-servers/101-live-in-terminal/108-sar.md index d82bf780c..76d65ad2a 100644 --- a/content/roadmaps/102-devops/content/102-managing-servers/101-live-in-terminal/108-sar.md +++ b/content/roadmaps/102-devops/content/102-managing-servers/101-live-in-terminal/108-sar.md @@ -1 +1,17 @@ -# Sar \ No newline at end of file +# Sar + +`Sar` (**S**ystem **A**activity **R**eport) is a system utility command that is a part of `sysstat` package. It provides details on all aspects of system performance including system load, CPU usage, memory usage, paging, swapping, disk usage, device load, network activity, etc. Sar can display current performance, provide reports that are based on log files stored in your system's `/var/log/sa` or `/var/log/sysstat` folder, or be set up to automatically produce daily reports. + +Usually, sar's service process (sysstat) runs in the background as a daemon, gathering a set of data every ten minutes. The data for the current day is written in a text file. It is converted to a binary file as each day passes. The files are overwritten each month so they don’t eat up all of your hard drive’s capacity. + +The basic syntax of the sar command is the following: + +`sar [OPTIONS]` + +For example: `sar -r 1 3` + +To get more information about how to use sar, you can use man command: `man sar` + +Useful Links +Sar man page +Sar tutorial for beginners