sysstat
该服务包括监控系统性能及效率的一组工具。这些工具对于收集系统的性能数据很有帮助:核心工具包:
iostat : cpu使用率及硬盘吞吐效率工具
mpstat:提供单个或者多个处理器的数据
sar 负责收集,报告并存储系统活跃的信息
yum provides sysstat
yum -y install sysstat
[root@localhost ~]# yum provides sysstat
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
sysstat-10.1.5-18.el7.x86_64 : Collection of performance monitoring tools for Linux
Repo : os
sysstat-10.1.5-18.el7_7.1.x86_64 : Collection of performance monitoring tools for Linux
Repo : updates
[root@localhost ~]# yum -y install sysstat
[root@localhost ~]# iostat
Linux 3.10.0-514.26.2.el7.x86_64 (localhost) 08/26/2017 _x86_64_ (1 CPU)
avg-cpu: %user %nice %system %iowait %steal %idle
0.43 0.00 0.26 0.13 0.00 99.18
Device: tps kB_read/s kB_wrtn/s kB_read kB_wrtn
scd0 0.00 0.00 0.00 314 0
vda 3.54 18.95 32.04 7468421 12626848
[root@localhost ~]#
[root@localhost ~]# mpstat
Linux 3.10.0-514.26.2.el7.x86_64 (localhost) 08/26/2017 _x86_64_ (1 CPU)
11:38:45 PM CPU %usr %nice %sys %iowait %irq %soft %steal %guest %gnice %idle
11:38:45 PM all 0.43 0.00 0.26 0.13 0.00 0.00 0.00 0.00 0.00 99.18
[root@localhost ~]#