Skip to content

md/raid5: improve IO pattern

Shaohua Li linux-raid 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3md/raid5: prioritize stripes for writebackdrivers/md/raid5.c drivers/md/raid5.h+41 -90 replies
2/3md/raid5-cache: bump flush stripe batch sizedrivers/md/raid5-cache.c+1 -14 replies
3/3md/raid5: sort biosdrivers/md/raid5.c drivers/md/raid5.h+127 -254 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3]md/raid5: improve IO pattern

Hi,

These are some patches I'm testing to improve raid5-cache performance. The basic idea is to flush a lot of stripes to raid disks and then do smart scheduling of IOs. In my test of a 12-disk raid6 array, this improves around 20% throughput and request size/disk seek are improved a lot. fio script I'm using are:

[global]
ioengine=libaio
direct=1
loops=1000
runtime=120
time_based=1
file_service_type=random:36
overwrite=1
thread=0
group_reporting=1

[test]
filename=/dev/md0
bs=4k
readwrite=randwrite
numjobs=8
offset_increment=10G

--------------------------------------------
Shaohua Li (3):
md/raid5: prioritize stripes for writeback
md/raid5-cache: bump flush stripe batch size
md/raid5: sort bios

 drivers/md/raid5-cache.c |   2 +-
 drivers/md/raid5.c       | 189 ++++++++++++++++++++++++++++++++++++++---------
 drivers/md/raid5.h       |  13 +++-
 3 files changed, 169 insertions(+), 35 deletions(-)
Signature · 1 line
2.9.3