Menu
Home Explore People Places Arts History Plants & Animals Science Life & Culture Technology
On this page
sar (Unix)
Unix command to collect, report or save system activity information

System Activity Report (sar) is a Unix System V-derived system monitor command used to report on various system loads, including CPU activity, memory/paging, interrupts, device load, network and swap space utilization. Sar uses /proc filesystem for gathering information.

Related Image Collections Add Image
We don't have any YouTube videos related to sar (Unix) yet.
We don't have any PDF documents related to sar (Unix) yet.
We don't have any Books related to sar (Unix) yet.
We don't have any archived web articles related to sar (Unix) yet.

Platform support

Sar was originally developed for the Unix System V operating system; it is available in AIX, HP-UX, Solaris and other System V based operating systems but it is not available for macOS or FreeBSD. Prior to 2013 there was a bsdsar tool, but it is now deprecated.2

Most Linux distributions provide sar utility through the sysstat package.

Syntax

sar [-flags] [ -e time ] [ -f filename ] [-i sec ] [ -s time ] -f filename Uses filename as the data source for sar. The default is the current daily data file /var/adm/sa/sadd. -e time Selects data up to time. The default is 18:00. -i sec Selects data at intervals as close as possible to sec seconds.

Example

[user@localhost]$ sar # Displays current CPU activity.

Sysstat package

Additional to sar command, Linux sysstat package in Debian,3 RedHat Enterprise Linux and SuSE provides additional reporting tools:

See also

  • atopsar
  • Nmon
  • sag - "system activity graph" command4
  • ksar- BSD licensed Java-based application to create graph of all parameters from the data collected by Unix sar utilities.
  • CURT, IBM AIX CPU Usage Reporting Tool
  • isag, tcl based command to plot sar/sysstat data

Footnotes

References

  1. "SYSSTAT". sebastien.godard.pagesperso-orange.fr. http://sebastien.godard.pagesperso-orange.fr/man_sar.html

  2. "FreshPorts -- sysutils/bsdsar: System Activity Reporter for FreeBSD". www.freshports.org. https://www.freshports.org/sysutils/bsdsar

  3. "Debian -- Details of package sysstat in sid". packages.debian.org. https://packages.debian.org/sid/sysstat

  4. "sag(1)" (PDF). SUNOS Reference Manual. Mountain View, California: Sun Microsystems. 1993-02-24. pp. 1–895. Retrieved 2010-05-04. sag - system activity graph [...] DESCRIPTION sag graphically displays the system activity data stored in a binary data file by a previous sar(1) run. https://www.filibeto.org/sun/lib/solaris2.5-docs/40.3/802-1930-01.pdf