Software-Raid

RAID 6 陣列比我的 RAID 10 陣列快得多?

  • August 21, 2017

為什麼我的 RAID-6 優於我的 RAID-10?

Synology 上具有 8x4TB RAID-10 的 Docker 容器:

[root@centos Files]# bonnie++ -d /Files/tmp -r 16G -s 32G -n 1 -f -b -u root
Using uid:0, gid:0.
Writing intelligently...done
Rewriting...done
Reading intelligently...done
start 'em...done...done...done...done...done...
Create files in sequential order...done.
Stat files in sequential order...done.
Delete files in sequential order...done.
Create files in random order...done.
Stat files in random order...done.
Delete files in random order...done.
Version  1.97       ------Sequential Output------ --Sequential Input- --Random-
Concurrency   1     -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine        Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP
centos          32G           454106  19 177752  12           336051  11 174.9   9
Latency                         637ms     437ms               271ms    1199ms
Version  1.97       ------Sequential Create------ --------Random Create--------
centos              -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
             files  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
                 1    19   1 +++++ +++    24   2    19   1 +++++ +++    23   3
Latency               401ms      63us     177ms     177ms      19us     122ms
1.97,1.97,centos,1,1503010478,32G,,,,454106,19,177752,12,,,336051,11,174.9,9,1,,,,,19,1,+++++,+++,24,2,19,1,+++++,+++,23,3,,637ms,437ms,,271ms,1199ms,401ms,63us,177ms,177ms,19us,122ms

FreeNAS 6x4TB RAID-Z2,來自監獄的 RAID-6:

root@testjail:/ # bonnie++ -d /Files/tmp -r 16G -s 32G -n 1 -f -b -u root
Using uid:0, gid:0.
Writing intelligently...done
Rewriting...done
Reading intelligently...done
start 'em...done...done...done...done...done...
Create files in sequential order...done.
Stat files in sequential order...done.
Delete files in sequential order...done.
Create files in random order...done.
Stat files in random order...done.
Delete files in random order...done.
Version  1.97       ------Sequential Output------ --Sequential Input- --Random-
Concurrency   1     -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine        Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP
testjail        32G           1158187  63 850172  70           3130981  97  7888  90
Latency                         173ms   79669us             13285us     197ms
Version  1.97       ------Sequential Create------ --------Random Create--------
testjail            -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
             files  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
                 1 +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++
Latency             19728us      41us    2506us     102us      20us     154us
1.97,1.97,testjail,1,1503021586,32G,,,,1158187,63,850172,70,,,3130981,97,7888,90,1,,,,,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,,173ms,79669us,,13285us,197ms,19728us,41us,2506us,102us,20us,154us
root@testjail:/ #

規格:16GB DDR4(2133 與 2400)

  • Synology RS3617RPxs - Intel Xeon D-1521 - 8 x WDD Red 4TB in Raid 10 - 四核 2,2(基本)/2,7(渦輪)GHz - 2 x 8 GB DDR4 ECC UDIMM
  • FreeNAS VMware VM - 1 x 16GB 已分配 RAM(共 2x16GB) - 僅 16GB NVMe 引導盤 - 6x4TB 桌面驅動器 - 很難開始工作。

我的預期是 RAIDZ2 在好日子裡寫入約 400MB/秒,因為有些驅動器真的很舊,而 RAID10 陣列約 750MB/秒。

但是raidz2似乎不可能快,而raid10似乎很慢。

我建議使用deskspeed.exe來確定您向社區展示的數字。

這篇文章應該可以幫助您調整 Synology 盒子

https://www.starwindsoftware.com/blog/synology-diskstation-ds916-turbocharged-with-starwind-virtual-san

引用自:https://serverfault.com/questions/869247