Linux mpstat
来源:互联网 发布:中科院软件所招生 编辑:程序博客网 时间:2024/06/04 19:48
mpstat是Multiprocessor Statistics的缩写,是实时系统监控工具。其报告与CPU的一些统计信息,这些信息存放在/proc/stat文件中。在多CPUs系统里,其不但能查看所有CPU的平均状况信息,而且能够查看特定CPU的信息。
安装:
yum install sysstat
语法:
mpstat [-P {|ALL}] [internal [count]]
参数的含义如下:
-P {|ALL} 表示监控哪个CPU, cpu在[0,cpu个数-1]中取值
internal 相邻的两次采样的间隔时间
count 采样的次数,count只能和delay一起使用
当没有参数时,mpstat则显示系统启动以后所有信息的平均值。有interval时,第一行的信息自系统启动以来的平均信息。从第二行开始,输出为前一个interval时间段的平均信息。如:
09:42:48 PM CPU %user %nice %sys %iowait %irq %soft %steal %idle intr/s
09:42:49 PM all 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00 573.08
09:42:49 PM 0 0.00 0.00 0.00 0.00 0.00 0.00 0.96 99.04 557.69
09:42:49 PM 1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00 10.58
各个列的含义:
CPU 处理器ID
user 在internal时间段里,用户态的CPU时间(%) ,不包含 nice值为负进程
nice 在internal时间段里,nice值为负进程的CPU时间(%)
system 在internal时间段里,核心时间(%)
iowait 在internal时间段里,硬盘IO等待时间(%)
irq 在internal时间段里,软中断时间(%)
soft 在internal时间段里,软中断时间(%)
idle 在internal时间段里,CPU除去等待磁盘IO操作外的因为任何原因而空闲的时间闲置时间 (%)
intr/s 在internal时间段里,每秒CPU接收的中断的次数
CPU总的工作时间=total_cur=user+system+nice+idle+iowait+irq+softirq
total_pre=pre_user+ pre_system+ pre_nice+ pre_idle+ pre_iowait+ pre_irq+ pre_softirq
user=user_cur – user_pre
total=total_cur-total_pre
其中_cur 表示当前值,_pre表示interval时间前的值。上表中的所有值可取到两位小数点。
- Linux mpstat
- Linux性能测试 mpstat
- Linux - mpstat 命令详解
- Linux命令之mpstat
- linux命令---mpstat
- mpstat
- mpstat
- mpstat
- Linux性能测试 mpstat命令
- Linux性能测试 mpstat命令
- linux cpu 使用情况 mpstat
- linux系统监控 mpstat命令
- Linux性能测试 mpstat命令
- Linux 命令-mpstat -P ALL
- Linux命令---mpstat命令详解
- linux学习笔记--mpstat命令
- linux 命令 w & uptime & mpstat 使用!
- linux系统监控(七)--- mpstat 详解
- Ubuntu 12.10 +Hadoop 1.2.1版本集群配置
- Linux常用命令大全
- Shell编程的10个最佳实践
- C++语言的15个晦涩特性
- linux cut -d ‘:’ -f 1
- Linux mpstat
- IOS利用Core Text对文字进行排版
- Unix与Linux系统运维进阶最佳实践分享
- Linux中TCP连接过程状态简介
- tar 解压缩命令
- Apache+tomcat+mod_jk+centos6.2负载均衡集群配置
- centOS6.4 64位下安装nfs文件共享系统
- yum命令详解
- mount命令