Linux中系统整体性能监控工具详细介绍
日期:2007年10月23日 作者: 相关tags: Linux 系统 整体 性能 监控 工具 详细 介绍-
与CPU有关的输出的含义
参数 解释 从/proc/stat获得数据
proc/s 在internal时间段里,每秒上下文切换率 processes/total*100
cswch 在internal时间段里,每秒上下文切换率 ctxt/total*100
intr/s 在internal时间段里,每秒CPU接收的中断的次数 idle/total*100
从/proc/loadavg获得数据
runq-sz 采样时,运行队列中任务的个数,不包括vmstat 进程。 procs_running-1
plist-sz 采样时,系统中活跃的任务的个数 nr_threads
ldavg-1 采样的前一秒钟系统的负载(%) lavg_1
ldavg-5 采样的5秒钟系统的负载(%) lavg_5
ldavg-15 采样的前15秒钟系统的负载(%) lavg_15
下面输入命令“sar 3 2”,表示每隔3秒显示CPU的状态,共显示2次。此时创建1GB文件的任务还在后台进行。
[root@localhost /]# sar 3 2 Linux 2.6.13 (localhost.localdomain) 2005年12月19日 10时12分37秒 CPU %user %nice %system %iowait %idle 10时12分40秒 all 2.91 0.00 14.18 82.91 0.00 10时12分43秒 all 2.66 0.00 14.95 82.39 0.00 Average: all 2.78 0.00 14.58 82.64 0.00 [root@localhost /]# 与CPU有关的输出的含义
参数 解释 从/proc/stat获得数据
CPU 处理器ID
user 在internal时间段里,用户态的CPU时间(%) ,不包含 nice值为负进程 usr/total*100
nice 在internal时间段里,nice值为负进程的CPU时间(%) nice/total*100
sys 在internal时间段里,核心时间(%) (system+irq+softirq)/total*100
iowait 在internal时间段里,硬盘IO等待时间(%) iowait/total*100
idle 在internal时间段里,CPU除去等待磁盘IO操作外的因为任何原因而空闲的时间闲置时间 (%) irq/total*100
输入命令“sar”,当不带任何参数时,表示每一秒采样一次,每次显示从系统到该采样时系统的平均信息。从Fig.8看出在10时12分43秒,系统idle应该为0,而Fig.9
[root@localhost /]# sar Linux 2.6.13 (localhost.localdomain) 2005年12月19日 00时00分01秒 CPU %user %nice %system %iowait %idle 00时10分01秒 all 0.11 0.00 0.16 0.00 99.73 00时20分01秒 all 0.13 0.00 0.15 0.00 99.72 . . . 08时10分01秒 all 0.11 0.00 0.14 0.00 99.75 08时20分01秒 all 0.13 0.00 0.15 0.00 99.72 08时30分01秒 all 0.13 0.00 0.16 0.00 99.71 08时40分01秒 all 3.96 0.00 0.57 0.34 95.12 08时50分01秒 all 7.42 0.00 0.77 0.74 91.07 09时00分01秒 all 4.93 0.00 1.97 8.14 84.95 09时10分01秒 all 4.81 0.00 0.69 0.29 94.21 09时20分01秒 all 3.09 0.00 0.93 1.72 94.25 09时30分01秒 all 7.59 0.00 1.59 1.27 89.55 09时40分01秒 all 2.27 0.00 0.74 0.32 96.67 09时50分01秒 all 4.81 0.00 0.81 0.07 94.31 10时00分02秒 all 1.84 0.00 2.17 7.78 88.21 10时10分01秒 all 0.63 0.00 0.24 0.20 98.93 10时20分02秒 all 1.70 0.00 1.85 7.95 88.50 10时30分01秒 all 0.50 0.00 0.21 0.21 99.08 Average: all 0.81 0.00 0.33 0.49 98.37 [root@localhost /]# 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 total=total_cur-total_pre - 上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] 下一页
-
- Linux中系统整体性能监控工具详细介绍 相关文章:
- ·用U盘装系统的操作图解
- ·电脑高手必备 Windows系统35招实用技巧
- ·10分钟让你的XP操作系统变成正版
- ·把Win7“用户文件夹”设在非系统盘
- ·VB+Access设计图书管理系统
- ·告别PQMagic Win7硬盘 维护 工具ADDS
- ·华为公司介绍---网站:http://www.huawei.com
- ·黑客必学:DOS状态下命令方式入侵系统
- Linux中系统整体性能监控工具详细介绍 相关软件
- ·《暗黑破坏神2毁灭之王》v1.11地图全开工具EasyMap_v11
- ·三国志11 窗口化工具
- ·易得优全国计算机等级考试模拟系统(一级) 20081122
- ·三汇语音卡录音系统 QCR2.01.13.2
- ·U盘超级工具大全
- ·暗黑破坏神2毁灭之王 V1.10正式版 单机测试用辅助工具
- ·局域网超级工具 NetSuper V3.0
- ·东方证券金典版行情系统 V5.68
- 特别声明:本站除部分特别声明禁止转载的专稿外的其他文章可以自由转载,但请务必注明出处和原始作
- 者.文章版权归文章原始作者所有.对于被本站转载文章的个人和网站,我们表示深深的谢意。如果本站转
- 载的文章有版权问题请联系编辑人员,我们尽快予以更正. 转载请注明来源:http://www.hackhome.com
软件相关tags: Linux 系统 整体 性能 监控 工具 详细 介绍
