测试工具的使用说明

上传人:陆** 文档编号:184994701 上传时间:2023-02-02 格式:DOCX 页数:35 大小:214.57KB
返回 下载 相关 举报
测试工具的使用说明_第1页
第1页 / 共35页
测试工具的使用说明_第2页
第2页 / 共35页
测试工具的使用说明_第3页
第3页 / 共35页
点击查看更多>>
资源描述
测试工具的使用说明1. atopatop是一个高级的Linux系统全屏性能监视器,会定期的显示cpu、内存、磁盘、网络的负载信息。在终端输入./atop会出现如下界面:atop -anodeiOS20匚19心心丄5:J_95T55secondsPRC |sys 75m253 I user2m2131 proc212I ZUlLLlliie0 1#exitJ 1CPTT |3Y3I userW1 irq21 idle184 |wait11= |CpU 1sys2% 1 user0 %1 irti1%1 idle91% 1cpuOOO 1T.T7%1CplL 1sys1% 1 user0 %1 irq1%1 idle93% IcpuOOl T.J4%|CPL Iavgl7占 0 I avg.53.311 ;却旳丄5丄.261 csw 401S62已3 Iinr.r 16284e4 IHEI1 |t-ut.39G | free30.6HI caclieE; 5GI huff17-5M |sl=j 154.6M |STJP |to t4匸iG I free4 Lllj11 niic oDi12.5.9H |niiliiLL5,9G |PAG- 1scan 1949e5 1 stall3 匚 199911 siiiin27 1STiTOUt.63 1DSK Isda I busy7%1 read HLi66e:31 write661925 Iavio1 ILLS |D5K Isiiti I busy6%1 read 47160841 Tijrit.e418276 Iaviu2 ILLS |D5K |s ilc | tn.isy5=1 read 7D355Z61 writ.已5Z3137 Iavlu1 ILLS |NET |t-totisp 口 i:匸It-cpi3630641 tepo 2159Se41 udpi379302 |udpo 162497 INET 1netriTork1 ipi 384.5L0e31 ipo 22u252e31 iuf ETiT0 1deliv 384.5P.5 1NET |p thU1% I peki38194已4I pekij 33375e41 Si15 Mfcips |so13Mbps |MET Ie t.hl0% I peki24037091 peko 20829621 si71 Kips |so62Kbps IMET |10 -1 pcKi434Z1I pCKC434Z11 si toiips |so0KEips |古古書 sys teitL :hi Ad p recessac ti vd_ ty ;since h o o t | PTDU 沖 PU HGREdRGRMT 叮吁ERUAME THREHl二右CPUCMP门32 4713lll48s夕丄.38s 32756K11I08K root3N-S0%leofs mond1773lll42s0.00sQK0K root1N-s0%ksTijapdO30341Lll535o.oosOKOK root1N-Dgir_z_z30 311iil.52s0.0OaOKOK Eoot1N-Dgir_2_O30 351lll.52s0.00sOKOK root1N-R0 %in 二二30 321lll.52s0.00sUP:OK root1N-Dl:l %ir_2_l30 36IellSIs0.00sUP:OK root1N-R0 %102-430Z51Lll513o.oosOKOK root1N-5Zlr_l_n30 28Iell-EOs0.0OaUKOK root1N-Sgir_l_:330 37IlllSOs0.00sOf:OK root1N-D0%irZiC-S30 301lll49s0.00sOKOK root1N-50%ir_l_530 291lll49s0.00sUP:OK root1N-S0%30 Z7丄nism曰0.00sKOK root1N-5glr_l_Z30 26liii49s0.0OaOKOK root1N-Sgir_l_l5467lrii42s0.00sUP:OK root1N-S0%irZsZ-S.54621LI14150.00sOKOK root1N-s0 %ir_3_0.54631LI14150.00sUP:OK root1N-50%ii:U54651ELL41S0.003氏OK rooE1N-3glr_3_S54641lll41s0.0OaOKOK root1N-Sgir_3_254661lll40s0.00sUP:OK root1N-s0%i匸口113393-30s1.56s 12960K1396K root1N-s0%udevd130 7471.5730.00sOKOK root1N-50%niiil4130716S.91s0.003UP:OK eoce1N-3g.nliill1306463= 54s0.00sOP:OK Eoot1N-Sgnin4130 6367.90s0.00sUP:OK root1N-50%niii3130 7367.08s0.00sUP:OK root1N-S0%ninl3130 6166.0 3s0.00sOKOK root1N-S0 %ninl130 6664.66so.oosUP:OK root1N-3gnlliri130 6564= 40s0.00sUP:OK eoot1N-SgniiiS130 6263.78s0.00sOKOK root1N-50%niii2130 6063.75s0.00sUP:OK root1N-S0%niiiO在界面中键入就会显示每个进程的内存情况,如下图:止TOP -anodelOS2009/02/0415:38:3310 iseconds elapsedjPPC Isys7.36siuser0. 00s I1 Sproc2131 #zomi)ie0 1sexit3 1ZPU |ays56%iuser0% |1 irq37%1 idle26% |wait80% I:pu 1sys26%iuser0% I1 irq30%1 idle21 1cpu.001 w 23 I3pu 1sysiuser0 I1 irq资1 idle5气Icpu.000 w 57 IPL Iavgl7.94iavS4. 32 I1 avglS1 csw790794 Iintr 133054 11EM Itctif cee23.lH I1 cache35G1 buff銘.3M IsJ-Lb 12.5M I5WP |tot4.0&ifree4. OG |1| Viacom.12S.LM |vnl im5 . 9G |PAG Iscan 232672im七all67 I11 swin0 1swou七0 IDSK Isdaibusy99% 11 read15531 TTEite959 Iavia3 ms 1)SK Isdcibusy妙11 tead9961 urite782 Iavio3 ms 1)SK Isdbibusy67% 11 tead8861 urite38S Iavio5 ms 1巫T Itransportit匚 pi700611 I1 匸upn2323991 udpi14 Iudp o2 13ET |nEtwor:iipi700626 |1 ipoZ324051 ipfrw0 1deliv 700624 I巫T I1ethO78ipcKi700645 I1 pclio3324131 si 789 Mbps Iso13 ILbps IPIDMINFLTMAJFLTVSTEXT VSIZE :RSI ZE V(?ROW RGHOWMEHCIW1/3|324747801422K 32752K 1LL0SKOKOKgLeofs xoiid31601634090R:3S36K2836KOROKgatop200OKOKOKOROKkth.Ee add3000OKOKOKOKOKgkblockd/O17700OKOKOKOKOK0kswapdO107000OKOXOKOKOK0kj ouxnald.299000OKOKOKOKOK2kj ournail299100OKOKOKOKOKgkj ournald.3Q2500OKOKOKOKOKgiE_l_O302600OROKOKOKOKgir_l_l302700OEOKOKOKOKg让工2302800OROKOEOKOKg让工3302900OKOKOKOROKgit工A303000OKOKOKOKOK2“工5303100OKOKOKOKOKWi:_2_0303200OKOKOKOKOKom303400OKOKOKOKOK303500OKOKOKOKOKgll=_2_33Q3600OKOKOKOKOKgiE_2_4303700OROKOKOKOKgir_2_5306200OROKOKOKOKicl_l306300OKOKOKOKOKgj.cl2306400OKOKOKOKOKgcki_l546100OKOKOKOKOK2kj ouinali546200OKOKOKOKOKi:_3_0546300OKOKOKOKOK代546400OKOKOKOKOKgi:_3_2546500OEOKOKOKOKg546600OKOKOKOKOKgle_3_4546700OROKOKOKOKg546800OROKOKOROKgicl_31306000OKOKOKOKOKnin.01306100OKOKOKOKOKgninl在界面中键入s,就会显示与调度有关的进程信息,如下图:|kTOP -ancidelOS2009/02/0415;:39: 2310 !secondselapsed|PRC |sys7.13s1 usee0.01s |#ptoc215 I Ssomhie0 1exit.11CPU Isys521 userg 1Irq33 1 idleg 1wait106%1cpu 1sysZ21 usee2 1it(i2佻 I idle京1cpuOOL u 4強1cpu 1sys30%1如亡匸代1iizq6 I :L(LL亡 % Icpuooa w 63%1CPL |avgl10. 25I avgS5.01 I2.59 | csw757715 |intr 1190931MEH Itot3. 9G1 fre&28.5M Icache3.SG I buff19.7M Islab 161.5M15WP Itot4. 0G1 f工亡亡4.CIG I1 umcom125.5H IiTililii5. 9G1PAG |scan ;226464| stall98 | swin0 13Tirrn_ir.01DSK Isda1 busy101 Iread749 I wtiteSBS Iavio6 Els1D5K |s di1 busy9/ |read197 | WEitE660 |avio10 ms1D5K |sdc| busy38 |read997 | write576 |avio2 ms1MET Itransport1 tepi6B470B Itepo226916 I udpi10 Ii_i ip ij01MET Inetwork1 ipi684724 Iipo226924 I ipfrw0 1deliv 6847241NET II771 pclsieS4711 IpuEo226921 I si 771 Ubps I3Q12Mbps1| PIDTGIDTURPOLICYlEEIZE:PRIORTPRIOTOC PIT ST EXC5CPU匚MD1/313070130701uqrmal-2010001 -S5令ninlO13060130601no rmal-2010001 -SninO13064130641no rmal-2010001 -5nin4302730371no rmal011500 -5ir_l_3302530551no rmal011500 - -Sir_l_0302930291no rmal0ILS00 -D订工41771771no rmal-511001 -5kswapdO302630261no rmal011500 - -I)露ir_1_L303030301no mal011500 -D2iD13061130511no rmal-2010001 -5ninl299129911no rmal-511000 - -D朕kj ournald303430341no mal011501 -Sr_2_2303130311no rmal011501 -5ir_2_a303230321no rmala11500 - -5ir_2_L303530351no mal011500 -Sir23303630361no rmal011501 - -5ir2430373Q371uq rmal11500 - -5302B30231no rmal011500 -D2%让工313066130561no rmal-2010001 - -5朕nin65 465$吗$51no rmal11501 -55 46454641no rmal011500 -S丄冬5 46654661no rmal011501 -5丄总5 46754671no rmal011500 -5丄令ir_3_55 4624521no rmal011501 -51ir31639316391no rmal011501 -D1pdf丄uzh13068130681no rmal-2010001 -5丄令nine5 4634531no rmalCl11501 -5ir_3_L13062130621no mal-2010001 -Snin213073130731no rmal-2010001 -51ninl35 46854581no rmala11500 - -S丄总icl 313071130711no mal-2010000 -S丄*ninll13074130741no rmal-2010001 -5丄总ninl431630316301no rmal011501 -S丄总pd.f lush在界面中键入v,就会显示每个进程的全部信息,如下图:Ktop -anodeLOS2009/02/0415:40:1310 seconds elapsedlPRC 1sys71s I 吕er0.02s I 和匸ou2121 强口皿bit0 14 ICPU |sys53 I userg I irq33%I idleg 1wait106% Icpu Isys23 1 userW 1 irq271亡资1cpuOOL u 42Icpu |sys30% | userg | irq6%| idle0% |cpuOOO tj 64% |CPL Iavgl9.37 I avgS6.38 I avl52.881 csw ?32990 Iintr 113195 IHEH Itot3.9G 1 free21.ON 1 cache3.5G1 buff19.6M Islai 166.8U ISW? Itot4.0G I free4. OG I1 vmcoiiL 126.制1V7II11 ini5. 9G IPAG Iscan 212480 I stall251 I1 swin 1ST-TOUt.0 1sda 1 busy101 I xead16411 writ亡533 Iavi q4 ms I1sdh I busy89 I read4001 write巧9 1avi o7 ms ID5K |sdc I tiu.sy39% I read10911 write5.53 |avi u2 ms |MET |transpcir t| tcpi642735 | tcpo212233| udpi38 |l.ldp u26 |NET IrLetwotk1 ipi642779 I ip&2122631 ipfrw0 1d&liv 642777 INET I1_亡 th Ci72 1 pcki642754 I pcko2122741 si 723Mbps Iso12Mbps IJ IDUSEPNAME GROUPSTDATESTTIMEST EXC5CPUCUD1/3113072rootEQQt20Q9/02/0213;10:37- 一5番ninl 213063rootroot2009/02/0213:10:37- 一S4%nin313061rootEOOt2009/02/0213:10:37- -53%ninl13073rootroot2009/02/0213 :10:37- 一S2%ninl33034tootroot2009/02/0311!:08:09- -D朕ir_2_23035toottoot2009/02/0311::08:09- 一5ir_2_33037tootEOOt2009/02/0311:08:09- 一S2%it_2_53025too tcoot2009/02/0311!:08:09- 一513062toottoot2009/02/0213;10:37- -5ninS3162rootroot2009/02/0415:40:051T-Dpdf lush177toottoot2009/02/0209:14:08- -DkswapdOEOQtEQQt20Q5/02/0311:;皿;阳5能3027rootroot2009/02/0311:08:09S2%irO13060toottoot2009/02/0213:10:375鬓ninO13069rootroot2009/02/0213:10:3752%nin93028EOOtEOOt2009/02/03111108:09Sir_l_33029tootEOOt2009/02/0311::08:095脅ie_1_43030rootroot2009/02/0311:08:095itO3032toottoot2009/02/0311::08:09- -D2%3C35too tEQQt20Q5/02/0311;;皿;阳5鹫iE_2_43031cootroot2009/02/0311:08:09S2%ir20546Ztoottoot2009/02/0312::48:105川5464rootroot2009/02/0312 :48:1051%it_3_Z5466tootroot2009/02/0312:48:10S1%E匸431658rootEOOt2009/02/0415:33:53D川pdf lush13071rootroot2009/02/0213:10:37S1ninll31657tootcoot2009/02/0415!:39:4731pdf lush5463rootEQQt2009/02/0312;45;10S吠1e_3_15465too tEOOt2009/02/0312:48:10S1%jz335467tootEOOt2009/02/0312:48:10- -51%31C5Zrootroot2009/02/0415 :39:35D1%pdf lush3063tootroot2009/02/0311!:08:09S1%icl_213065toottoot2009/02/0213::10:375川nin5在界面中键入c,就会显示每个进程的命令行,如下图:IkTOF -ancjH已.082口19丿匚12/匚14 丄5:电匚i: 53丄1se c utidselapsedPRC I1 sys23s I1 user0015 |1壯m212 Izoinhi e0 I1 #exit.1 1CPU I1 sys50% I1 userg I1 irq31 Ii诅丄已1% 1I TT日 it.118% Icpii 11 sys22% I1 userg I1 irq25% Iidle1% 11 cpuOulw 51% IGpll 11 SYS27% |1 userg |1 irq凭|idle0 II GpllLlULlth 67 |CPL |1 avgl9.71 11 awig-56 8.5 I1 avgl53. 20 ICSTiJ646124 I1 irLt.i:99951 IMOI |I tot3.9G |I free27.OM |I caclie3. 5G |buff19.5M | Sl;iLtl156.511 |STiJP |1 t-Ot4.0G I1 tree4 匸IG I17IllCUlll126.2H I1 roiliiLL5.5G- IPAG |I scan187392 |I stall276 |1sTiTin0 1| STiTFiUt.0 11sda 11 busy101% I1 read.598 Iwrite570 I1 avio8 ms I11sdb 11 busy95% 11 read2 IwxiteS28 I1 avio11 THS ID5K I15 dC |1 busy5-5% I1 xeaii1002 ITijxit.已613 I1 avio3 ms IMET I1 t-ransportI1 tep i570748 II t-CpU1S8086 Iudpi12 II i.Ldpu0 1MET | net-LTOEk|1 ipi.570 761 |1 ip=1S8092 |ipf etii0 1| ileliw570759 |MET I1 ethO64% I1 peki570776 I1 peko1S8095 Isi 643 Mbps I1 so10 Mbps I| PH) CFUU0:MMAIiD_I,:nJE丄舲130713% ninll13062昭 nin213073 2%ninl3316732%pdfluali130612%ninl13067 2%nin?3034 2%ir_2_23031 2%ir_2_a3028 2%3032 2%ir_2_I3035 銘订二3036 2%ir_2_45 4652%irZa130652%ninS30272%ir_l_Z30302%ir_l_55463 丄妄ir_3_I5464 丄ir_3_213063丄妄nin331664丄玄pdflUSll316711%pdflusli1771%ks-wapdO30261%ir_l_I5 4621%5 467丄ir_3_513068 nin8_3029 丄 ir_l_4316573025胫1E_1_O3037 丄妄ir_2_55 466丄ir_3_413072丄妄ninl213074 丄nin!42. bonnie+1.使用说明./bonnie-H-You must use the rr-urr switch when running as root, usage: bormie+ -d scratch-dir -s size (Mb) : chunJi-siEe(b)-a tiuiibei-to-statE:iiax-size:nin-size:nuH-directories-hl ma chine-name-n raoa-siz亡-iii-Mb-x nrnnli亡工一of-t亡Et日-u uid-to-us亡:gid-tci-u日亡-g gid-to-us亡 -q -f -b -p processes | -yVersion: 1.03-d:在测试时会生成一些文件,并读或更改这些文件。这个参数是设置测试文件 放置的路径。-s:单个测试文件的尺寸。这个参数值必须大于等于2倍测试使用的内存。测试 时应该用大文件尺寸。-m:测试的机器名称-r:测试需要用多少内存。如果省略这个值,则会用全部的物理内存。-x:循环几次-u:指定执行测试的OS用户。当不是以root执行时,必须显式指定。-g测试文件的组,默认是执行bonnie+的当前用组。-b在每次写文件时调用fsync()函数,对于测试邮件服务器或者数据库服务器这 种通常需要同步操作的情况比较适合,而不使用该参数则比较适合测试copy文 件或者编译等操作的效率。2 结果分析下面看一个测试结果,通过这个结果我们解释一下到底bonnie+在测试过程中 都作了什么,而每一个输出的结果又表示了什么。/liQniLL&l-l- -d MiWLeofs -s 1000 -I 500 -u LootUsing i匚也匚gid:ClUtiting with putc().doneiLiting intelligently,dnneRewiiung. .doneReading with 5etc().doneRaditig inrelkgently.,如陋start eii.done.done.done.Create files in sequential ardEc.donE.Stat f二阳 in sequEntial OLdei.dane.Ddete files in sequential ardEt. .donE.Cceate files in tandon order.done.Stat fi.es in iandm older.doneDdete files in tandan order. dene.VEtsian 1.03Se(jUEntial Outjjut.SEquaiti&l InputHandom-Pec ChrBlackReuiite- -Pet ChrBlackSeeksnachuieSize K;sec述PK/sec 辛CP K/aec辺PK;sec 述P Vsec 轨P;aec辽PanodeS610DCM 8909 25207095 46953827673 68 B06849454212SeqiiEntial CteateRandom Create-Ci EateReadDele LeCiEate- ReadDele tellies/SEC紐P/sec HP/3C农P/3EC 紅P/疋C壮P?36C紅P16654230317143947181311d614814anode56r100aN,8909,25,2D708/r46953,8r27673,6Bf80684r9542.4J2f16r69f2H3D31fJJ439f4f7LBf2f31L6f6f148Lf4依次解读一下,从 Writing with putc()开始到 Delete files in random orde 结束, 这是bonnie+作的12项测试,这12项测试依次对应12项结果,而这12项结果 又被分为了 5大类,分别是Sequential Output (写测试),Sequential Input (读测 试),Random Seeks(读写测试),Sequential Create(顺序读写文件测试)和Random Create (随意读写文件测试)那么测试步骤和测试结果依次对应的顺序就是:Writing with putc() Sequential Output 的 Per ChrWriting intelligently 一 Sequential Output 的 Block Rewriting 一 Sequential Output 的 RewriteReading with getc() 一 Sequential Input 的 Per ChrReading intelligently 一 Sequential Input 的 Blockstart em 一 Random SeeksCreate files in sequential order 一Sequential Create 的 Create Stat files in sequential order 一 Sequential Create 的 ReadMDelete files in sequential order 一Sequential Create 的 DeleteCreate files in random order 一 Random Create 的 CreateStat files in random order 一 Random Create 的 ReadDelete files in random order 一 Random Create 的 Delete 每个结果中又包括了 2项数值,一个是K字节数或者文件数,另一个是%CP,就 是执行这项测试时CPU的平均占用率。对于输出结果的评价,我们认为在相等 CPU的占用率情况下,存取字节数越高表示该存储设备的吞吐量越大,自然性能 也就越好。Per Chr表示以字符为单位读写文件Block表示以block为单位读写文件Rewrite表示修改并重写已经存在的文件的每一个blockK/sec表示每秒读或写文件的速率,以K为单位%CP表示在某阶段执行操作时平均消耗的CPU可以看到,该机器的字符写速度可达8909K/sec, block写速度可达20708K/sec,字符读速度可达27673K/sec, block读速度可达80684K/sec。3. Dbench TbenchDbench和Tbench是用来模拟工业标准的Netbench负载测试工具来评估文 件服务器的测试工具。Dbench只产生文件系统的IO负载。r ootBanodelOS 业亡nch-3.04 S . /dJo亡:nch -hdbench version 3.04 - Copyright. And工亡ur Ttidgell 1999-2004 / dbench.; invalid Qption - h Unknaim option -h1 us age: dbench OPTTOMS nprocsus age : tziiench OPTIONS npr ocs op t-i ons:-vshow version-t tlikeliiikit. -D directory -c loadEile-3-x-T optionsrun tine in seconds (default 600) base dirzectory to run inset location of the loadfilesynchronous file 10synchronous d.ir ec匸ciri亡w (mJcflirunlink. J enati丄亡 EA support.set. soclset. options Eoe tbench-t设置运行时间,以秒为单位。-D测试运行的基本目录 测试时产生的一些文件存放位置,测试完毕后会自动 把这些文件删除-c负载文件的位置Dbench和 Tbench都会读取一个负载描述文件client.txt,这个文件是安装程序自带的,通过读取它来产生负载。测试结果:rootanodelOS dbench-3.04K ./dbench -t 10 -D /unt/leofs -c /loot/fsteat_tool3/dbench-3r04/cI pntrtxt 100diiench verai du3.04 - Copytight Aridieu Teidgell L999-2D04Running Cor 10 seconds uith load 1 /raotjEste5t_tools/cLbench-3047clienttxtand ninionm waioiup 2 secs 100 clienta startedLUOL423.65BS I-ziec:vaump1 3ECLOO4796.92UB/secffBump2 3 ECLOLI1D9DH/secexecute1 secLOLi1291QD.02HB/aecSKeciite2 secLOLi14633.50EB/secexecuLe3 secLOLI1546B.28DH/secexecute4 sec10017366.13Iffi/aecexecute5 secLUO19466.18BB/aec亡K 亡 Ci-ltC6日亡匚LOO2D661.70UB/secexecute7 secLOLI23465.29DH/secexecute8 secLOLi2626 EL 28KB/seceKecute9 secLOLiZEi5fiB.91EB/seccleatiup10 secLOLI2B662.65DH/seccleanii11 sec1002B61.67Iffi/aeccleanup11 secmrollUL 5B.9LZ3 MB/sec LOO procs从上图可看至【模拟100个client同时运行10秒的吞吐量68.9123MB/sec。Tbench产生TCP负载。r ootBariodelO dtiencIi-3.04 # . /thencli 一h dtiencli version 3.04 - Copynigli匸 Andreu Tridgell 1999-2004./ttoench: invalid opt-ion - hUrLknown option -li1 .us age: dti&ncti PTI0U5 npt ocsus age: ttiench 0PTI0W5 npt ocs p t-ions:-vshow G亡ESion_匸t-imeliifl.it.run t-ime in seconds (d
展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 图纸设计 > 毕设全套


copyright@ 2023-2025  zhuangpeitu.com 装配图网版权所有   联系电话:18123376007

备案号:ICP2024067431-1 川公网安备51140202000466号


本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知装配图网,我们立即给予删除!