Translation(s): English - EspaƱol ~

(!) Discussion


About

sysstat contains the following system performance tools:

The statistics reported by sar deal with I/O transfer rates, paging activity, process-related activities, interrupts, network activity, memory and swap space utilization, CPU utilization, kernel activities and TTY statistics, among others. Both UP and SMP machines are fully supported.

Installation

apt-get install sysstat

Sar

Sar is set of tools that helps you to collect and report the system activity.

You can schedule via cron or systemd to collect and historize performance and activity data on Debian. Default sampling interval is 10 minutes but this can be changed of course (it can be as small as 1 second).

Enable Sar

Technically is sar the program that collect the information but packagers decided to handle this through sysstat name.

Once you install sysstat package edit the file /etc/default/sysstat and change the string ENABLED="false" to ENABLED="true".

After execute the following commands:

systemctl start sysstat
systemctl enable sysstat

You can check if sysstat or sar is running with the following command:

systemctl status sysstat

You can check if sar is storing the performance information on the following directory /var/log/sysstat, you will get a file with the format sa followed by a number that represents day of the month... for sample sa31.

Once the day is finished a process will convert that binary file to a text file that contains the information in a human readable form wit the name sar followed by a number that represents day of the month... for example sar30.