请输入您要查询的百科知识:

 

词条 Sar (Unix)
释义

  1. Platform support

  2. Syntax

  3. Example

  4. Sysstat package

  5. See also

  6. References

  7. Footnotes

{{lowercase}}{{Infobox Software
|name = sar
|logo =
|caption =
|screenshot =
|screenshot size =
|developer =
|latest_release_version = sysstat 12.1.1[1]
|latest_release_date = {{Release date and age|2018|10|13}}
| latest preview version = sysstat 11.7.4
| latest preview date = {{Start date and age|2018|06|01}} [2]
|operating_system = AIX, Linux, Solaris, HP-UX
|genre = System reporting
|license =
|programming_language= C
|repo = {{URL|https://github.com/sysstat/sysstat/}}
|website = {{URL|http://sebastien.godard.pagesperso-orange.fr//}}
}}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 /procfilesystem for gathering information [3]

Platform support

Sar was originally developed for Solaris operating system[4] and it is available in Linux, Solaris, AIX, HP-UX, but it is not available for MacOS or FreeBSD, until 2013 there was a bsdsar tool actually deprecated [5].

Linux distributions, such as Red Hat Enterprise Linux and SuSe[6] provide sar utility through the sysstat package.

Syntax

{{mono|-f}}
filename Uses filename as the data source for sar. The default is the current daily data file /var/adm/sa/sadd.
{{mono|-e}}
time Selects data up to time. The default is 18:00.
{{mono|-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[7], RedHat Enterprise Linux and SuSE provides additional reporting tools:

  • {{man|1|sar |die.net| Collect, report, or save system activity information.}}
  • {{man|8|sa1 |die.net| Collect and store binary data in the system activity daily data file.}}
  • {{man|8|sa2 |die.net| shell variant of sar, supporting the same flags as sar command which write a daily report in the /var/log/sa directory.}}
  • {{man/format|1|sadf|http://sebastien.godard.pagesperso-orange.fr/man_sadf.html|, similar to 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.}}
  • {{man|1|iostat|die.net|reports basic CPU statistics and input/output statistics for devices, partitions and network filesystems.}}
  • {{man|1|mpstat|die.net|reports individual or combined processor related statistics.}}
  • {{man|1|pidstat|die.net|reports statistics for Linux tasks (processes) : I/O, CPU, memory, etc.}}
  • {{man|1|nfsiostat|die.net|reports input/output statistics for network filesystems (NFS).}}
  • {{man|1|cifsiostat|die.net| reports I/O statistics for CIFS resources.}}

See also

  • atopsar
  • Nmon
  • sag - "system activity graph" command[8]
  • 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

  • {{man|1|sar|Solaris}}
  • Easy system monitoring with SAR (IBM developerWorks)
  • System Activity Reporter (Softpanorama)
  • Article on sar at Computerhope

Footnotes

1. ^https://github.com/sysstat/sysstat/releases/tag/v12.1.1
2. ^http://sebastien.godard.pagesperso-orange.fr/
3. ^http://sebastien.godard.pagesperso-orange.fr/man_sar.html
4. ^https://www.itworld.com/article/2786092/open-source-tools/unix-tip--using-sar-for-long-term-performance-analysis.html
5. ^https://www.freshports.org/sysutils/bsdsar
6. ^http://www.softpanorama.org/Admin/Monitoring/sar.shtml
7. ^https://packages.debian.org/sid/sysstat
8. ^{{cite web| url = https://www.filibeto.org/sun/lib/solaris2.5-docs/40.3/802-1930-01.pdf| title = sag(1)| date = 1993-02-24| work = SUNOS Reference Manual| publisher = Sun Microsystems| location = Mountain View, California| pages = 1–895| format = PDF| accessdate = 2010-05-04| quote = sag - system activity graph [...] DESCRIPTION sag graphically displays the system activity data stored in a binary data file by a previous sar(1) run.}}

3 : Job scheduling|Computer performance|System administration

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/9/21 12:41:50