龙芯通用性能测试方法_第1页
龙芯通用性能测试方法_第2页
龙芯通用性能测试方法_第3页
龙芯通用性能测试方法_第4页
龙芯通用性能测试方法_第5页
已阅读5页,还剩13页未读 继续免费阅读

下载本文档

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

文档简介

SPECCPU2000是由标准性能评价机构“TheStandardPerformanceEvaluation影响最终的测试结果,而I/O(磁盘)SPECCPU2000非常小。目前,SPECCPU2000是业界首选的CPU评测工具。求、应答(request/reponse)模式。netperfread,write,re-read,re-write,readbackwards,readstrided,fread,fwrite,randomread,pread,mmap,aio_read,aio_writeiozone已经被移植到许多平台和操作系统。x11perf5

JavaSpecJVM(Benchmark)1.1取得root权限。测试脚本:mem_test.sh50次执行”./stressapptest–s100M800(此处做过修改同43A不一样)”。 xxx为板卡的SN号5)root输入命令:chmod75512CPUSPECCPU2000SPECCPU2000是由标准性能评价机构“TheStandardPerformanceEvaluation的影响非常小。目前,SPECCPU2000是业界首选的CPU评测工具。14个测试项目..runspec-ctest.cfg-iref-n3-I次数等于或大于3,即n>=3;参数,程序运行过程出现错误时,SPECCPU2000将停止测试;二、运行x11perf-$x11perf-x11perf-X11performanceprogram,versionTheX.OrgFoundationserverversion10402000on:0.0fromLoongTueSep416:08:15Synctimeadjustmentis0.130430000000reps@0.0002msec(4990000.0/sec):Dot30000000reps@0.0002msec(4980000.0/sec):Dot30000000reps@0.0002msec(4980000.0/sec):Dot30000000reps@0.0002msec(4990000.0/sec):Dot30000000reps@0.0002msec(4990000.0/sec):Dot150000000trep@0.0002msec(4990000.0/sec):Dotx11perf-x11perf-x11perf-x11perf-x11perf-x11perf-目前主要有glxgears,注意测试此项时,需要exportvblank_mode=0性能。可以测试read,write,re-read,re-writereadbackwards,readstrided,fread,fwrite,randomreadpread,mmap,aio_read,aio_write目前iozone已经被移植到许多平台和操作系统。7.5.2解包:tarxvfcd./iozone-a-Rb前路径下生成输出结果iozone.xls,在终端执行下列命令:./iozone-a-n64m-g1G-i0-i1-Rb./iozone-a-s16g-Rb./iozone-a-n1g-g4g-i0-i1-f/mnt/iozone-Rb./iozone-a-y64k-s16g-Rbnetperf式和请求/应答(request/reponse)模式。netperftar–jxvfcdnetperf-./configure&&make&&make别安装netperf。-----oProfile(L2cachemiss)的发生次数,当达到器(performacecounter)。样,帮助我们从进程、函数、代码层面找出占用cpu的"罪魁祸首"。1OProfile23APerformanceCounter(3A4​​7OProfile是Linuxprofiling将使需要根据下面的内容,实现oprofile的kernel驱动。具体patch可以参考龙芯3A的kernel源码中的patch3(两组)性能计数器,他们分别映射到CP024号的sel0,sel1,sel2和sel3。龙芯3号在复位时,为PerfCnt寄存器的两个控制寄存器赋的初始值分别为:PerfCnt,select0=0xc0000000PerfCnt,select21表2描述计数使能位的定义。表3和表4描述计数器0和计数器1各自的事23计数器04计数器1从CPU_MIPS_LOONGSON3,/*<ICTLOONGSON3中,)增加龙芯的casedescr->name="CPU_CLK_UNHALTED";/*MIPSLOONGSON3if(sscanf(line,"BogoMIPS:%lf",&fval)1){fval=fval*3/}utils/Ophelper.cmainswitchcpu_type3的caseevent:0x00counters:0um:zerominimum:10000name:CPU_CLK_UNHALTED:Cyclesoutsideofevent:0x01counters:0um:zerominimum:5000name:BRANCH_INSTRUCTIONS:Branchevent:0x02counters:0um:zerominimum:400name:JUMP_INSTRUCTIONS:JRinstructionsevent:0x03counters:0um:zerominimum:500name:JR31_INSTRUCTIONS:JR(rs=31)instructionsevent:0x04counters:0um:zerominimum:500name:ICACHE_MISSES:Instructioncachemissesevent:0x05counters:0um:zerominimum:500name:ALU1_ISSUED:ALU1operationissuedevent:0x06counters:0um:zerominimum:8000name:MEM_ISSUED:Memoryread/writeissuedevent:0x07counters:0um:zerominimum:300name:FALU1_ISSUED:FloatALU1operationissuedevent:0x08counters:0um:zerominimum:200name:BHT_BRANCH_INSTRUCTIONS:BHTpredictioninstructionsevent:0x09counters:0um:zerominimum:200name:MEM_READ:Readfromprimarymemoryevent:0x0acounters:0um:zerominimum:300name:FQUEUE_FULL:Fixqueuefullevent:0x0bcounters:0um:zerominimum:300name:ROQ_FULL:Reorderqueuefullevent:0x0ccounters:0um:zerominimum:300name:CP0_QUEUE_FULL:CP0queuefullevent:0x0dcounters:0um:zerominimum:300name:TLB_REFILL:TLBrefillexceptionevent:0x0ecounters:0um:zerominimum:5name:EXCEPTION:Exceptionsevent:0x0fcounters:0um:zerominimum:300name:INTERNAL_EXCEPTION:Internalexceptionsevent:0x10counters:1um:zerominimum:5000name:INSTRUCTION_COMMITTED:Instructionevent:0x11counters:1um:zerominimum:500name:BRANCHES_MISPREDICTED:Branchevent:0x12counters:1um:zerominimum:200name:JR_MISPREDICTED:JRmispredictedevent:0x13counters:1um:zerominimum:200name:JR31_MISPREDICTED:JR31mispredictedevent:0x14counters:1um:zerominimum:500name:DCACHE_MISSES:Datacachemissesevent:0x15counters:1um:zerominimum:500name:ALU2_ISSUED:ALU2operationissuedevent:0x16counters:1um:zerominimum:500name:FALU2_ISSUED:FALU2operationissuedevent:0x17counters:1um:zerominimum:500name:UNCACHED_ACCESS:Uncachedaccessesevent:0x18counters:1um:zerominimum:500name:BHT_MISPREDICTED:Branchhistorytableevent:0x19counters:1um:zerominimum:5000name:MEM_WRITE:Writetomemoryevent:0x1acounters:1um:zerominimum:500name:FTQ_FULL:Floatqueuefullevent:0x1bcounters:1um:zerominimum:500name:BRANCH_QUEUE_FULL:Branchqueuefullevent:0x1ccounters:1um:zerominimum:500name:ITLB_MISSES:InstructionTLBmissesevent:0x1dcounters:1um:zerominimum:500name:TOTAL_EXCEPTIONS:Totalexceptionsevent:0x1ecounters:1um:zerominimum:500name:LOAD_SPECULATION_MISSES:Loadspeculationmissesevent:0x1fcounters:1um:zerominimum:500name:CP0Q_FORWARD_VALID:CP0queueforwardLOONGSON3possibleunitname:zerotype:mandatorydefault:0x00x0Nounitmasksudogedit首先修改configurechmodxconfigure配置:./configure--with-kernel-support--disable-werror安装:make卸载命令:make编译命令为:./configure–with-kernel-support–disable-werrormakemakeopcontrol–list-events列举支持的计数器事件opcontrolinit初始化oprofileoprofileopcontrol–setup设置剖析项opcontrolstart启动使用opcontrolrootsudoopcontrol--resetopcontrol--initopcontrol--no-vmlinux--opcontrol--setup--separate=library--event=UNCACHED_ACCESS:500:0opcontrol--startopcontrol--opreportl/bin/ls>ls.log把采样数据定向到logoprofile官方网站JavaSpecJVM(Benchmark)SpecJVM2008Java在龙芯3A上运行一次要4个多小时。龙芯移植的OpenJDKPC机上的JDKSE6Java6432适用于

温馨提示

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

评论

0/150

提交评论