linux sysstat
所属分类 linux
浏览量 960
sysstat官网
http://sebastien.godard.pagesperso-orange.fr/
https://github.com/sysstat/sysstat
The sysstat utilities are a collection of performance monitoring tools for Linux.
These include sar, sadf, mpstat, iostat, tapestat, pidstat, cifsiostat and sa tools.
iostat reports CPU statistics and input/output statistics for block devices and partitions.
mpstat reports individual or combined processor related statistics.
pidstat reports statistics for Linux tasks (processes) : I/O, CPU, memory, etc.
yum -y install sysstat
查看安装位置和文件
rpm -ql sysstat
iostat
-c 仅显示cpu信息
-d 仅显示存储设备信息,不可以和-c一起使用
-k KB -m MB
-t 显示日期
-p device | ALL
device为某个设备或者某个分区, ALL 所有分区和设备的信息
-x 显示扩展状态
iostat
iostat 2 6
iostat -d -k 2 6
iostat -c
iostat -d -x
iostat -d -x 2 6
mpstat
Multiprocessor Statistics
mpstat 2 5
cpu汇总信息
mpstat -P ALL
所有核 (含汇总)
mpstat -P 0
查看cpu0的统计数据
pidstat
pidstat -C java
pidstat -dl
pidstat -drsuwlh
-C comm Display only tasks whose command name includes the string comm.
-d Report I/O statistics (kernels 2.6.20 and later only).
-h Display all activities horizontally on a single line. This is intended to make it easier to be parsed by other programs.
-l Display the process command name and all its arguments.
-p { pid [,...] | SELF | ALL }
-r Report page faults and memory utilization.
-s Report stack utilization.
-t Also display statistics for threads associated with selected tasks.
-u Report CPU utilization.
-w Report task switching activity (kernels 2.6.23 and later only).
-h 列很多时保持 单行输出
linux iostat 命令
linux mpstat 命令
Linux vmstat 命令
linux性能监控工具sysstat介绍
上一篇
下一篇
top命令输出说明
linux mpstat 命令
linux iostat 命令
jvm到底能运行多少个线程
aerospike数据删除机制
网络IO模型