Chinaunix首页 | 论坛 | 博客
  • 博客访问: 45217
  • 博文数量: 14
  • 博客积分: 1400
  • 博客等级: 上尉
  • 技术积分: 160
  • 用 户 组: 普通用户
  • 注册时间: 2009-06-29 19:43
文章分类

全部博文(14)

文章存档

2011年(1)

2009年(13)

我的朋友

分类: LINUX

2009-07-03 13:41:20

  想在debian下搞一搞IO的测试,居然发现不能运行iostat命令,不得手动安装了,iostat工具是和sar,mpstat打包在sysstat中的。
  安装过程非常的简单,也再次体现了apt包管理的优势,一个命令,全部搞定。

  debian:~# apt-get install iostat
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package iostat
debian:~# apt-get install sysstat
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  isag
The following NEW packages will be installed:
  sysstat
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 200kB of archives.
After this operation, 864kB of additional disk space will be used.
Get:1 lenny/main sysstat 8.1.2-2 [200kB]
Fetched 200kB in 3s (63.8kB/s)
Preconfiguring packages ...
Selecting previously deselected package sysstat.
(Reading database ... 94006 files and directories currently installed.)
Unpacking sysstat (from .../sysstat_8.1.2-2_i386.deb) ...
Processing triggers for man-db ...
Setting up sysstat (8.1.2-2) ...

Creating config file /etc/default/sysstat with new version
debian:~# iostat -x
Linux 2.6.26-2-686 (debian)     07/03/2009      _i686_

avg-cpu:  %user   %nice %system %iowait  %steal   %idle
           3.74    0.00    2.16    5.13    0.00   88.97

Device:         rrqm/s   wrqm/s     r/s     w/s   rsec/s   wsec/s avgrq-sz avgqu-sz   await  svctm  %util
sda              30.76    77.41   29.77    6.99  1255.15   674.92    52.51     0.66   17.93   3.80  13.95
sda1              4.16     0.00    0.21    0.00     6.07     0.00    28.62     0.00    8.56   5.58   0.12
sda3              1.87     0.00    0.16    0.00     4.07     0.00    25.00     0.00   16.67  13.82   0.22
sda4              0.00     0.00    0.01    0.00     0.01     0.00     2.00     0.00   70.67  70.67   0.05
sda5              6.97    76.78   26.48    6.74  1027.82   668.20    51.05     0.62   18.77   3.92  13.01
sda6              7.66     0.56    1.06    0.21    14.82     6.02    16.48     0.01   11.03   6.40   0.81
sda7              0.16     0.00    0.07    0.00     1.43     0.00    20.71     0.00   25.29  23.71   0.16
sda8              8.03     0.06    1.54    0.04   196.05     0.71   123.93     0.01    6.94   5.85   0.93

搞定!iostat这种常用的性能工具应该默认安装比较更好些。
阅读(4339) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~