Software:sar (Unix)
Stable release | sysstat 12.1.1[1]
/ October 13, 2018 |
---|---|
Preview release | sysstat 11.7.4
/ June 1, 2018[2] |
Repository | github |
Written in | C |
Operating system | AIX, Linux, Solaris, HP-UX |
Type | System reporting |
Website | sebastien |
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.[3]
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.[4]
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,[5] RedHat Enterprise Linux and SuSE provides additional reporting tools:
- Linux User Commands Manual : Collect, report, or save system activity information. –
- Linux Administration and Privileged Commands Manual : Collect and store binary data in the system activity daily data file. –
sar
, supporting the same flags assar
command which write a daily report in the /var/log/sa directory. – Linux Administration and Privileged Commands Manual
: shell variant of sar
but can write its data in different formats (CSV, XML, etc.). This is useful to load performance data into a database, or import them in a spreadsheet to make graphs.
: , similar to - reports basic CPU statistics and input/output statistics for devices, partitions and network filesystems. – Linux User Commands Manual :
- Linux User Commands Manual : reports individual or combined processor related statistics. –
- Linux User Commands Manual : reports statistics for Linux tasks (processes) : I/O, CPU, memory, etc. –
- Linux User Commands Manual : reports input/output statistics for network filesystems (NFS). –
- Linux User Commands Manual : reports I/O statistics for CIFS resources. –
See also
- atopsar
- Nmon
sag
- "system activity graph" command[6]- 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
References
- Solaris 10 User Commands Reference Manual –
- Easy system monitoring with SAR (IBM developerWorks)
- System Activity Reporter (Softpanorama)
- Article on sar at Computerhope
Footnotes
- ↑ "Release v12.1.1: Sysstat-12.1.1 · sysstat/Sysstat". https://github.com/sysstat/sysstat/releases/tag/v12.1.1.
- ↑ "SYSSTAT". http://sebastien.godard.pagesperso-orange.fr/.
- ↑ "SYSSTAT". http://sebastien.godard.pagesperso-orange.fr/man_sar.html.
- ↑ "FreshPorts -- sysutils/bsdsar: System Activity Reporter for FreeBSD". https://www.freshports.org/sysutils/bsdsar.
- ↑ "Debian -- Details of package sysstat in sid". https://packages.debian.org/sid/sysstat.
- ↑ "sag(1)". SUNOS Reference Manual. Mountain View, California: Sun Microsystems. 1993-02-24. pp. 1–895. https://www.filibeto.org/sun/lib/solaris2.5-docs/40.3/802-1930-01.pdf. 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."
Original source: https://en.wikipedia.org/wiki/Sar (Unix).
Read more |