我有/和/ home的软件raid 1,似乎我没有获得正确的速度.
从md0读取我大约100 MB /秒
从sda或sdb读取我大约95-105 MB /秒
我以为我会从两个驱动器获得更快的速度(同时读取数据).我不知道是什么问题.
我正在使用内核2.6.31-18
hdparm -tT /dev/md0
/dev/md0: Timing cached reads: 2078
MB in 2.00 seconds = 1039.72 MB/sec
Timing buffered disk reads: 304 MB in
3.01 seconds = 100.96 MB/sechdparm -tT /dev/sda
/dev/sda: Timing cached reads: 2084
MB in 2.00 seconds = 1041.93 MB/sec
Timing buffered disk reads: 316 MB in
3.02 seconds = 104.77 MB/sechdparm -tT /dev/sdb
/dev/sdb: Timing cached reads: 2150
MB in 2.00 seconds = 1075.94 MB/sec
Timing buffered disk reads: 302 MB in
3.01 seconds = 100.47 MB/sec
编辑:
突袭1
解决方法
在nixCraf,HowTo: Speed Up Linux Software Raid Building And Re-syncing上查看以下文章.
它解释了/ proc中可以调整以影响软件raid速度的不同设置. (不仅仅是在标题建议的构建/同步过程中.)