性能测试工具Lmbench使用说明_第1页
性能测试工具Lmbench使用说明_第2页
性能测试工具Lmbench使用说明_第3页
性能测试工具Lmbench使用说明_第4页
性能测试工具Lmbench使用说明_第5页
已阅读5页,还剩3页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

cos性能测试工具Lmbench的安装使用与参数说明工具简介Linux性能测试工具Lmbench是一套简易可移植的,符合ANSI/C标准为UNIX/POSIX而制定的微型测评工具。一般来说,它衡量两个关键特征:反应时间和带宽。Lmbench旨在使系统开发者深入了解关键操作的基础成本。其官方网站是:/lmbench/。安装过程及一般错误解决办法安装使用Linux性能测试工具Lmbench的安装相对比较简单,到其官方网站下载压缩包下面以在/opt目录下为列,说明安装方法解压tar-xzvflmbench3makeresults如果在make的时候出错,提示类似$makeresultsmake[1]:Enteringdirectory'/home/kyuan/lmbench3/src'gmake[2]:Enteringdirectory'/home/kyuan/lmbench3/src'gmake[2]:***Noruletomaketarget'../SCCS/',neededby'..gmake[2]:Leavingdirectory'/home/kyuan/lmbench3/src'make[1]:***[lmbench]Error2make[1]:Leavingdirectory'/home/kyuan/lmbench3/src'make:***[results]Error2这是需要修改src/Makefile,将这么一行(在231行的样子),将$O/lmbench:../scripts/lmbench中的去掉,就可以了。如果编译没有错误,就会出现一些选择提示以对测试进行一个配置并生成配置脚本,首先出现的如下(:IfyouarerunningonanMPmachineandyouwanttotryrunningmultiplecopiesoflmbenchinparallel,youcanspecifyhowmanyhere.Usingthisoptionwillmakethebenchmarkrun100xslower(sorry).NOTE:WARNING!Thisfeatureisexperimentalandmanyresultsareknowntobeincorrectorrandom!MULTIPLECOPIES[default1]此处是提示你同时运行多少个并行的测试,对应为结果中的scalload项接下来是选择作业调度控制方法,选1允许调度作业即可。如下:OptionstocontroljobplacementAllowschedulertoplacejobsAssigneachbenchmarkprocesswithanyattendentchildprocessestoitsownprocessorAssigneachbenchmarkprocesswithanyattendentchildprocessestoitsownprocessor,exceptthatitwillbeasfaraspossiblefromotherprocessesAssigneachbenchmarkandattendentprocessestotheirownprocessorsAssigneachbenchmarkandattendentprocessestotheirownprocessors,exceptthattheywillbeasfaraspossiblefromeachotherandotherprocessesCustomplacement:youassigneachbenchmarkprocesswithattendentchildprocessestoprocessorsCustomplacement:youassigneachbenchmarkandattendentprocessestoprocessorsNote:somebenchmarks,suchasbw_pipe,createattendentchildprocessesforeachbenchmarkprocess.Forexample,bw_pipeneedsasecondprocesstosenddatadownthepipetobereadbythebenchmarkprocess.Ifyouhavethreecopiesofthebenchmarkprocessrunning,thenyouactuallyhavesixprocesses;threeattendentchildprocessessendingdatadownthepipesandthreebenchmarkprocessesreadingdataanddoingthemeasurements.Jobplacementselection:1再接下来就是指定内存,本次指定为512凶,如下Severalbenchmarksoperateonarangeofmemory.Thismemoryshouldbesizedsuchthatitisatleast4timesasbigastheexternalcache[s]onyoursystem.Itshouldbenomorethan80%ofyourphysicalmemory.Thebiggertherange,themoreaccuratetheresults,butlargersizestakesomewhatlongertorunthebenchmark.MB[default2814]512下一步为所要运行的子集,默认为全部,本次我们用默认值即可,如下lmbenchmeasuresawidevarietyofsystemperformance,andthefullsuiteofbenchmarkscantakealongtimeonsomeplatforms.Consequently,weofferthecapabilitytorunonlypredefinedsubsetsofbenchmarks,oneforoperatingsystemspecificbenchmarksandoneforhardwarespecificbenchmarks.Wealsooffertheoptionofrunningonlyselectedbenchmarkswhichisusefulduringoperatingsystemdevelopment.PleaserememberthatifyouintendtopublishtheresultsyoueitherneedtodoafullrunoroneofthepredefinedOSorhardwaresubsets.SUBSET(ALL|HARWARE|OS|DEVELOPMENT)[defaultall]最后出现如下画面即为测试开始了,下面只需耐心的等就可以了。Confgurationdone,thanks.ThereisamailinglistfordiscussinglmbenchhostedatBitMover.Sendmailtotojointhelist.Usingconfigin2013年11月11日星期一10:06:07CSTLatencymeasurements2013年11月11日星期一10:06:45CSTCalculatingfilesystemlatency2013年11月11日星期一10:06:49CSTLocalnetworking2013年11月11日星期一10:08:29CSTBandwidthmeasurements3测试结果查看测试完毕执行makesee可查看到测试结果报告Lmbench的结果及其说明、本次测试结果如下cdresults&&makesummarypercent2>/dev/null|moremake[1]:正在进入目录'/opt/performance/lmbench3/results'LMBENCH3.0SUMMARY(Alphasoftware,donotdistribute)BasicsystemparametersHostOSDescriptionTOC\o"1-5"\h\zMhztlbcachemem scalHostOSDescriptionpagesline par loadbytesuser2-VT3Linux i686-pc-linux-gnu1598 88 128 1Processor,Processes-timesinmicroseconds-smallerisbetterHost OSMhznullnullopenslctsigsigforkexecshcallI/OstatclosTCPinsthndlprocprocproc user2-VT3Linux1598 647.18734330Basicintegeroperations-timesinnanoseconds-smallerisbetter Host OSintgrintgrintgrintgrintgrbitadd mul div modser2-VT3LinuxBasicfloatoperations-timesinnanoseconds-smallerisbetterHost OSfloatfloatfloatfloataddmuldivbogo user2-VT3LinuxBasicdoubleoperations-timesinnanoseconds-smallerisbetter Host OSdoubledoubledoubledoubleaddmuldivbogo user2-VT3LinuxContextswitching-timesinmicroseconds-smallerisbetter Host OS2p/0K2p/16K2p/64K8p/16K8p/64K16p/16K16p/64Kctxswctxswctxswctxswctxswctxswctxsw user2-VT3Linux*Local*Communicationlatenciesinmicroseconds-smallerisbetter Host OS2p/0KPipeAFUDPRPC/TCPRPC/TCPctxswUNIX UDP TCPconn user2-VT3Linux 106.File&VMsystemlatenciesinmicroseconds-smallerisbetterHost OS0KFile 10KFile Mmap Prot Page 100fdCreateDelete CreateDelete Latency Fault Fault selctuser2-VT3Linux*Local*CommunicationbandwidthsinMB/s-biggerisbetterHost OSPipeAFTCPFileMmapBcopyBcopyMemMemUNIXrereadreread(libc)(hand)readwriteuser2-VT3Linux759.1214833. 28741517.Memorylatenciesinnanoseconds-smallerisbetter(WARNING-maynotbecorrect,checkgraphs) Host OSMhzL1$L2$MainmemRandmemGuessesuser2-VT3Linux1598make[1]:正在离开目录'/opt/performance/lmbench3/results4相关测试结果参数说明如下ID测试分类技术参数中文名称测试结果测试项描述1BasicsystemparametersTlbpages转换缓存页数88转换后备缓存的页面数2Cachelinebytes缓存行字节数128高速缓存行字节数3Mempar存储器分层并行化存储器分层并行化4Scalload并行负载1并行执行的lmbench数目5Processor,ProcessesNullcall简单系统调用(取进程号)(单位:us)简单系统调用所花时间(单位微秒)6NullI/O简单IO操作(空读写的平均)(单位:us)简单IO操作(空读写的平均时间)7stat取文档状态的操作(单位:us)取文档状态的操作所花时间8Openclos打开然后立即关闭(单位:us)打开文档,然后再关闭文档操作所花的时

文档操作间9SlcttcpSelect设置(单位:|is)Select设置所花时间10Sighndl捕获处理信号(单位:us)捕获处理信号所花的时间11ForkprocFork进程后直接退出647(单位:us)Fork进程后址接退出所花的时间12ExecprocFork后执行execve调用再退出1873(单位:us)Fork后执行execve调用再退出所花的时间13ShprocFork后执行shell再退出4330(单位:us)Fork后执行shell再退出所花的时间14Basicfloatoperationsintgrbit/add/mul/div/mod整数位操作/加/乘/除/求模操作////(单位:ns)整数位操作,加,乘,除,等的运算所花时间15BasicfloatoperationsFloat/add/mul/div/bogo浮点型操作/加/乘////(单位:ns)浮点数操作,加,乘,除,等的运算所花时间16BasicdoubleoperationsDoubleadd/mul/div/bogo双精度数操作/加/乘/除///(单位:ns)双精度数操作,加,乘,除,等的运算所花时间17Contextswitching2p/0kctxsw2个并行处理0K大小的数据(单位:us)2个并行处理0K大小的数据所花时间182p/16kctxsw2个并行处理16K大小的数据(单位:us)2个并行处理16K大小的数据所花的时间192p/64kctxsw2个并行处理64K大小的数据(单位:us)2个并行处理64K大小的数据所花时间208p/16kctxsw8个并行处理16K大小的数据(单位:us)8个并行处理16K大小的数据所花时间

218p/64kctxsw8个并行处理64K大小的数据(单位:|is)8个并行处理64K大小的数据所花时间2216p/16kctxsw16个并行处理16K大小的数据(单位:|is)16个并行处理16K大小的数据所花时间2316p/64kctxsw16个并行处理64K大小的数据(单位:|is)16个并行处理64K大小的数据所花时间24Local*CommunicationlatenciesPipe本地管道通信延时(单位:|i

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论