From: Phil Turmel <philip@turmel.org>
To: Peter Grandi <pg@mdraid.list.sabi.co.UK>,
Linux RAID <linux-raid@vger.kernel.org>
Subject: Re: mdcheck: slow system issues
Date: Tue, 31 Mar 2020 08:14:22 -0400 [thread overview]
Message-ID: <dbbd010e-3648-c72c-ce44-ed570f6eb8be@turmel.org> (raw)
In-Reply-To: <24195.8467.378436.7747@base.ty.sabi.co.uk>
On 3/31/20 6:53 AM, Peter Grandi wrote:
>> Dear Linux folks, When `mdcheck` runs on two 100 TB software
>> RAIDs our users complain about being unable to open files in a
>> reasonable time. [...]
>> 109394518016 blocks super 1.2 level 6, 512k chunk,
>> algorithm 2 [16/16] [UUUUUUUUUUUUUUUU]
>
> Unsurprisingly it is a 16-wide RAID6 of 8TB HDDs.
With a 512k chunk. Definitely not suitable for anything but large media
file streaming.
>> [...] The article *Software RAID check - slow system issues*
>> [1] recommends to lower `dev.raid.speed_limit_max`, but the
>> RAID should easily be able to do 200 MB/s as our tests show
>> over 600 MB/s during some benchmarks.
>
> Many people have to find out the hard way that on HDDs
> sequential and random IO rates differ by "up to" two orders of
> magnitude, and that RAID6 gives an "interesting" tradeoff
> between read and write speed with random vs. sequential access.
The random/streaming threshold is proportional to the address stride on
one device--the raid sector number gap between one chunk and the next
chunk on that (approximately). Which is basically chunk * (n-2). With
so many member devices, the transition from random-access performance
and streaming performance requires that much larger accesses.
I configure any raid6 that might have some random loads with a 16k or
32k chunk size.
Finally, the stripe cache size should be optimized on the system in
question. More is generally better, unless it starves the OS of
buffers. Adjust and test, with real loads.
>> How do you run `mdcheck` in production without noticeably
>> affecting the system?
>
> Fortunately the only solution that works well is quite simple:
> replace the storage system with one with much increased
> IOPS-per-TB (that is SSDs or much smaller HDDs, 1TB or less)
> *and* switch from RAID6 to RAID10.
These are good choices too, though not cheap.
Phil
next prev parent reply other threads:[~2020-03-31 12:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-30 12:18 mdcheck: slow system issues Paul Menzel
2020-03-30 13:27 ` Reindl Harald
2020-03-30 13:38 ` Roman Mamedov
2020-03-31 10:53 ` Peter Grandi
2020-03-31 12:14 ` Phil Turmel [this message]
2020-04-01 19:50 ` Peter Grandi
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=dbbd010e-3648-c72c-ce44-ed570f6eb8be@turmel.org \
--to=philip@turmel.org \
--cc=linux-raid@vger.kernel.org \
--cc=pg@mdraid.list.sabi.co.UK \
/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