性能測(cè)試工具Lmbench使用說(shuō)明_第1頁(yè)
性能測(cè)試工具Lmbench使用說(shuō)明_第2頁(yè)
性能測(cè)試工具Lmbench使用說(shuō)明_第3頁(yè)
性能測(cè)試工具Lmbench使用說(shuō)明_第4頁(yè)
性能測(cè)試工具Lmbench使用說(shuō)明_第5頁(yè)
已閱讀5頁(yè),還剩3頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

cos性能測(cè)試工具Lmbench的安裝使用與參數(shù)說(shuō)明工具簡(jiǎn)介L(zhǎng)inux性能測(cè)試工具Lmbench是一套簡(jiǎn)易可移植的,符合ANSI/C標(biāo)準(zhǔn)為UNIX/POSIX而制定的微型測(cè)評(píng)工具。一般來(lái)說(shuō),它衡量?jī)蓚€(gè)關(guān)鍵特征:反應(yīng)時(shí)間和帶寬。Lmbench旨在使系統(tǒng)開(kāi)發(fā)者深入了解關(guān)鍵操作的基礎(chǔ)成本。其官方網(wǎng)站是:/lmbench/。安裝過(guò)程及一般錯(cuò)誤解決辦法安裝使用Linux性能測(cè)試工具Lmbench的安裝相對(duì)比較簡(jiǎn)單,到其官方網(wǎng)站下載壓縮包下面以在/opt目錄下為列,說(shuō)明安裝方法解壓tar-xzvflmbench3makeresults如果在make的時(shí)候出錯(cuò),提示類(lèi)似$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中的去掉,就可以了。如果編譯沒(méi)有錯(cuò)誤,就會(huì)出現(xiàn)一些選擇提示以對(duì)測(cè)試進(jìn)行一個(gè)配置并生成配置腳本,首先出現(xiàn)的如下(:IfyouarerunningonanMPmachineandyouwanttotryrunningmultiplecopiesoflmbenchinparallel,youcanspecifyhowmanyhere.Usingthisoptionwillmakethebenchmarkrun100xslower(sorry).NOTE:WARNING!Thisfeatureisexperimentalandmanyresultsareknowntobeincorrectorrandom!MULTIPLECOPIES[default1]此處是提示你同時(shí)運(yùn)行多少個(gè)并行的測(cè)試,對(duì)應(yīng)為結(jié)果中的scalload項(xiàng)接下來(lái)是選擇作業(yè)調(diào)度控制方法,選1允許調(diào)度作業(yè)即可。如下:OptionstocontroljobplacementAllowschedulertoplacejobsAssigneachbenchmarkprocesswithanyattendentchildprocessestoitsownprocessorAssigneachbenchmarkprocesswithanyattendentchildprocessestoitsownprocessor,exceptthatitwillbeasfaraspossiblefromotherprocessesAssigneachbenchmarkandattendentprocessestotheirownprocessorsAssigneachbenchmarkandattendentprocessestotheirownprocessors,exceptthattheywillbeasfaraspossiblefromeachotherandotherprocessesCustomplacement:youassigneachbenchmarkprocesswithattendentchildprocessestoprocessorsCustomplacement:youassigneachbenchmarkandattendentprocessestoprocessorsNote:somebenchmarks,suchasbw_pipe,createattendentchildprocessesforeachbenchmarkprocess.Forexample,bw_pipeneedsasecondprocesstosenddatadownthepipetobereadbythebenchmarkprocess.Ifyouhavethreecopiesofthebenchmarkprocessrunning,thenyouactuallyhavesixprocesses;threeattendentchildprocessessendingdatadownthepipesandthreebenchmarkprocessesreadingdataanddoingthemeasurements.Jobplacementselection:1再接下來(lái)就是指定內(nèi)存,本次指定為512兇,如下Severalbenchmarksoperateonarangeofmemory.Thismemoryshouldbesizedsuchthatitisatleast4timesasbigastheexternalcache[s]onyoursystem.Itshouldbenomorethan80%ofyourphysicalmemory.Thebiggertherange,themoreaccuratetheresults,butlargersizestakesomewhatlongertorunthebenchmark.MB[default2814]512下一步為所要運(yùn)行的子集,默認(rèn)為全部,本次我們用默認(rèn)值即可,如下lmbenchmeasuresawidevarietyofsystemperformance,andthefullsuiteofbenchmarkscantakealongtimeonsomeplatforms.Consequently,weofferthecapabilitytorunonlypredefinedsubsetsofbenchmarks,oneforoperatingsystemspecificbenchmarksandoneforhardwarespecificbenchmarks.Wealsooffertheoptionofrunningonlyselectedbenchmarkswhichisusefulduringoperatingsystemdevelopment.PleaserememberthatifyouintendtopublishtheresultsyoueitherneedtodoafullrunoroneofthepredefinedOSorhardwaresubsets.SUBSET(ALL|HARWARE|OS|DEVELOPMENT)[defaultall]最后出現(xiàn)如下畫(huà)面即為測(cè)試開(kāi)始了,下面只需耐心的等就可以了。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測(cè)試結(jié)果查看測(cè)試完畢執(zhí)行makesee可查看到測(cè)試結(jié)果報(bào)告Lmbench的結(jié)果及其說(shuō)明、本次測(cè)試結(jié)果如下cdresults&&makesummarypercent2>/dev/null|moremake[1]:正在進(jìn)入目錄'/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]:正在離開(kāi)目錄'/opt/performance/lmbench3/results4相關(guān)測(cè)試結(jié)果參數(shù)說(shuō)明如下ID測(cè)試分類(lèi)技術(shù)參數(shù)中文名稱(chēng)測(cè)試結(jié)果測(cè)試項(xiàng)描述1BasicsystemparametersTlbpages轉(zhuǎn)換緩存頁(yè)數(shù)88轉(zhuǎn)換后備緩存的頁(yè)面數(shù)2Cachelinebytes緩存行字節(jié)數(shù)128高速緩存行字節(jié)數(shù)3Mempar存儲(chǔ)器分層并行化存儲(chǔ)器分層并行化4Scalload并行負(fù)載1并行執(zhí)行的lmbench數(shù)目5Processor,ProcessesNullcall簡(jiǎn)單系統(tǒng)調(diào)用(取進(jìn)程號(hào))(單位:us)簡(jiǎn)單系統(tǒng)調(diào)用所花時(shí)間(單位微秒)6NullI/O簡(jiǎn)單IO操作(空讀寫(xiě)的平均)(單位:us)簡(jiǎn)單IO操作(空讀寫(xiě)的平均時(shí)間)7stat取文檔狀態(tài)的操作(單位:us)取文檔狀態(tài)的操作所花時(shí)間8Openclos打開(kāi)然后立即關(guān)閉(單位:us)打開(kāi)文檔,然后再關(guān)閉文檔操作所花的時(shí)

文檔操作間9SlcttcpSelect設(shè)置(單位:|is)Select設(shè)置所花時(shí)間10Sighndl捕獲處理信號(hào)(單位:us)捕獲處理信號(hào)所花的時(shí)間11ForkprocFork進(jìn)程后直接退出647(單位:us)Fork進(jìn)程后址接退出所花的時(shí)間12ExecprocFork后執(zhí)行execve調(diào)用再退出1873(單位:us)Fork后執(zhí)行execve調(diào)用再退出所花的時(shí)間13ShprocFork后執(zhí)行shell再退出4330(單位:us)Fork后執(zhí)行shell再退出所花的時(shí)間14Basicfloatoperationsintgrbit/add/mul/div/mod整數(shù)位操作/加/乘/除/求模操作////(單位:ns)整數(shù)位操作,加,乘,除,等的運(yùn)算所花時(shí)間15BasicfloatoperationsFloat/add/mul/div/bogo浮點(diǎn)型操作/加/乘////(單位:ns)浮點(diǎn)數(shù)操作,加,乘,除,等的運(yùn)算所花時(shí)間16BasicdoubleoperationsDoubleadd/mul/div/bogo雙精度數(shù)操作/加/乘/除///(單位:ns)雙精度數(shù)操作,加,乘,除,等的運(yùn)算所花時(shí)間17Contextswitching2p/0kctxsw2個(gè)并行處理0K大小的數(shù)據(jù)(單位:us)2個(gè)并行處理0K大小的數(shù)據(jù)所花時(shí)間182p/16kctxsw2個(gè)并行處理16K大小的數(shù)據(jù)(單位:us)2個(gè)并行處理16K大小的數(shù)據(jù)所花的時(shí)間192p/64kctxsw2個(gè)并行處理64K大小的數(shù)據(jù)(單位:us)2個(gè)并行處理64K大小的數(shù)據(jù)所花時(shí)間208p/16kctxsw8個(gè)并行處理16K大小的數(shù)據(jù)(單位:us)8個(gè)并行處理16K大小的數(shù)據(jù)所花時(shí)間

218p/64kctxsw8個(gè)并行處理64K大小的數(shù)據(jù)(單位:|is)8個(gè)并行處理64K大小的數(shù)據(jù)所花時(shí)間2216p/16kctxsw16個(gè)并行處理16K大小的數(shù)據(jù)(單位:|is)16個(gè)并行處理16K大小的數(shù)據(jù)所花時(shí)間2316p/64kctxsw16個(gè)并行處理64K大小的數(shù)據(jù)(單位:|is)16個(gè)并行處理64K大小的數(shù)據(jù)所花時(shí)間24Local*CommunicationlatenciesPipe本地管道通信延時(shí)(單位:|i

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

最新文檔

評(píng)論

0/150

提交評(píng)論