性能测试之linux指令篇2

上一篇 / 下一篇  2007-11-28 11:09:44 / 个人分类:性能测试

51Testing软件测试网7@7` kQ T,f4u^9O W

Iostat命令51Testing软件测试网2nrN oW#u

51Testing软件测试网1Z;q5?x4} w"o

说明:

[9ew C {m:b\0iostatI/O statistics(输入/输出统计)的缩写,iostat工具将对系统的磁盘操作活动进行监视。它的特点是汇报磁盘活动统计情况,同时也会汇报出CPU使用情况。但是它不能对某个进程进行深入分析,仅对系统的整体情况进行分析。

0Q'sf'p t.cqL:fo051Testing软件测试网sD3z d'a#Qf(gD

使用格式:

.X2i\!] f#g Xp0iostat [ -c | -d ] [ -k ] [ -t ] [ -V ] [ -x [ device ] ] [ interval [ count ] ]51Testing软件测试网E;g)H*h0DX

c:汇报CPU的使用情况51Testing软件测试网%N3qzn G`MO]HRr
d
:汇报磁盘的使用情况51Testing软件测试网,A gH8LFW/l.`E
k
:表示每秒按kilobytes字节显示数据
`,sc;w$xHS o0t
:打印汇报的时间
?o k8O t)M s;e0v
:表示打印出版本信息和用法51Testing软件测试网i8Jry3hhQ
x device
:指定要统计的设备名称,默认为所有的设备
.`q&zgMk@0interval
指每次统计间隔的时间,count指按照这个时间间隔统计的次数

H,[)`)A C051Testing软件测试网.C#O+}` w$tK

结果说明:

iostat产生两种类型的报告,cpu利用报告和磁盘利用报告。
h2F!q[ |#J0
在多处理器系统中,CPU的值取各个CPU的平均值
i7Xw$V&SnE(r0
%user:用户态的CPU利用百分比51Testing软件测试网 J Y7c$l{9G7T WH
%nice
Show  the  percentage  of  CPU  utilization that occurred while executing at the user level with nice priority.
||+W)vjc Z'i0%sys
系统态的CPU利用百分比51Testing软件测试网 JjB Q*\0~#M
%idle
Show  the  percentage  of  time that the CPU or CPUs were idle.

磁盘报告中提供
%gM^1R(Xt*Gp0Device
:磁盘名,在2.2内核显示为hdiskn,在较新的内核显示为devm-n,当时用-x选项时显示为/dev的形式51Testing软件测试网cV+DG}
tps

Blk_read/s

Blk_wrtn/s

Blk_read51Testing软件测试网8r.g.h y+yov

Blk_wrtn51Testing软件测试网&I$m `vcVV%v B8a

51Testing软件测试网%bt:Y$C|r,HZ%c

51Testing软件测试网6y%@exB&F ~tk

tnnd,我怎么就翻译不出来呢,以后再补吧:(

h h|"~c$TH7f0

TAG: iostat 性能测试

 

评分:0

我来说两句

Open Toolbar