您的位置:首页 > 移动开发 > IOS开发

Usebonnie++toTestsystemIOspeed

2008-04-27 01:14 253 查看
原文链接:
http://www.eygle.com/unix/Use.Bonnie++.To.Test.IO.speed.htm
由于Bonnie存在一些众所周知的问题,比如>2G的文件支持.
RussellCoker(russell@coker.com.au)开发了一套新的代码,用以支持>2G的文件等.
得到TimBray(tbray@textuality.com)的许可之后,Russell把他的命名为bonnie++,在网上发布,并开始流行起来.

目前的版本已经更新到了1.03a,你可以到以下地址下载: http://www.coker.com.au/bonnie++/ 你也可以点击这里下载,这个版本需要编译,如果你没有编译环境,可以点击这里下载我编译好的,适用于SUN环境(Solaris8测试通过)

RussellCoker的个人主页是: http://www.coker.com.au/
Bonnie++与bonnie的区别主要是: http://www.coker.com.au/bonnie++/diff.html
我简单介绍一下Bonnie++的编译及使用:

1.编译

你需要把以上下载的源码编译以后才能使用,如果你没有编译环境,可以点击这里下载我编译好的,适用于SUNSolaris环境(Solaris8测试通过)

当然你需要安装make,及gcc等必要编译器.在编译过程中,如果遇到以下错误,可能是因为你没有设置正确的环境变量

$./configure
grep:illegaloption--q
Usage:grep-hblcnsviwpatternfile...
grep:illegaloption--q
Usage:grep-hblcnsviwpatternfile...
checkingforg++...g++
checkingforcompilerdefaultoutput...a.out
checkingwhethertheC++compilerworks...configure:error:cannotrunC++compiledprograms.
Ifyoumeanttocrosscompile,use`--host'.
See`config.log'formoredetails.

设置环境变量后继续编译,一般可以成功.

#exportLD_LIBRARY_PATH=/usr/lib:/usr/local/lib
#./configure
grep:illegaloption--q
Usage:grep-hblcnsviwpatternfile...
grep:illegaloption--q
Usage:grep-hblcnsviwpatternfile...
checkingforg++...g++
checkingforC++compilerdefaultoutput...a.out
checkingwhethertheC++compilerworks...yes
checkingwhetherwearecrosscompiling...no
checkingforsuffixofexecutables...
checkingforsuffixofobjectfiles...o
checkingwhetherweareusingtheGNUC++compiler...yes
checkingwhetherg++accepts-g...yes
checkinghowtoruntheC++preprocessor...g++-E
checkingforaBSD-compatibleinstall.../usr/bin/install-c
checkingforanANSIC-conformingconst...yes
checkingforegrep...egrep
checkingforANSICheaderfiles...yes
checkingforsys/types.h...yes
checkingforsys/stat.h...yes
checkingforstdlib.h...yes
checkingforstring.h...yes
checkingformemory.h...yes
checkingforstrings.h...yes
checkingforinttypes.h...yes
checkingforstdint.h...no
checkingforunistd.h...yes
checkingforsize_t...yes
checkingvector.husability...yes
checkingvector.hpresence...yes
checkingforvector.h...yes
checkingvectorusability...yes
checkingvectorpresence...yes
checkingforvector...yes
checkingalgorithmusability...yes
checkingalgorithmpresence...yes
checkingforalgorithm...yes
checkingalgo.husability...yes
checkingalgo.hpresence...yes
checkingforalgo.h...yes
checkingalgousability...no
checkingalgopresence...no
checkingforalgo...no
configure:creating./config.status
config.status:creatingMakefile
config.status:creatingbonnie.h
config.status:creatingport.h
config.status:creatingbonnie++.spec
config.status:creatingbon_csv2html1
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: