mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Yu Kuai" <yukuai@fnnas.com>
To: <hch@infradead.org>, <song@kernel.org>, <yukuai@fnnas.com>
Cc: <linux-raid@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
	 <linan122@huawei.com>
Subject: Re: [PATCH] md/raid5: set chunk_sectors to enable full stripe I/O splitting
Date: Wed, 4 Mar 2026 10:36:57 +0800	[thread overview]
Message-ID: <006cdd15-cd4e-48bc-8f7d-010299b84b53@fnnas.com> (raw)
In-Reply-To: <20260223035834.3132498-1-yukuai@fnnas.com>

在 2026/2/23 11:58, Yu Kuai 写道:

> Set chunk_sectors to the full stripe width (io_opt) so that the block
> layer splits I/O at full stripe boundaries. This ensures that large
> writes are aligned to full stripes, avoiding the read-modify-write
> overhead that occurs with partial stripe writes in RAID-5/6.
>
> When chunk_sectors is set, the block layer's bio splitting logic in
> get_max_io_size() uses blk_boundary_sectors_left() to limit I/O size
> to the boundary. This naturally aligns split bios to full stripe
> boundaries, enabling more efficient full stripe writes.
>
> Test results with 24-disk RAID5 (chunk_size=64k):
>    dd if=/dev/zero of=/dev/md0 bs=10M oflag=direct
>    Before: 461 MB/s
>    After:  520 MB/s  (+12.8%)
>
> Suggested-by: Christoph Hellwig<hch@infradead.org>
> Signed-off-by: Yu Kuai<yukuai@fnnas.com>
> ---
>   drivers/md/raid5.c | 1 +
>   1 file changed, 1 insertion(+)

Applied to md-7.0

-- 
Thansk,
Kuai

      parent reply	other threads:[~2026-03-04  2:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-23  3:58 Yu Kuai
2026-02-23  7:26 ` Paul Menzel
2026-03-04  2:36   ` Yu Kuai
2026-02-23 14:05 ` Christoph Hellwig
2026-03-04  2:36 ` Yu Kuai [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=006cdd15-cd4e-48bc-8f7d-010299b84b53@fnnas.com \
    --to=yukuai@fnnas.com \
    --cc=hch@infradead.org \
    --cc=linan122@huawei.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-raid@vger.kernel.org \
    --cc=song@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®