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: Tue, 7 Nov 2023 21:14:41 +0000 [thread overview]
Message-ID: <25930.43201.247015.388374@petal.ty.sabi.co.uk> (raw)
In-Reply-To: <eb9a7323-f955-4b1c-b1c4-7f0723078c42@eyal.emu.id.au>
> 7 disks raid6 array(*1). boot, root and swap on a separate
> SSD. [...] One disk was removed recently and sent for
> replacement. The system felt OK but a few days later I noticed
> an issue... I started copying the full dataset (260GB 8,911k
> files). [...] 4GB (system limit) dirty blocks were created,
> which took 12h to clear.
The MD RAID set is performing well as designed. The achievable
speed is very low except on special workloads, but that low
speed is still good performance for that design, which is close
to optimal for maximizing wait times on your workload.
Maximizing storage wait times is a common optimization in many
IT places.
https://www.sabi.co.uk/blog/17-one.html?170610#170610
https://www.sabi.co.uk/blog/15-one.html?150305#150305
> [...] The copy completed fast but the kthread took about 1.5
> hours at 100%CPU to clear the dirty blocks.
> - When copying more files (3-5GB) the rsync was consuming
> 100%CPU and started pausing every few files (then killed). A
> - 'dd if=/dev/zero of=/data1/no-backup/old-backups/100GB'
> completed quickly, no issues. [...]
[...]
> + 100.00% 1.60% [kernel] [k] ext4_mb_regular_allocator
> + 67.08% 5.93% [kernel] [k] ext4_mb_find_good_group_avg_frag_lists
> + 62.47% 42.34% [kernel] [k] ext4_mb_good_group
> + 22.51% 11.36% [kernel] [k] ext4_get_group_info
> + 19.70% 10.80% [kernel] [k] ext4_mb_scan_aligned
My guess is that the filesystem residing on that RAID set is
nearly full, has lots of fragmentation, has lots of small files
and likely two out of three or even all three. Those are also
common optimizations used in many IT places to maximize storage
wait times.
https://www.techrepublic.com/forums/discussions/low-disk-performance-after-reching-75-of-disk-space/
https://www.spinics.net/lists/linux-ext4/msg26470.html
next prev parent reply other threads:[~2023-11-07 21:49 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 [this message]
2023-11-08 1:37 ` eyal
2023-11-08 5:32 ` eyal
2023-11-08 16:50 ` Peter Grandi
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=25930.43201.247015.388374@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