From: NeilBrown <neilb@suse.de>
To: Sebastian Riemer <sebastian.riemer@profitbricks.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: Reason for md raid1 max_sectors_kb limited to 127?
Date: Mon, 7 May 2012 21:18:46 +1000 [thread overview]
Message-ID: <20120507211846.789d5808@notabene.brown> (raw)
In-Reply-To: <4FA798D7.4070506@profitbricks.com>
[-- Attachment #1: Type: text/plain, Size: 915 bytes --]
On Mon, 07 May 2012 11:41:43 +0200 Sebastian Riemer
<sebastian.riemer@profitbricks.com> wrote:
> Hi list,
>
> I'm wondering why max_sectors_kb is set to 127 with md raid1.
> This value is at 512 on normal HDDs.
>
> If I do a file copy on ext4 on a normal HDD then I can see with
> blktrace/blkparse that 128 KiB chunks are read and 512 KiB chunks are
> written.
>
> With md raid it looks like this: 124 KiB, 4 KiB, 124 KiB, 4 KiB, ... .
> This looks very inefficient.
>
> So, is there a particular reason that max_sectors_kb is set to 127?
>
> Cheers,
> Sebastian
>
You didn't say which kernel you are running.
However md/raid1 bases all those settings on the minimum or maximum (as
appropriate) of the setting of the underlying devices, using blk_stack_limits
(in block/blk-settings.c).
So the likely answer is that one of your HDDs has a smaller max_sectors_kb?
NeilBrown
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
next prev parent reply other threads:[~2012-05-07 11:18 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-07 9:41 Reason for md raid1 max_sectors_kb limited to 127? Sebastian Riemer
2012-05-07 11:18 ` NeilBrown [this message]
2012-05-07 11:34 ` Sebastian Riemer
2012-05-07 14:04 ` Bernd Schubert
2012-05-07 14:14 ` Sebastian Riemer
[not found] ` <CABYL=ToyVwRGOkVs63iBgfWeTsjDQ=ofsYC4hgAVpABrWbHUjA@mail.gmail.com>
2012-05-07 14:47 ` Bernd Schubert
2012-05-07 15:33 ` Sebastian Riemer
2012-05-07 16:13 ` Bernd Schubert
-- strict thread matches above, loose matches on Subject: below --
2012-05-08 16:07 Sebastian Riemer
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=20120507211846.789d5808@notabene.brown \
--to=neilb@suse.de \
--cc=linux-raid@vger.kernel.org \
--cc=sebastian.riemer@profitbricks.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).