oracleorion测试io性能地工具.doc

上传人:夺命阿水 文档编号:21406 上传时间:2022-07-12 格式:DOC 页数:8 大小:96.11KB
返回 下载 相关 举报
oracleorion测试io性能地工具.doc_第1页
第1页 / 共8页
oracleorion测试io性能地工具.doc_第2页
第2页 / 共8页
oracleorion测试io性能地工具.doc_第3页
第3页 / 共8页
oracleorion测试io性能地工具.doc_第4页
第4页 / 共8页
oracleorion测试io性能地工具.doc_第5页
第5页 / 共8页
点击查看更多>>
资源描述

《oracleorion测试io性能地工具.doc》由会员分享,可在线阅读,更多相关《oracleorion测试io性能地工具.doc(8页珍藏版)》请在课桌文档上搜索。

1、oracle orion 测试io性能的工具!Oracle orionorion,一款由Oracle公司提供,专门用于模拟数据库运行机制来测试存储的优秀IO存储测试软件,可以在不运行oracle数据库的情况下,仿真OLTP随机操作测试IOPS或者是OLAP连续性操作测试吞吐量。IOPS (Input/Output Per Second)即每秒的输入输出量(或读写次数),是衡量磁盘性能的主要指标之一。IOPS是指单位时间内系统能处理的I/O请求数量,一般以每秒处理的I/O请求数量为单位,I/O请求通常为读或写数据操作请求。Mbps (MB per Second)传输速率是指集线器的数据交换能力,

2、也叫“带宽,单位是Mbps(兆位/秒)。测试命令示例1、数据库OLTP类型,假定IO类型全部是8K随机操作,压力类型,自动加压,从小到大,一直到存储压力极限cppview plaincopyprint?1. #./orion-runadvanced-testnamedave-num_disks1-size_small8-size_large8-typerand2、数据库OLAP类型,吞吐量测试,假定IO全部是1M的序列性IOcppview plaincopyprint?1. #./orion-runadvanced-testnamemytest-num_disks96-size_small10

3、24-size_large1024-typeseq必选输入参数:run、testname、num_disksrun:测试运行的层次,这个选项提供simple,normal,advanced的层次。Simple:简单的测试小的随机的IO默认8k以与大IO的连续的IO默认1024K。在这个选项中,小的随机的IO和大的连续的IO是分开测试的。这个参数对应如下的Orion调用:cppview plaincopyprint?1. ./orion-runadvanced-testnamemytest-num_disks4-size_small8-size_large1024-typerand-simula

4、teconcat-write0-duragion60-matrixbasicNormal:除了simple的功能外,还会产生小的随机的IO和大的连续的IO的结合。这个参数对应如下的Orion调用:cppview plaincopyprint?1. ./orion-runadvanced-testnamemytest-num_disks4-size_small8-size_large1024-typerand-simulateconcat-write0-duragion60-matrixdetailedAdvanced:用这个选项,用户需要指定可选的参数。testname: 输入文件必须是.lu

5、n。在这里只需要输入,不需要文件的后缀名,输入了反而会报错。num_disks: 实际测试的物理磁盘的数目。可选的输入参数:size_small: 小的随机工作量的IO的大小KB。size_large: 大的随机的或者连续工作量的大小KB。type:大的IO的工作类型默认是rand:rand:大的随机的IO。seq:大的连续的IO。write: 和读相比的写的百分比,这个参数在小的随机的和大的连续的IO工作量下适用。在大的连续的IO,每个读写流要么是读要么是写。这个参数是指只是写百分比。写的数据都是垃圾数据。 写的测试将破坏的指定的lun。num_streamIO: 每个大的连续读写流的IO数

6、目。只是在-type seq下使用。simulate:大的连续的IO工作量小的数据分布。contact:串联指定的luns成一个虚拟的卷。在虚拟的卷上的连续的测试从某个点到一个lun的完毕点。然后再到下一个lun。raid0:在指定的luns上条带化成一个虚拟的卷。条带的大小是1M和asm的条带大小一致,可以通过参数-stripe来更改。cache_size: 存储阵列的读写缓存大小MB。针对大的连续的IO工作量,Orion将在每个测试点之前warm的cache。使用缓存大小来决定缓存操作。如果没有指定,将有个默认值。如果是0的话,将没有warm缓存。duration: 每个测试点的时间。默认

7、是60matrix: 混合工作量测试的类型basic:没有混合的工作量,小的随机的IO和大的连续的IO分开测试。detailed:小的随机的IO和大的连续的IO结合起来测试。point: 单个测试点,S代表小的随机的IO,L代表大的随机/连续的IO。S -num_small L -num_largecol: 大的随机/连续的IOrow: 小的随机的IOmax:和detailed一样,只是在最大的负载下测试工作量。可以用-num_small和 -num_large参数指定。num_small: 小的随机的IO的最大数目。num_large: 大的随机的IO或者一个读写流的并发数目。verbose

8、:打印进度和状态到控制台。该软件的运行只需要一个配置文件,.lun,配置了测试所需要用到的磁盘信息,而分别返回如下信息:_iops.csv:不同压力类型的IOPS值_mbps.csv:不同压力类型的吞吐量_lat.csv:不同压力类型下的响应时间_summary.txt:测试结果的汇总信息如果你的数据库IO请求主要是单个块,那就关注IOPS,如果数据库IO请求主要是多个块,那就关注MBPS。10gR2数据库:可以从视图v$sysstat得到IO的类型。单个数据块的读:physical read total IO requests - physical read total multi bloc

9、k requests多个数据块的读:physical read total multi block requests读的总和:physical read total IO requests单个数据块的写:physical write total IO requests - physical write total multi block requests多个数据块的写:physical write total multi block requests写的总和:physical write total IO requestssqlview plaincopyprint?1. SQLselectn

10、ame,valuefromv$sysstat2. wherenamein(physicalreadtotalIOrequests,3. physicalreadtotalmultiblockrequests,4. physicalwritetotalIOrequests,5. physicalwritetotalmultiblockrequests);6. 7. NAMEVALUE8. -9. physicalreadtotalIOrequests2626636510. physicalreadtotalmultiblockrequests2500576611. physicalwriteto

11、talIOrequests2200926712. physicalwritetotalmultiblockrequests11784636看上面的数据库很明显就是传说中的数据库仓库撒,全部是多个快的读写。sqlview plaincopyprint?1. SQLselectname,valuefromv$sysstat2. wherenamein(physicalreadtotalIOrequests,3. physicalreadtotalmultiblockrequests,4. physicalwritetotalIOrequests,5. physicalwritetotalmulti

12、blockrequests);6. 7. NAMEVALUE8. -9. physicalreadtotalIOrequests418793610. physicalreadtotalmultiblockrequests58145111. physicalwritetotalIOrequests342511612. physicalwritetotalmultiblockrequests719574看上面的数据库就是OLTP数据库,单个块的读写占大局部。开始使用Orion安装orioncppview plaincopyprint?1. rootlinuxorion#pwd2. /opt/ori

13、on3. rootlinuxorion#ll4. 总计116405. -rw-r-r-1rootroot1190138105-3022:07orion_linux_x86.gz6. rootlinuxorion#gunziporion_linux_x86.gz7. rootlinuxorion#mvorion_linux_x86orion8. rootlinuxorion#chmod777orion9. rootlinuxorion#ll10. 总计3730011. -rwxrwxrwx1rootroot3814808205-3022:07orion选择测试名,可以看见test1就是我们的测试

14、名字。cppview plaincopyprint?1. rootlinuxorion#ll2. 总计373043. -rwxrwxrwx1rootroot3814808205-3022:07orion4. -rw-r-r-1rootroot1805-3022:18test1.lun5. rootlinuxorion#cattest1.lun6. /dev/sdb7. /dev/sdc验证设备是不是可以访问cppview plaincopyprint?1. rootlinux#ddif=/dev/sdbof=/dev/nullbs=32kcount=10242. 1024+0recordsin

15、3. 1024+0recordsout4. 33554432bytes(34MB)copied,0.0224968seconds,1.5GB/s5. rootlinux#ddif=/dev/sdcof=/dev/nullbs=32kcount=10246. 1024+0recordsin7. 1024+0recordsout8. 33554432bytes(34MB)copied,0.044479seconds,754MB/s开始测试cppview plaincopyprint?1. rootlinuxorion#./orion-runadvanced-testnametest1-num_di

16、sks2-size_small8-size_large8-typerand2. ORION:ORacleIONumbers-Version11.1.0.7.03. test1_20120530_22204. Testwilltakeapproximately16minutes5. Largercachesmaytakelonger输出文件cppview plaincopyprint?1. rootlinux#cd/opt/orion/2. rootlinuxorion#ll3. 总计373124. -rwxrwxrwx1rootroot3814808205-3022:07orion5. -rw

17、-r-r-1rootroot005-3022:20test1_20120530_2220_iops.csv6. -rw-r-r-1rootroot005-3022:20test1_20120530_2220_lat.csv7. -rw-r-r-1rootroot005-3022:20test1_20120530_2220_mbps.csv8. -rw-r-r-1rootroot34805-3022:20test1_20120530_2220_summary.txt9. -rw-r-r-1rootroot78705-3022:22test1_20120530_2220_trace.txt10.

18、-rw-r-r-1rootroot1805-3022:18test1.luncppview plaincopyprint?1. rootlinuxorion#cattest1_20120530_2220_summary.txt2. ORIONVERSION11.1.0.7.03. 4. mandline:5. -runadvanced-testnametest1-num_disks2-size_small8-size_large8-typerand-测试命令6. 7. Thismapstothistest:-下面是测试参数8. Test:test19. SmallIOsize:8KB10. L

19、argeIOsize:8KB11. IOTypes:SmallRandomIOs,LargeRandomIOs12. SimulatedArrayType:CONCAT13. Write:0%14. CacheSize:NotEntered15. DurationforeachDataPoint:60seconds16. SmallColumns:,017. LargeColumns:,0,1,2,3,418. TotalDataPoints:1519. 20. Name:/dev/sdbSize:8589934592-可以看见测试的磁盘大小是8G21. Name:/dev/sdcSize:8

20、58993459222. 2FILEsfound.23. 24. MaximumLargeMBPS=40.95Small=0andLarge=3-大io的mbps25. MaximumSmallIOPS=7454Small=10andLarge=0-小io的iops26. MinimumSmallLatency=0.29Small=1andLarge=0-小io的响应时间test1_20120530_2220_mbps.csv 这是个csv文件。包含大的随机或者连续的IO工作量。所有的csv输出文件有个2维表。行代表大的IO负载层次。列代表小的IO负载层次。由于这个测试不包含大的和小的IO结合

21、。所以MBPS文件只有一个列,0代表没有小的IO。cppview plaincopyprint?1. rootlinuxorion#cattest1_20120530_2220_mbps.csv2. Large/Small,0,1,2,3,4,5,6,7,8,9,103. 1,23.344. 2,32.465. 3,40.956. 4,40.53这是个小的随机的IO工作量的IOPS吞吐量。cppview plaincopyprint?1. rootlinuxorion#cattest1_20120530_2220_iops.csv2. Large/Small,1,2,3,4,5,6,7,8,9

22、,103. 0,3438,4663,5193,5349,5498,5542,6741,6863,7209,74544. 15. 26. 37. 4这是个小的随机的IO工作量下的延迟时间。cppview plaincopyprint?1. rootlinuxorion#cattest1_20120530_2220_lat.csv2. Large/Small,1,2,3,4,5,6,7,8,9,103. 0,0.29,0.43,0.58,0.75,0.91,1.08,1.04,1.16,1.24,1.334. 15. 26. 37. 4包含扩展的,未处理的测试输出。4.1、数据库OLTP类型,假定

23、IO类型全部是8K随机操作,压力类型,自动加压,从小到大,一直到存储压力极限#./orion -run advanced -testname dave-num_disks 1 -size_small 8 -size_large 8 -type rand &4.2、数据库吞吐量测试,假定IO全部是1M的序列性IO#./orion -run advanced -testname mytest-num_disks 96 -size_small 1024 -size_large 1024 -type seq &4.3、指定特定的IO类型与IO压力,如指定小IO为压力500的时候,不同大IO下的压力情况#./orion -run advanced -testname mytest-num_disks 96 -size_small 8 -size_large 128 -matrix col -num_small 500 -typerand &4.4、结合不同的IO类型,测试压力矩阵#./orion -run advanced -testname mytest-num_disks 96 -size_small 8 -size_large 128 -matrix detailed -type rand &

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

当前位置:首页 > 在线阅读 > 生活休闲


备案号:宁ICP备20000045号-1

经营许可证:宁B2-20210002

宁公网安备 64010402000986号