Skip to content
Performance monitoring tools for Linux
Branch: master
Clone or download
sysstat simtest: Add new non regression tests
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Latest commit 0d3089a May 3, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
build sar/sadc: Remove preallocation constants Nov 12, 2017
contrib Rename isag.in to isag and include a few cosmetic fixes. Apr 30, 2017
cron remove superfluous '&' within crontabs Oct 27, 2018
images Update README.md file Jul 27, 2018
man Update documentation May 1, 2019
nls Update NLS translations Apr 18, 2019
tests simtest: Add new non regression tests May 3, 2019
xml Update DTD and XSD documents Dec 9, 2018
.gitignore simtest: Add new non regression tests May 3, 2019
.lgtm.yml Configure LGTM to exclude python code: declare as library Sep 24, 2018
.travis.yml simtest: Keep adding more non regression tests Apr 28, 2019
BUG_REPORT Add BUG_REPORT template file Jul 14, 2017
CHANGES sysstat-12.1.4 Apr 18, 2019
COPYING Update license text Feb 9, 2016
CREDITS sysstat-11.5.7 Jul 5, 2017
FAQ.md Update documentation May 1, 2019
INSTALL First use of git system. Based on a complete sysstat 9.1.5 version. Sep 13, 2010
Makefile.in simtest: Add new non regression tests May 3, 2019
README.md sysstat-12.1.3 Feb 15, 2019
activity.c sadf: PCP: Add support for A_NET_SOFT activity Apr 7, 2019
cifsiostat.c Add sysstat simulation test environment Apr 26, 2019
cifsiostat.h cifsiostat: Display values in human readable format Nov 17, 2016
common.c Add sysstat simulation test environment Apr 26, 2019
common.h Add sysstat simulation test environment Apr 26, 2019
configure simtest: Add more non regression tests again Apr 28, 2019
configure.in simtest: Add more non regression tests again Apr 28, 2019
count.c Add sysstat simulation test environment Apr 26, 2019
count.h sysstat-12.1.3 Feb 15, 2019
do_test simtest: Add new non regression tests May 1, 2019
format.c sadf: PCP: Save COMMENT records in PCP archive Apr 13, 2019
iconfig PCP: Add option --disable-pcp to configuration scripts Feb 23, 2019
ioconf.c ioconf.c: Fix more gcc format-truncation warnings Jul 23, 2018
ioconf.h ioconf.c: Fix more gcc format-truncation warnings Jul 23, 2018
iostat.c Fix #222: Invalid JSON output displayed by iostat Apr 27, 2019
iostat.h sysstat-12.1.3 Feb 15, 2019
json_stats.c sysstat-12.1.3 Feb 15, 2019
json_stats.h json_stats.h: Replace XML -> JSON Feb 23, 2019
mpstat.c Add sysstat simulation test environment Apr 26, 2019
mpstat.h Add sysstat simulation test environment Apr 26, 2019
pcp_def_metrics.c sadf: PCP: Add support for A_NET_SOFT activity Apr 7, 2019
pcp_def_metrics.h sadf: PCP: Add all interrupts statistics to PCP archive Apr 6, 2019
pcp_stats.c sadf: PCP: Add support for A_NET_SOFT activity Apr 7, 2019
pcp_stats.h sadf: PCP: Add support for A_NET_SOFT activity Apr 7, 2019
pidstat.c pidstat: Make pid_array_nr variable local Mar 16, 2019
pidstat.h sysstat-12.1.3 Feb 15, 2019
pr_stats.c sar: Add missing %gnice CPU value for tickless CPU Apr 19, 2019
pr_stats.h sysstat-12.1.3 Feb 15, 2019
raw_stats.c sysstat-12.1.3 Feb 15, 2019
raw_stats.h sysstat-12.1.3 Feb 15, 2019
rd_sensors.c sysstat-12.1.3 Feb 15, 2019
rd_sensors.h sysstat-12.1.3 Feb 15, 2019
rd_stats.c Add sysstat simulation test environment Apr 26, 2019
rd_stats.h Add sysstat simulation test environment Apr 26, 2019
rndr_stats.c sysstat-12.1.3 Feb 15, 2019
rndr_stats.h sysstat-12.1.3 Feb 15, 2019
sa.h sadf: Time used by options -s/-e no longer depends on the timezone value Apr 29, 2019
sa1.in #217: add umask sysconfig variable for sa1 and sa2 Apr 8, 2019
sa2.in #217: add umask sysconfig variable for sa1 and sa2 Apr 8, 2019
sa_common.c sadf: Time used by options -s/-e no longer depends on the timezone value Apr 29, 2019
sa_conv.c sysstat-12.1.3 Feb 15, 2019
sa_conv.h sysstat-12.1.3 Feb 15, 2019
sa_wrap.c sysstat-12.1.3 Feb 15, 2019
sadc.c simtest: Add new non regression tests May 1, 2019
sadf.c sadf: Time used by options -s/-e no longer depends on the timezone value Apr 29, 2019
sadf.h sadf: Time used by options -s/-e no longer depends on the timezone value Apr 29, 2019
sadf_misc.c Add sysstat simulation test environment Apr 26, 2019
sar.c simtest: Add new non regression tests May 3, 2019
svg_stats.c sadf: Time used by options -s/-e no longer depends on the timezone value Apr 29, 2019
svg_stats.h sysstat-12.1.3 Feb 15, 2019
sysconfig.in sysstat-12.1.3 Feb 15, 2019
sysstat-12.1.4.lsm sysstat-12.1.4 Apr 18, 2019
sysstat-12.1.4.spec sysstat-12.1.4 Apr 18, 2019
sysstat.in sysstat-12.1.3 Feb 15, 2019
sysstat.ioconf Update sysstat.ioconf devices list Mar 17, 2018
sysstat.service.in add systemd timer units replacing cronjobs Mar 1, 2014
sysstat.sysconfig.in #217: add umask sysconfig variable for sa1 and sa2 Apr 8, 2019
systest.c simtest: Add new non regression tests May 1, 2019
systest.h simtest: Add new non regression tests May 1, 2019
tapestat.c Allow user to select number of decimal places May 10, 2018
tapestat.h tapestat: Display values in human readable format. Nov 17, 2016
version.in sysstat-12.1.3 Feb 15, 2019
xml_stats.c sysstat-12.1.3 Feb 15, 2019
xml_stats.h sysstat-12.1.3 Feb 15, 2019

README.md

sysstat - System performance tools for the Linux operating system

Coverity Scan Build Status Build Status Code Quality: Cpp Total Alerts Donate

(C) 1999-2019 Sebastien GODARD (sysstat (at) orange (dot) fr)

Introduction

The sysstat package contains various utilities, common to many commercial Unixes, to monitor system performance and usage activity:

  • iostat reports CPU statistics and input/output statistics for block devices and partitions.
  • mpstat reports individual or combined processor related statistics.
  • pidstat reports statistics for Linux tasks (processes) : I/O, CPU, memory, etc.
  • tapestat reports statistics for tape drives connected to the system.
  • cifsiostat reports CIFS statistics.

Sysstat also contains tools you can schedule via cron or systemd to collect and historize performance and activity data:

  • sar collects, reports and saves system activity information (see below a list of metrics collected by sar).
  • sadc is the system activity data collector, used as a backend for sar.
  • sa1 collects and stores binary data in the system activity daily data file. It is a front end to sadc designed to be run from cron or systemd.
  • sa2 writes a summarized daily activity report. It is a front end to sar designed to be run from cron or systemd.
  • sadf displays data collected by sar in multiple formats (CSV, XML, JSON, etc.) and can be used for data exchange with other programs. This command can also be used to draw graphs for the various activities collected by sar using SVG (Scalable Vector Graphics) format.

Default sampling interval is 10 minutes but this can be changed of course (it can be as small as 1 second).

System statistics collected by sar:

  • Input / Output and transfer rate statistics (global, per device, per partition and per network filesystem)
  • CPU statistics (global and per CPU), including support for virtualization architectures
  • Memory, hugepages and swap space utilization statistics
  • Virtual memory, paging and fault statistics
  • Process creation activity
  • Interrupt statistics (global, per CPU and per interrupt, including potential APIC interrupt sources, hardware and software interrupts)
  • Extensive network statistics: network interface activity (number of packets and kB received and transmitted per second, etc.) including failures from network devices; network traffic statistics for IP, TCP, ICMP and UDP protocols based on SNMPv2 standards; support for IPv6-related protocols
  • Fibre Channel traffic statistics
  • Software-based network processing (softnet) statistics
  • NFS server and client activity
  • Sockets statistics
  • Run queue and system load statistics
  • Kernel internal tables utilization statistics
  • Swapping statistics
  • TTY devices activity
  • Power management statistics (instantaneous and average CPU clock frequency, fans speed, devices temperature, voltage inputs)
  • USB devices plugged into the system
  • Filesystems utilization (inodes and blocks)

Sysstat key features:

  • Display average statistics values at the end of the reports.
  • On-the-fly detection of new devices (disks, network interfaces, etc.) that are created or registered dynamically.
  • Support for UP and SMP machines, including machines with hyperthreaded or multi-core processors.
  • Support for hotplug CPUs (it detects automagically processors that are disabled or enabled on the fly) and tickless CPUs.
  • Works on many different architectures, whether 32- or 64-bit.
  • Needs very little CPU time to run (written in C).
  • System statistics collected by sar/sadc can be saved in a file for future inspection. You can configure the length of data history to keep. There is no limit for this history length but the available space on your storage device.
  • System statistics collected by sar/sadc can be exported in various different formats (CSV, XML, JSON, SVG, etc.). DTD and XML Schema documents are included in sysstat package. JSON output format is also available for mpstat and iostat commands.
  • Smart color output for easier statistics reading.

Smart color output

  • Internationalization support (sysstat has been translated into numerous different languages). Sysstat is now part of the Translation Project.
  • Sysstat commands can automatically select the unit used to display sizes for easier reading (see option --human):

Sample iostat output

  • Graphs can be generated (SVG format - Scalable Vector Graphics) and displayed in your favorite web browser. See some sample screenshots below:

Fancy sysstat graph

Fancy sysstat graph

Fancy sysstat graph

Sysstat is Open Source / Free Software, and is freely available under the GNU General Public License, version 2. The latest version of sysstat can always be found on my web site at:

http://pagesperso-orange.fr/sebastien.godard/

See the CHANGES file to know the new features/improvements/bug fixes added in this release of sysstat. Sysstat development can be tracked on GitHub.

Installation

Install from RHEL/Fedora/CentOS

Enter:

$ sudo yum install sysstat

CentOS and Fedora systems call the collector process using a cron job in /etc/cron.d and it's enabled by default. On recent versions, systemd is used instead of cron. You may need to enable and start the sysstat service:

$ sudo systemctl enable sysstat
$ sudo systemctl start sysstat

Install from Ubuntu

Enter:

$ sudo apt-get install sysstat

Then enable data collecting:

$ sudo vi /etc/default/sysstat
change ENABLED="false" to ENABLED="true"
save the file

Last, restart the sysstat service:

$ sudo service sysstat restart

Install from sources

Clone sysstat public repository with:

$ git clone git://github.com/sysstat/sysstat

Then configure sysstat for your system:

$ cd sysstat
$ ./configure

You can set several variables and parameters on the command line. For example you can enter the following option to activate data collecting (either using cron or systemd):

$ ./configure --enable-install-cron

Enter ./configure --help to display all possible options.
Note: There is another way to configure sysstat instead of entering ./configure: This is the Interactive Configuration script (iconfig) which will ask you for the value of the main sysstat variables and parameters. Enter ./iconfig then answer the questions or enter Return to accept the (sane) default values. For yes/no questions, answer 'y' or 'n' (without the quotes): It is case sensitive! You can also enter '?' to get a help message that will explain the meaning of each variable or parameter.

Compile and install:

$ make
$ sudo make install

Feedback welcome!

Please use the BUG_REPORT template file to report a bug: It contains important data that should be provided for this. Please also remember to read the FAQ that comes with sysstat or is available from the Wiki page on GitHub.

Opening a pull request is the preferred way to submit a patch. Patches and suggestions for improvements are always welcome!

Support sysstat!

If you are reading this README file then you are probably about to use the sysstat tools to help you monitor your system and maybe troubleshoot some performance issues. Good choice. Sysstat is made for you. Moreover sysstat is free software and always will be.

Yet have you ever considered making a donation to sysstat, regardless of how much your contribution is? This in turn would encourage me to keep up the work as good as it can be... Oh, and it would certainly also help me explain to my wife why I spend so much time in front of my computer instead of taking care of the household ;-)

Click on the "Donate PayPal" button above at the beginning of this file. You can also make a donation from my web page.

Enjoy!

--

Sebastien GODARD - sysstat (at) orange (dot) fr

You can’t perform that action at this time.