虚机环境下Raid卡strip size选择64k还是1ms

本文详细比较了Dell PowerEdge R740服务器中,使用64K和1MB条带大小(stripsize)对磁盘读写速度的影响,结果显示1MB条带在各种场景下有显著的速度提升。通过实例和测试数据,展示了选择1MBstripsize在大数据操作和并发访问中的优势。

开发板推荐:天空星STM32F407VET6开发板

超高性价比 STM32主控 | 超高主频 | 一板兼容百芯 | 比赛神器 | 沉金彩色丝印

Raid卡strip size选择64k还是1ms

从物理服务器安装系统时候要做raid卡的设置,会涉及raid卡的strip size大小选择。经过磁盘读写速度的测试,建议选择最大的strip size 1ms,测试过程及数据如下.

以Dell PowerEdge R740 服务器为例. 开机等出现Ctrl + R 提示,进入Raid配置界面。

进入raid配置界面,定位到如图位置,

按F2,创建VM。如果有现存的Raid,确保数据不再使用后,需要删除现有raid,再创建新raid。

选择你想要建的raid类型,ikang一般选择raid10,选择所有磁盘。选择advanced

在这里需要把strip size选择为1MB,选择OK,退出重启,继而进行下一步安装操作系统。略过。

 测试对比数据:

实验环境: 服务器型号为Dell PowerEdge R740 CPU Intel(R) Xeon(R) Silver 4114 CPU @ 2.20GHz 内存256GB DDR-4 ,磁盘 INTEL SSDSC2KB96 1TB*8 ,安装虚拟化产品为promox Virtual Environment 6.4-4,VM分配CPU为2核,内存4GB。

strip size

文件块大小

个数

消耗时间 s

速度

结果

time dd if=/dev/zero of=test.file bs=50M count=10 oflag=direct

1st VM  64K

50M

10

0.418842

1.3 GB/s

VM

2nd VM  1M

50M

10

0.356269

1.5 GB/s

4G 2核

time dd if=/dev/zero of=test.file bs=1G count=2 oflag=direct

dd

1st VM  64K

1GB

2

1.82414

1.2 GB/s

2nd VM  1M

1GB

2

1.62568

1.3 GB/s

time dd if=/dev/zero of=test.file bs=1K count=2000 oflag=direct

1st VM  64K

1K

2000

0.362961

5.6 MB/s

2nd VM  1M

1K

2000

0.308021

6.6 MB/s

strip size

文件块大小

size

写速度

读速度

结果

读速度差异

写速度差异

fio -filename=/dev/sda3 -direct=1 -iodepth 1 -thread -rw=randrw -rwmixread=70 -ioengine=psync -bs=50m -size=2G -numjobs=10 -runtime=60 -group_reporting -name=test_r_w -ioscheduler=noop -allow_mounted_write=1

1st VM  64K

50M

2G

1987MB/s

3731MB/s

Vm 4G 2核

2nd VM  1M

50M

2G

2059MB/s

3867MB/s

136

72

fio混合随机读写:

fio -filename=/dev/sda3 -direct=1 -iodepth 1 -thread -rw=randrw -rwmixread=70 -ioengine=psync -bs=200m -size=2G -numjobs=10 -runtime=60 -group_reporting -name=test_r_w -ioscheduler=noop -allow_mounted_write=1

1st VM  64K

200MB

2G

1871MB/s

3800MB/s

2nd VM  1M

200MB

2G

2044MB/s

4151MB/s

351

173

fio -filename=/dev/sda3 -direct=1 -iodepth 1 -thread -rw=randrw -rwmixread=70 -ioengine=psync -bs=16k -size=2G -numjobs=10 -runtime=60 -group_reporting -name=test_r_w -ioscheduler=noop -allow_mounted_write=1

1st VM  64K

16K

2G

324MB/s

756MB/s

2nd VM  1M

16K

2G

363MB/s

847MB/s

91

39

开发板推荐:天空星STM32F407VET6开发板

超高性价比 STM32主控 | 超高主频 | 一板兼容百芯 | 比赛神器 | 沉金彩色丝印

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值