龍芯通用性能測(cè)試方法_第1頁(yè)
龍芯通用性能測(cè)試方法_第2頁(yè)
龍芯通用性能測(cè)試方法_第3頁(yè)
龍芯通用性能測(cè)試方法_第4頁(yè)
龍芯通用性能測(cè)試方法_第5頁(yè)
已閱讀5頁(yè),還剩13頁(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)介

SPECCPU2000是由標(biāo)準(zhǔn)性能評(píng)價(jià)機(jī)構(gòu)“TheStandardPerformanceEvaluation影響最終的測(cè)試結(jié)果,而I/O(磁盤)SPECCPU2000非常小。目前,SPECCPU2000是業(yè)界首選的CPU評(píng)測(cè)工具。求、應(yīng)答(request/reponse)模式。netperfread,write,re-read,re-write,readbackwards,readstrided,fread,fwrite,randomread,pread,mmap,aio_read,aio_writeiozone已經(jīng)被移植到許多平臺(tái)和操作系統(tǒng)。x11perf5

JavaSpecJVM(Benchmark)1.1取得root權(quán)限。測(cè)試腳本:mem_test.sh50次執(zhí)行”./stressapptest–s100M800(此處做過(guò)修改同43A不一樣)”。 xxx為板卡的SN號(hào)5)root輸入命令:chmod75512CPUSPECCPU2000SPECCPU2000是由標(biāo)準(zhǔn)性能評(píng)價(jià)機(jī)構(gòu)“TheStandardPerformanceEvaluation的影響非常小。目前,SPECCPU2000是業(yè)界首選的CPU評(píng)測(cè)工具。14個(gè)測(cè)試項(xiàng)目..runspec-ctest.cfg-iref-n3-I次數(shù)等于或大于3,即n>=3;參數(shù),程序運(yùn)行過(guò)程出現(xiàn)錯(cuò)誤時(shí),SPECCPU2000將停止測(cè)試;二、運(yùn)行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-目前主要有g(shù)lxgears,注意測(cè)試此項(xiàng)時(shí),需要exportvblank_mode=0性能??梢詼y(cè)試read,write,re-read,re-writereadbackwards,readstrided,fread,fwrite,randomreadpread,mmap,aio_read,aio_write目前iozone已經(jīng)被移植到許多平臺(tái)和操作系統(tǒng)。7.5.2解包:tarxvfcd./iozone-a-Rb前路徑下生成輸出結(jié)果iozone.xls,在終端執(zhí)行下列命令:./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式和請(qǐng)求/應(yīng)答(request/reponse)模式。netperftar–jxvfcdnetperf-./configure&&make&&make別安裝netperf。-----oProfile(L2cachemiss)的發(fā)生次數(shù),當(dāng)達(dá)到器(performacecounter)。樣,幫助我們從進(jìn)程、函數(shù)、代碼層面找出占用cpu的"罪魁禍?zhǔn)?。1OProfile23APerformanceCounter(3A4??7OProfile是Linuxprofiling將使需要根據(jù)下面的內(nèi)容,實(shí)現(xiàn)oprofile的kernel驅(qū)動(dòng)。具體patch可以參考龍芯3A的kernel源碼中的patch3(兩組)性能計(jì)數(shù)器,他們分別映射到CP024號(hào)的sel0,sel1,sel2和sel3。龍芯3號(hào)在復(fù)位時(shí),為PerfCnt寄存器的兩個(gè)控制寄存器賦的初始值分別為:PerfCnt,select0=0xc0000000PerfCnt,select21表2描述計(jì)數(shù)使能位的定義。表3和表4描述計(jì)數(shù)器0和計(jì)數(shù)器1各自的事23計(jì)數(shù)器04計(jì)數(shù)器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列舉支持的計(jì)數(shù)器事件opcontrolinit初始化oprofileoprofileopcontrol–setup設(shè)置剖析項(xiàng)opcontrolstart啟動(dòng)使用opcontrolrootsudoopcontrol--resetopcontrol--initopcontrol--no-vmlinux--opcontrol--setup--separate=library--event=UNCACHED_ACCESS:500:0opcontrol--startopcontrol--opreportl/bin/ls>ls.log把采樣數(shù)據(jù)定向到logoprofile官方網(wǎng)站JavaSpecJVM(Benchmark)SpecJVM2008Java在龍芯3A上運(yùn)行一次要4個(gè)多小時(shí)。龍芯移植的OpenJDKPC機(jī)上的JDKSE6Java6432適用于

溫馨提示

  • 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)論