Skip to content

md/raid0: Fix performance regression for large sequential IO

Jan Kara linux-raid 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2md/raid0: Factor out helper for mapping and submitting a biodrivers/md/raid0.c+40 -392 replies
2/2md/raid0: Fix performance regression for large sequential writesdrivers/md/raid0.c+1 -14 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchYu Kuai
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] md/raid0: Fix performance regression for large sequential IO

Hello,

one of our customers reported a noticeable performance regression with his raid0 setup after updating to newer kernels. After investigation of the block traces it was obvious that raid0 code generates very suboptimal IO pattern for large requests that are not properly aligned to the raid chunk boundary (see patch 2 for detailed description). The regression has been introduced already 6 years ago by commit f00d7c85be9e ("md/raid0: fix up bio splitting.") but likely because it requires multimegabyte requests (only possible after multipage bvec work) which are not aligned to the chunk boundary (which is usually possible only if the filesystems are created with suboptimal parameters) it went unnoticed for a long time. These patches fix the regression.

Honza