## sysstat - System performance tools for the Linux operating system
[![Coverity Scan Build Status](https://scan.coverity.com/projects/4040/badge.svg)](https://scan.coverity.com/projects/sysstat-sysstat)
[![Build Status](https://travis-ci.org/sysstat/sysstat.svg?branch=master)](https://travis-ci.org/sysstat/sysstat)
(C) 1999-2017 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 devices, partitions and network filesystems.
* **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](images/color_output.png)
- Internationalization support (sysstat has been translated into numerous different languages). Sysstat is now part of the [Translation Project](http://translationproject.org/).
- Sysstat commands can automatically select the unit used to display sizes for easier reading (see option `--human`).
- Graphs can be generated (SVG format - Scalable Vector Graphics) and displayed in your favorite web browser. See some sample screenshots below:
![Fancy sysstat graph](images/cpugraph.jpg)
![Fancy sysstat graph](images/tcgraph.png)
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/](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](https://github.com/sysstat/sysstat).
### 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
```
Please enter "./configure --help" to display all possible options.
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, please 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!
Of course tell me if there are any problems. This is the only way I can improve
'sysstat'. Please also remember to read the FAQ that comes with sysstat or available
from the Wiki page on GitHub.
Patches and suggestions for improvements are always welcome!
Send them to "sysstat (at) orange (dot) fr".
### 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 ;-)
Go to my web page and [click o
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
Sysstat监控工具的动态库(so)实现 (207个子文件)
001 20B
002 23B
003 23B
004 21B
005 21B
006 24B
007 25B
008 27B
009 44B
010 50B
011 47B
012 52B
013 48B
sar.1 53KB
data-10.3.1 34KB
pidstat.1 14KB
iostat.1 13KB
tapestat.1 9KB
sadf.1 9KB
mpstat.1 7KB
isag.1 6KB
cifsiostat.1 4KB
sysstat.5 5KB
data-9.1.6 20KB
sadc.8 6KB
sa1.8 2KB
sa2.8 2KB
svg_stats.c 165KB
rndr_stats.c 89KB
pr_stats.c 88KB
pidstat.c 72KB
json_stats.c 66KB
xml_stats.c 63KB
sa_common.c 62KB
rd_stats.c 61KB
raw_stats.c 57KB
iostat.c 55KB
sadf.c 50KB
mpstat.c 49KB
activity.c 39KB
sar.c 39KB
common.c 37KB
sadc.c 36KB
sa_conv.c 31KB
sadf_misc.c 30KB
sa_wrap.c 28KB
tapestat.c 19KB
cifsiostat.c 17KB
ioconf.c 13KB
count.c 13KB
rd_sensors.c 8KB
format.c 4KB
CHANGES 105KB
clean-sa-dir 446B
collect-all 351B
compress-manpg 134B
compressafter 344B
conf_dir 242B
configure 184KB
copy-only 714B
COPYING 18KB
CREDITS 10KB
cron_interval 329B
cron_owner 265B
sysstat.crond 263B
crontab 710B
sysstat.cron.daily 217B
debuginfo 121B
sysstat-3.3.dtd 12KB
.gitignore 677B
sa.h 35KB
rd_stats.h 25KB
common.h 7KB
pidstat.h 7KB
sa_conv.h 6KB
sadf.h 6KB
rndr_stats.h 5KB
svg_stats.h 5KB
iostat.h 5KB
pr_stats.h 5KB
json_stats.h 4KB
xml_stats.h 4KB
tapestat.h 4KB
raw_stats.h 3KB
mpstat.h 2KB
ioconf.h 2KB
rd_sensors.h 2KB
cifsiostat.h 2KB
iostat_ext.h 2KB
count.h 789B
prealloc.h 465B
sysconfig.h 314B
version.h 236B
history 494B
sysstat.cron.hourly 97B
iconfig 6KB
ignore-file-attr 459B
sar.in 53KB
isag.in 46KB
Makefile.in 19KB
共 207 条
- 1
- 2
- 3
资源评论
- in_spring2023-08-28这个写的不怎么样 真的
XINCHUN2017
- 粉丝: 19
- 资源: 22
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功