From: Song Liu <song@kernel.org>
To: Yufen Yu <yuyufen@huawei.com>
Cc: linux-raid <linux-raid@vger.kernel.org>, Hou Tao <houtao1@huawei.com>
Subject: Re: [PATCH v7 0/3] md/raid5: set STRIPE_SIZE as a configurable value
Date: Tue, 21 Jul 2020 21:58:22 -0700 [thread overview]
Message-ID: <CAPhsuW4MQK06f6weM2NPpDRMbOdLfpfXsH75Y2V178XpD92BPw@mail.gmail.com> (raw)
In-Reply-To: <20200718092909.4020424-1-yuyufen@huawei.com>
On Sat, Jul 18, 2020 at 2:28 AM Yufen Yu <yuyufen@huawei.com> wrote:
>
> Hi, all
>
> For now, STRIPE_SIZE is equal to the value of PAGE_SIZE. That means, RAID5
> will issue each bio to disk at least 64KB when PAGE_SIZE is 64KB in arm64.
> However, filesystem usually issue bio in the unit of 4KB. Then, RAID5 may
> waste resource of disk bandwidth.
>
> To solve the problem, this patchset try to set stripe_size as a configuare
> value. The default value is 4096. We will add a new sysfs entry and set it
> by writing a new value, likely:
>
> echo 16384 > /sys/block/md1/md/stripe_size
>
> Normally, using default stripe_size can get better performance. So, NeilBrown
> have suggested just to fix the it as 4096. But, out test result shows that
> a big value of stripe_size may have better performance when size of issued
> IOs are mostly bigger than 4096. Thus, in this patchset, we still want to
> set stripe_size as a configurable value.
>
> This patchset just set STRIPE_SIZE as a configurable value for "PAGE_SIZE != 4096"
> system, likely arm64 with 'PAGE_SIZE=64KB'. It doesn't make any difference for
> 'PAGE_SIZE == 4096' system, likely x86.
>
> To save memory used by stripe_head, I will send the related optimiation patchset later.
Applied to md-next. Thanks!
prev parent reply other threads:[~2020-07-22 4:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-18 9:29 [PATCH v7 0/3] md/raid5: set STRIPE_SIZE as a configurable value Yufen Yu
2020-07-18 9:29 ` [PATCH v7 1/3] md/raid456: convert macro STRIPE_* to RAID5_STRIPE_* Yufen Yu
2020-07-18 9:29 ` [PATCH v7 2/3] md/raid5: set default stripe_size as 4096 Yufen Yu
2020-07-18 9:29 ` [PATCH v7 3/3] md/raid5: support config stripe_size by sysfs entry Yufen Yu
2020-07-22 4:58 ` Song Liu [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=CAPhsuW4MQK06f6weM2NPpDRMbOdLfpfXsH75Y2V178XpD92BPw@mail.gmail.com \
--to=song@kernel.org \
--cc=houtao1@huawei.com \
--cc=linux-raid@vger.kernel.org \
--cc=yuyufen@huawei.com \
/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;
as well as URLs for NNTP newsgroup(s).