实测Raid5 VS Raid1+0下的innodb性能

声明:本文拒绝任何形式的转载,如有违者,将保留追究权利!

1、说明
硬件:
Raid 5: DELL 2950, 8G RAM, 3块SEAGATE SAS 140G 盘构成
Raid 1+0: DELL 2950, 8G RAM, 4块SEAGATE SAS 140G 盘构成
软件:
Red Hat Enterprise Linux AS release 4 (Nahant Update 6)
Linux imysql.cn 2.6.9-67.0.15.ELsmp #1 SMP Tue Apr 22 13:58:43 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux

mysql 5.0.45

sysbench-0.4.8
innodb主要相关参数:
innodb_buffer_pool_size = 6G
innodb_data_file_path = ibdata1:1024M:autoextend
innodb_thread_concurrency = 8
innodb_flush_log_at_trx_commit = 1
innodb_log_buffer_size = 16M
innodb_log_file_size = 256M
innodb_log_files_in_group = 3
innodb_max_dirty_pages_pct = 90
innodb_file_per_table
测试方法:
sysbench --test=oltp --oltp-test-mode=complex --mysql-engine-trx=yes \
--mysql-table-engine=innodb --mysql-db=test --oltp-table-name=xxx \
--oltp-table-size=xxx --num-threads=8
2、测试结果
表记录数<?XML:NAMESPACE PREFIX = O />

prepare

transaction/s

r/w request/s

other/s

total time

100w

15.876s

2554.77

48540.71

5109.55

3.9142s

15.467s

2578.27

48987.1

5156.54

3.8786s

 

     
500w

1m27.716s

2179.69

41414.13

4359.38

4.5878s

1m24.817s

2165.17

41138.26

4330.34

4.6186s

      
1000w

3m0.816s

802.24

15242.62

1604.49

12.4650s

2m54.242s

1413.52

26856.94

2827.05

7.0745s

      
5000w

16m2.075s

297.1

5644.82

594.19

33.6592s

15m29.652s

336.98

6402.54

673.95

29.6757s

      
1 亿

32m45.385s

101.87

1935.56

203.74

98.1628s

31m35.462s

123.7

2350.31

247.4

80.8405s

raid 5

     
raid 1+0

     
小结:其实3块盘的raid5和4块盘的raid1+0的容量是一样的,想要得到更好的性能,那么就多花一块盘的前吧 :) 不过,话说回来,raid1+0最多允许同时坏2块,raid5只能一块,因此还需要增加一块热备盘,所以这么算的话,成本还是一样的。

声明:本文拒绝任何形式的转载,如有违者,将保留追究权利!

1、说明
硬件:
Raid 5: DELL 2950, 8G RAM, 3块SEAGATE SAS 140G 盘构成
Raid 1+0: DELL 2950, 8G RAM, 4块SEAGATE SAS 140G 盘构成
软件:
Red Hat Enterprise Linux AS release 4 (Nahant Update 6)
Linux imysql.cn 2.6.9-67.0.15.ELsmp #1 SMP Tue Apr 22 13:58:43 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux

mysql 5.0.45

sysbench-0.4.8
innodb主要相关参数:
innodb_buffer_pool_size = 6G
innodb_data_file_path = ibdata1:1024M:autoextend
innodb_thread_concurrency = 8
innodb_flush_log_at_trx_commit = 1
innodb_log_buffer_size = 16M
innodb_log_file_size = 256M
innodb_log_files_in_group = 3
innodb_max_dirty_pages_pct = 90
innodb_file_per_table
测试方法:
sysbench --test=oltp --oltp-test-mode=complex --mysql-engine-trx=yes \
--mysql-table-engine=innodb --mysql-db=test --oltp-table-name=xxx \
--oltp-table-size=xxx --num-threads=8
2、测试结果
表记录数

prepare

transaction/s

r/w request/s

other/s

total time

100w

15.876s

2554.77

48540.71

5109.55

3.9142s

15.467s

2578.27

48987.1

5156.54

3.8786s

 

     
500w

1m27.716s

2179.69

41414.13

4359.38

4.5878s

1m24.817s

2165.17

41138.26

4330.34

4.6186s

      
1000w

3m0.816s

802.24

15242.62

1604.49

12.4650s

2m54.242s

1413.52

26856.94

2827.05

7.0745s

      
5000w

16m2.075s

297.1

5644.82

594.19

33.6592s

15m29.652s

336.98

6402.54

673.95

29.6757s

      
1 亿

32m45.385s

101.87

1935.56

203.74

98.1628s

31m35.462s

123.7

2350.31

247.4

80.8405s

raid 5

     
raid 1+0

     
小结:其实3块盘的raid5和4块盘的raid1+0的容量是一样的,想要得到更好的性能,那么就多花一块盘的前吧 :) 不过,话说回来,raid1+0最多允许同时坏2块,raid5只能一块,因此还需要增加一块热备盘,所以这么算的话,成本还是一样的。
本文出自 “MySQL中文网”博客 http://www.imysql.cn/
 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值