public inbox for linux-raid@vger.kernel.org
 help / color / mirror / Atom feed
From: pg@mdraid.list.sabi.co.UK (Peter Grandi)
To: list Linux RAID <linux-raid@vger.kernel.org>
Subject: Re: extremely slow writes to degraded array
Date: Wed, 8 Nov 2023 16:50:51 +0000	[thread overview]
Message-ID: <25931.48235.341560.25122@petal.ty.sabi.co.uk> (raw)
In-Reply-To: <2d44a37a-ca08-4d74-ab7e-16f51a0004c4@eyal.emu.id.au>

> The same issue is still there. Short of a kernel bug, maybe
> some md settings are less than optimal.

There is no MD RAID setting to increase the IOPS-per-TB of the
storage system or to make the free list of the filesystem on top
of it less fragmented.

> I see some postings saying dirty limit should actually be lowered?

That is generally a good idea, it does not necessarily help with
the two optimizations mentioned above.
https://www.sabi.co.uk/blog/14-two.html?141010#141010

>> While the fs is at about 83% full (10TB free out of 60TB) I
>> had the array almost 100% full in the past (it was then a
>> 20TB array) and did not notice such a drastic slowdown.

The high CPU time depends on how fragmented the filesystem free
list has become over time. Bringing its usage to 100% and then
deleting a lot of files (probably many small ones) had some long
term effects on the files allocated in the newly freed areas.

>> [...] %util is not that bad, though the array is
>> significantly higher than the members, and there is still
>> much reading while writing. [...]

A minor optimization here is having a wide parity stripe to
which read-modify-write then has to happen, which optimizes
storage wait times even more for any IO smaller than the stripe.
https://www.sabi.co.uk/blog/12-thr.html?120414#120414
https://www.sabi.co.uk/blog/12-two.html?120218#120218

  reply	other threads:[~2023-11-08 16:51 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-05 23:06 extremely slow writes to degraded array eyal
2023-11-07 21:14 ` Peter Grandi
2023-11-08  1:37   ` eyal
2023-11-08  5:32     ` eyal
2023-11-08 16:50       ` Peter Grandi [this message]
2023-11-09  2:59 ` extremely slow writes to array [now not degraded] eyal
2023-11-09 13:16   ` Roger Heflin
2023-11-13  0:53     ` eyal
2023-11-13  6:54       ` Johannes Truschnigg
2023-11-13  8:06         ` eyal
2023-11-13  9:20           ` Johannes Truschnigg
2023-11-13  9:36             ` eyal
2023-11-13  9:58               ` eyal
2023-11-13 10:09                 ` Johannes Truschnigg
2023-11-13 10:31                   ` eyal
2023-11-13 12:26               ` Roger Heflin

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=25931.48235.341560.25122@petal.ty.sabi.co.uk \
    --to=pg@mdraid.list.sabi.co.uk \
    --cc=linux-raid@vger.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