Start sadc

sadc is the system activity data collector, used as a backend for sar.

Start on SUSE Enterprise 11

If you want to monitor your system about a longer period of time, use sadc to automatically collect the data. You can read this data at any time using sar.

Run /etc/init.d/boot.sysstat start. This will add a link to /etc/cron.d/ that starts sadc:start sysstat

  • Data is written to /var/log/sa/saDD, where DD stands for the current day. If a file already exists, it will be archived.
  • The summary report is written to /var/log/sa/sarDD1, where DD stands for the current day. Already existing files will be archived.
  • Data is collected every 10 minutes(you can change this interval by update sysstat.cron)
  • Summary report is generated every 6 hours (see sysstat.cron).
  • The data is collected by the /usr/lib64/sa/sa1 script (or /usr/lib/sa/sa1 on 32bit systems)
  • The summaries are generated by the script /usr/lib64/sa/sa2 (or /usr/lib/sa/sa2 on 32bit systems)
  1. saDD is a compressed binary data file; sarDD is readable plaintext file with larger size;

Start on Ubuntu 16.04
$sudo apt-get install sysstat     # install package
...
$ cd /etc/init.d
$ ll sysstat
-rwxr-xr-x 1 root root 1597 Nov 10  2013 sysstat*

# it was disabled by default setting
$ service sysstat status
 * sadc cron jobs are disabled

# edit below file, change ENABLED="true"
$ vi /etc/default/sysstat

$ service sysstat status
 * sadc cron jobs are enabled

$ service sysstat start
 * Starting the system activity data collector sadc               [ OK ]

Reference
SUSE Doc, SYSSTAT Home Page