性能测试工具Lmbench使用说明.docx

上传人:b****3 文档编号:11579191 上传时间:2023-06-01 格式:DOCX 页数:12 大小:19.08KB
下载 相关 举报
性能测试工具Lmbench使用说明.docx_第1页
第1页 / 共12页
性能测试工具Lmbench使用说明.docx_第2页
第2页 / 共12页
性能测试工具Lmbench使用说明.docx_第3页
第3页 / 共12页
性能测试工具Lmbench使用说明.docx_第4页
第4页 / 共12页
性能测试工具Lmbench使用说明.docx_第5页
第5页 / 共12页
性能测试工具Lmbench使用说明.docx_第6页
第6页 / 共12页
性能测试工具Lmbench使用说明.docx_第7页
第7页 / 共12页
性能测试工具Lmbench使用说明.docx_第8页
第8页 / 共12页
性能测试工具Lmbench使用说明.docx_第9页
第9页 / 共12页
性能测试工具Lmbench使用说明.docx_第10页
第10页 / 共12页
性能测试工具Lmbench使用说明.docx_第11页
第11页 / 共12页
性能测试工具Lmbench使用说明.docx_第12页
第12页 / 共12页
亲,该文档总共12页,全部预览完了,如果喜欢就下载吧!
下载资源
资源描述

性能测试工具Lmbench使用说明.docx

《性能测试工具Lmbench使用说明.docx》由会员分享,可在线阅读,更多相关《性能测试工具Lmbench使用说明.docx(12页珍藏版)》请在冰点文库上搜索。

性能测试工具Lmbench使用说明.docx

性能测试工具Lmbench使用说明

cos性能测试工具Lmbench的安装使用与参数说明

1工具简介

Linux性能测试工具Lmbench是一套简易可移植的,符合ANSI/C标准为UNIX/POSIX而制定的微型测评工具。

一般来说,它衡量两个关键特征:

反应时间和带宽。

Lmbench旨在使系统开发者深入了解关键操作的基础成本。

其官方网站是:

/lmbench/。

2安装过程及一般错误解决办法

安装使用Linux性能测试工具Lmbench的安装相对比较简单,到其官方网站下载压缩包下面以在/opt目录下为列,说明安装方法

解压tar-xzvflmbench3

makeresults

如果在make的时候出错,提示类似

$makeresults

make[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]Error2

make[1]:

Leavingdirectory`/home/kyuan/lmbench3/src'

make:

***[results]Error2

这是需要修改src/Makefile,将这么一行(在231行的样子),将$O/lmbench:

../scripts/lmbench中的去掉,就可以了。

如果编译没有错误,就会出现一些选择提示以对测试进行一个配置并生成配置脚本,首先出现的如下(:

IfyouarerunningonanMPmachineandyouwanttotryrunning

multiplecopiesoflmbenchinparallel,youcanspecifyhowmanyhere.

Usingthisoptionwillmakethebenchmarkrun100xslower(sorry).

NOTE:

WARNING!

Thisfeatureisexperimentalandmanyresultsare

knowntobeincorrectorrandom!

MULTIPLECOPIES[default1]

此处是提示你同时运行多少个并行的测试,对应为结果中的scalload项

接下来是选择作业调度控制方法,选1允许调度作业即可。

如下:

Optionstocontroljobplacement

1)Allowschedulertoplacejobs

2)Assigneachbenchmarkprocesswithanyattendentchildprocesses

toitsownprocessor

3)Assigneachbenchmarkprocesswithanyattendentchildprocesses

toitsownprocessor,exceptthatitwillbeasfaraspossible

fromotherprocesses

4)Assigneachbenchmarkandattendentprocessestotheirown

processors

5)Assigneachbenchmarkandattendentprocessestotheirown

processors,exceptthattheywillbeasfaraspossiblefrom

eachotherandotherprocesses

6)Customplacement:

youassigneachbenchmarkprocesswithattendent

childprocessestoprocessors

7)Customplacement:

youassigneachbenchmarkandattendent

8)processestoprocessors

9)Note:

somebenchmarks,suchasbw_pipe,createattendentchild

10)processesforeachbenchmarkprocess.Forexample,bw_pipe

11)needsasecondprocesstosenddatadownthepipetoberead

12)bythebenchmarkprocess.Ifyouhavethreecopiesofthe

13)benchmarkprocessrunning,thenyouactuallyhavesixprocesses;

14)threeattendentchildprocessessendingdatadownthepipesand

15)threebenchmarkprocessesreadingdataanddoingthemeasurements.

16)Jobplacementselection:

1

17)

再接下来就是指定内存,本次指定为512M,如下

=====================================================================

Severalbenchmarksoperateonarangeofmemory.Thismemoryshouldbe

sizedsuchthatitisatleast4timesasbigastheexternalcache[s]

onyoursystem.Itshouldbenomorethan80%ofyourphysicalmemory.

Thebiggertherange,themoreaccuratetheresults,butlargersizes

takesomewhatlongertorunthebenchmark.

MB[default2814]

512

下一步为所要运行的子集,默认为全部,本次我们用默认值即可,如下

lmbenchmeasuresawidevarietyofsystemperformance,andthefullsuite

ofbenchmarkscantakealongtimeonsomeplatforms.Consequently,we

offerthecapabilitytorunonlypredefinedsubsetsofbenchmarks,one

foroperatingsystemspecificbenchmarksandoneforhardwarespecific

benchmarks.Wealsooffertheoptionofrunningonlyselectedbenchmarks

whichisusefulduringoperatingsystemdevelopment.

Pleaserememberthatifyouintendtopublishtheresultsyoueitherneed

todoafullrunoroneofthepredefinedOSorhardwaresubsets.

SUBSET(ALL|HARWARE|OS|DEVELOPMENT)[defaultall]

最后出现如下画面即为测试开始了,下面只需耐心的等就可以了。

Confgurationdone,thanks.

ThereisamailinglistfordiscussinglmbenchhostedatBitMover.

Sendmailtotojointhelist.

Usingconfigin

2013年11月11日星期一10:

06:

07CST

Latencymeasurements

2013年11月11日星期一10:

06:

45CST

Calculatingfilesystemlatency

2013年11月11日星期一10:

06:

49CST

Localnetworking

2013年11月11日星期一10:

08:

29CST

Bandwidthmeasurements

3测试结果查看

测试完毕执行makesee可查看到测试结果报告Lmbench的结果及其说明、

本次测试结果如下

cdresults&&makesummarypercent2>/dev/null|more

make[1]:

正在进入目录`/opt/performance/lmbench3/results'

LMBENCH3.0SUMMARY

------------------------------------

(Alphasoftware,donotdistribute)

Basicsystemparameters

------------------------------------------------------------------------------

HostOSDescriptionMhztlbcachememscal

pageslineparload

bytes

---------------------------------------------------------------------

user2-VT3Linuxi686-pc-linux-gnu1598881281

Processor,Processes-timesinmicroseconds-smallerisbetter

------------------------------------------------------------------------------

HostOSMhznullnullopenslctsigsigforkexecsh

callI/OstatclosTCPinsthndlprocprocproc

------------------------------------------------------------------

user2-VT3Linux1598647.18734330

Basicintegeroperations-timesinnanoseconds-smallerisbetter

-------------------------------------------------------------------

HostOSintgrintgrintgrintgrintgr

bitaddmuldivmod

----------------------------------------------------

ser2-VT3Linux

Basicfloatoperations-timesinnanoseconds-smallerisbetter

-----------------------------------------------------------------

HostOSfloatfloatfloatfloat

addmuldivbogo

----------------------------------------------

user2-VT3Linux

Basicdoubleoperations-timesinnanoseconds-smallerisbetter

------------------------------------------------------------------

HostOSdoubledoubledoubledouble

addmuldivbogo

----------------------------------------------

user2-VT3Linux

Contextswitching-timesinmicroseconds-smallerisbetter

-------------------------------------------------------------------------

HostOS2p/0K2p/16K2p/64K8p/16K8p/64K16p/16K16p/64K

ctxswctxswctxswctxswctxswctxswctxsw

------------------------------------------------------------------

user2-VT3Linux

*Local*Communicationlatenciesinmicroseconds-smallerisbetter

---------------------------------------------------------------------

HostOS2p/0KPipeAFUDPRPC/TCPRPC/TCP

ctxswUNIXUDPTCPconn

------------------------------------------------------------

user2-VT3Linux106.

File&VMsystemlatenciesinmicroseconds-smallerisbetter

-------------------------------------------------------------------------------

HostOS0KFile10KFileMmapProtPage100fd

CreateDeleteCreateDeleteLatencyFaultFaultselct

----------------------------------------------------------------------

user2-VT3Linux

*Local*CommunicationbandwidthsinMB/s-biggerisbetter

---------------------------------------------------------------------------

HostOSPipeAFTCPFileMmapBcopyBcopyMemMem

UNIXrereadreread(libc)(hand)readwrite

-------------------------------------------------------------------

user2-VT3Linux759.1214833.28741517.

Memorylatenciesinnanoseconds-smallerisbetter

(WARNING-maynotbecorrect,checkgraphs)

------------------------------------------------------------------------------

HostOSMhzL1$L2$MainmemRandmemGuesses

--------------------------------------------------------

user2-VT3Linux1598

make[1]:

正在离开目录`/opt/performance/lmbench3/results'

4相关测试结果参数说明如下

ID

测试分类

技术参数

中文名称

测试结果

测试项描述

1

Basicsystemparameters

Tlbpages

转换缓存页数

88

转换后备缓存的页面数

2

Cachelinebytes

缓存行字节数

128

 

高速缓存行字节数

3

Mempar

存储器分层并行化

 

存储器分层并行化

4

Scalload

并行负载

1

并行执行的lmbench数目

5

Processor,Processes

Nullcall

简单系统调用(取进程号)

(单位:

μs)

简单系统调用所花时间(单位微秒)

6

NullI/O

简单IO操作(空读写的平均)

(单位:

μs)

简单IO操作(空读写的平均时间)

7

stat

取文档状态的操作

(单位:

μs)

取文档状态的操作所花时间

8

Openclos

打开然后立即关闭文档操作

(单位:

μs)

打开文档,然后再关闭文档操作所花的时间

9

Slcttcp

Select设置

(单位:

μs)

Select设置所花时间

10

Sighndl

捕获处理信号

(单位:

μs)

捕获处理信号所花的时间

11

Forkproc

Fork进程后直接退出

647(单位:

μs)

Fork进程后址接退出所花的时间

12

Execproc

Fork后执行execve调用再退出

1873(单位:

μs)

Fork后执行execve调用再退出所花的时间

13

Shproc

Fork后执行shell再退出

4330(单位:

μs)

Fork后执行shell再退出所花的时间

14

Basicfloatoperations

intgrbit/add/mul/div/mod

整数位操作/加/乘/除/求模操作

////(单位:

ns)

整数位操作,加,乘,除,等的运算所花时间

15

Basicfloatoperations

Float/add/mul/div/bogo

浮点型操作/加/乘/

///(单位:

ns)

浮点数操作,加,乘,除,等的运算所花时间

16

Basicdoubleoperations

Doubleadd/mul/div/bogo

双精度数操作/加/乘/除

///(单位:

ns)

双精度数操作,加,乘,除,等的运算所花时间

17

Contextswitching

2p/0kctxsw

2个并行处理0K大小的数据

(单位:

μs)

2个并行处理0K大小的数据所花时间

18

2p/16kctxsw

2个并行处理16K大小的数据

(单位:

μs)

2个并行处理16K大小的数据所花的时间

19

2p/64kctxsw

2个并行处理64K大小的数据

(单位:

μs)

2个并行处理64K大小的数据所花时间

20

8p/16kctxsw

8个并行处理16K大小的数据

(单位:

μs)

8个并行处理16K大小的数据所花时间

21

8p/64kctxsw

8个并行处理64K大小的数据

(单位:

μs)

8个并行处理64K大小的数据所花时间

22

16p/16kctxsw

16个并行处理16K大小的数据

(单位:

μs)

16个并行处理16K大小的数据所花时间

23

16p/64kctxsw

16个并行处理64K大小的数据

(单位:

μs)

16个并行处理64K大小的数据所花时间

24

Local*Communicationlatencies

Pipe

本地管道通信延时

(单位:

μs)

本地管道通信延时时间

25

AFUNIX

26

UDP

本地UDP通信延时时间

27

TCP

本地TCP通信延时时间

28

Tcpconn

TCP建立connect并关闭描述字

106

TCP建立连接并关闭所花时间

29

File&VMsystemlatencies

0kfilecreate/delete

0K文件创建与删除

/(单位:

μs)

0K文件创建/删除所花的时间

30

10kfilecreate/delete

10K文件创建与删除

/(单位:

μs)

10K文件创建/删除所花的时间

31

Protfault

保护页

(单位:

μs)

保护页延时时间

32

Pagefault

缺页

(单位:

μs)

缺页延时时间

33

100fdselct

对100个文档描述符配置select

(单位:

μs)

对100个文档描述符配置select的时间

34

Local*Communicationbandwidths

Pipe

本地通信带宽方面管道操作

759MB/s

本地通信带宽方面管道操作速度

35

Filereread

文档重复读

s

文档重复读取的速度

36

Mmapreread

内存映射重复读取

s

内存映射重复读取速度

37

bcopy(libc)

内存拷贝

s

内存拷贝使用libc

38

bcopy(hand)

内存拷贝

s

内存拷贝手工拷贝速度

39

Memread

内存读

2874MB/s

内存读取速度

40

Memwrite

内存写

1517MB/s

内存写入速度

41

Memorylatencies

L1

L1缓存

(单位:

ns)

L1缓存操作延时

42

L2

L2缓存

(单位:

ns)

L2缓存操作延时

43

Mainmem

连续内存

(单位:

ns)

系统内存连续操作延时

44

Randmem

内存随机访问延时

(单位:

ns)

系统内存随机访问操作延时

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > IT计算机 > 电脑基础知识

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2