logo资料库

ssd+flashcache+sas磁盘性能测试对比.pptx

第1页 / 共19页
第2页 / 共19页
第3页 / 共19页
第4页 / 共19页
第5页 / 共19页
第6页 / 共19页
第7页 / 共19页
第8页 / 共19页
资料共19页,剩余部分请下载后查看
混合存储测试 DBA组-2012/06/04
混合存储测试结果 一. Flashcache vs sas盘 1.对比测试性能指标: 1). iops 2). Latency 3). Throughput 2. 详细测试结果 Flashcache结构 8k随机读 8k随机写 8k随机读写(20%w) 1M文件连续读写 二.各种磁盘性能对比 测试工具: Orion fio 监测工具: Iostat Flashcache Top fio
混合存储测试结果 Flashcache结构 Flashcache用于缓存热点数据,用于主流64bit linux os上的一种内核模块加速技术,相当于在 普通硬盘上做了一层cache。 Fusion-io + 6 sas raid5 官网:https://github.com/facebook/flashcache/
Flashcache 8k-randread Orion测试结果: Iops指标 8k随机读 Orion测试结果如右图所示: 从图中可以看出混合存储从iops和latency上性能头提高 了2-3倍。 用iostat命令可以监控混合存储的svctm在0.28ms左 右,而sas盘的svctm在0.58左右,也就是说磁盘的服务 时间提高了1倍多,而此时系统的load都在0.3以下.但这 时候只是单进程的压力测试,磁盘性能还没有到极限。 通过fio工具采用多线程压力测试, 混合存储的iops可到平均9323多,latency 14ms, sas盘的iops可到3732多, latency 42ms 但flashcache混合存储的命中率只有30%,如果命中率更高 那效果就会更好。 Orion测试命令: #./orion -run advanced -testname disk1 -num_disks 6 -size_small 8 -size_large 8 -duration 10 - type rand
Flashcache 8k-randread Fio测试 [root@localhost tmp]# fio fio_test.bak ... Jobs: 7 (f=7): [__r_rrrrrr] [42.0% done] [42144K/0K /s] [5144 /0 iops] [eta 01m:23s] read : io=4374.6MB, bw=74589KB/s, iops=9323 , runt= 60056msec lat (usec): min=33 , max=1082.5K, avg=14400.11, stdev=26051.65 ... Disk stats (read/write): fioa: ios=161232/50997, merge=3378/5063, ticks=47874/42760, in_queue=90618, util=60.38% sda: ios=240676/13398, merge=139200/188, ticks=5955492/15416, in_queue=5970920, util=100.00% # iostat -mx 2 .... Device: rrqm/s wrqm/s r/s w/s rMB/s wMB/s avgrq-sz avgqu-sz await svctm %util sda 1280.00 9.50 2527.00 754.00 16.10 5.96 13.77 118.47 36.21 0.30 100.05 sda5 1280.00 9.50 2527.00 754.00 16.10 5.96 13.77 118.47 36.21 0.30 100.05 fioa 61.00 52.00 2513.00 911.50 20.11 5.01 15.02 1.54 0.45 0.21 70.95 dm-0 0.00 0.00 3889.50 0.00 30.26 0.00 15.93 105.41 27.15 0.26 100.05 # ./utils/flashstat Time read/s write/s diskr/s diskw/s ssdr/s ssdw/s uread/s uwrit/s metaw/s clean/s repl/s wrepl/s hit% whit% dwhit% 06-04 13:37:39 11144 0 8182 1910 4868 2426 7335 0 1569 1909 346 0 26|28 0|19 0|3 06-04 13:37:40 7148 0 5102 994 3040 1371 4563 0 844 993 362 0 28|28 0|19 0|3 06-04 13:37:41 4242 0 3019 957 2182 865 2951 0 786 958 41 0 28|28 0|19 0|3 06-04 13:37:42 5170 0 3779 870 2261 962 3551 0 743 871 173 0 26|28 0|19 0|3
SAS盘 8k-randread [root@localhost tmp]# fio fio_test.bak ... Jobs: 10 (f=10): [rrrrrrrrrr] [100.0% done] [30709K/0K /s] [3748 /0 iops] [eta 00m:00s] read : io=1751.6MB, bw=29858KB/s, iops=3732 , runt= 60069msec lat (msec): min=3 , max=891 , avg=42.83, stdev=38.60 ... Disk stats (read/write): sda: ios=223796/87, merge=4/162, ticks=7243566/69, in_queue=7248467, util=100.00% # iostat -mx 2 .... Device: rrqm/s wrqm/s r/s w/s rMB/s wMB/s avgrq-sz avgqu-sz await svctm %util sda 0.00 2.50 3605.50 24.50 28.16 0.21 16.01 121.56 33.41 0.28 100.10 sda2 0.00 0.00 3605.50 0.00 28.16 0.00 16.00 121.56 33.64 0.28 100.10 Fio的配置文件如下: [root@localhost tmp]# vi fio_test.bak [global] description=Emulation of Intel IOmeter File Server Access Pattern [iometer] blocksize=8k #bssplit=8k/40:16k/60 rw=randread #rwmixwrite=20 runtime=60 direct=1 size=1g ioengine=libaio directory=/data2/ iodepth=16 iodepth_batch=8 iodepth_low=8 iodepth_batch_complete=8 numjobs=10 group_reporting
Flashcache 8k randread 总结: 针对8k随机读,用orion,fio等工具对比测试flashcache和sas盘,从iops、latency、svctm,都可以看出 flashcache存储性能都比sas盘提高2-3倍。
Flashcache 8k-randrw(20%w) 8k 随机读写(写占20%) Orion的测试结果如有图所示: Sas盘监控 # iostat -mx 2 Device: rrqm/s wrqm/s r/s w/s rMB/s wMB/s avgrq-sz avgqu-sz await svctm %util sda 0.00 0.00 1120.00 288.00 8.75 2.25 16.00 29.96 21.09 0.71 100.05 sda2 0.00 0.00 1120.00 288.00 8.75 2.25 16.00 29.96 21.09 0.71 100.05 混合测试监控 # iostat -mx 2 Device: rrqm/s wrqm/s r/s w/s rMB/s wMB/s avgrq-sz avgqu-sz await svctm %util sda 0.00 3.00 2507.50 1.00 19.59 0.02 16.01 27.89 11.12 0.40 100.05 sda5 0.00 0.00 2507.50 0.00 19.59 0.00 16.00 27.89 11.13 0.40 100.05 fioa 0.00 1.00 1141.00 4361.00 8.91 30.50 14.67 1.79 0.33 0.15 82.90 dm-0 0.00 0.00 3649.50 938.50 28.51 7.33 16.00 29.73 6.48 0.22 100.05 # ./utils/flashstat 06-04 09:51:28 3586 886 2436 0 1149 4187 0 0 863 0 2436 616 32|29 30|19 2|3 06-04 09:51:29 3699 901 2538 0 1160 4330 0 0 889 0 2538 635 31|29 29|19 1|3 06-04 09:51:30 3722 929 2556 0 1165 4383 0 0 898 0 2556 657 31|29 29|19 3|3 Orion测试命令:
分享到:
收藏