文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>测试硬盘读定速度---bonnis

测试硬盘读定速度---bonnis

时间:2007-06-11  来源:ghbspecial

参考转载eygle大师
http://www.eygle.com/archives/2004/10/use_bonnie_to_test_iospeed.html

Bonnie是一款极小的测试系统IO性能的工具,源代码公开.作者主页:
http://www.textuality.com/bonnie/

编译Bonnie极其简单,但是需要你安装了make及gcc (或cc)

 

# make
Options are "make bsd" and "make SysV" - the default is "bsd".
If you get messages about missing functions, try "make SysV."
make Bonnie
make[1]: Entering directory `/export/home/gqgai/bonnie'
cc -O Bonnie.c -o Bonnie
make[1]: Leaving directory `/export/home/gqgai/bonnie'

其使用手册在:

http://www.textuality.com/bonnie/advice.html


操作示例: 
os:redhat as 4.2
[root@ns ~]# mkdir bonnie
[root@ns ~]# cd bonnie
[root@ns bonnie]# tar zxvf bonnie.tar.gz
[root@ns bonnie]# make
Options are "make bsd" and "make SysV" - the default is "bsd".
If you get messages about missing functions, try "make SysV."
make Bonnie
make[1]: Entering directory `/root/bonnie'
cc -O     Bonnie.c   -o Bonnie
make[1]: Leaving directory `/root/bonnie'

文件: bonnie.tar.gz
大小: 6KB
下载: 下载

[root@ns bonnie]# ./Bonnie -d /opt -s 512 -m billing-center
File '/opt/Bonnie.8384', size: 536870912
Writing with putc()...done
Rewriting...done
Writing intelligently...done
Reading with getc()...done
Reading intelligently...done
Seeker 1...Seeker 2...Seeker 3...start 'em...done...done...done...
              -------Sequential Output-------- ---Sequential Input-- --Random--
              -Per Char- --Block--- -Rewrite-- -Per Char- --Block--- --Seeks---
Machine    MB K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU  /sec %CPU
billing-  512 16447 79.5 44006 40.2  8467  9.9 15055 71.3 17480 13.3  50.3  1.1



解释说明:

这里Sequential Output指写入速度,Char指按字符方式写入,Block指按块方式写入,Rewrite指顺序改写速度(也就是数据修改)
Sequential Input指读取速度

CPU,指该操作占用的CPU资源.

此处写放速度为: 16447K/sec

-d scratch-dir

-s size-in-Mb

-m machine-label

-htmlIf you use this, Bonnie will generate a report in HTML form, as opposed to plain text. This is not all that useful unless you are prepared to write a table header.更多   http://www.textuality.com/bonnie/advice.html
相关阅读 更多 +
排行榜 更多 +
创造世界游戏

创造世界游戏

冒险解谜 下载
终极躲避球

终极躲避球

休闲益智 下载
趣味跑酷竞赛

趣味跑酷竞赛

休闲益智 下载