From: fdavidl073rnovn@tutanota.com
To: Qu Wenruo <wqu@suse.com>
Cc: Linux Btrfs <linux-btrfs@vger.kernel.org>
Subject: Re: Deleting large amounts of data causes system freeze due to OOM.
Date: Thu, 14 Sep 2023 05:38:37 +0200 (CEST) [thread overview]
Message-ID: <NeGkwyI--3-9@tutanota.com> (raw)
In-Reply-To: <4b8a10e4-4df8-4d96-9c6f-fbbe85c64575@suse.com>
Sep 13, 2023, 05:55 by wqu@suse.com:
>
>
> On 2023/9/13 11:58, fdavidl073rnovn@tutanota.com wrote:
>
>> Dear Btrfs Mailing List,
>>
>> Full disclosure I reported this on kernel.org but am hoping to get more exposure on the mailing list.
>>
>> When I delete several terabytes of data memory usage increases until the system becomes entirely unresponsive. This has been an issue for several kernel version since at least 5.19 and continues to be an issue up to 6.5.2-artix1-1. This is on an older computer with several hard drives, eight gigabytes of memory, and a four core x86_64 cpu. Slabtop output right before the system becomes unresponsive shows about four gigabytes used by khugepaged_mm_slot and three used by btrfs_extent_map. This happens in over the span of a couple minutes and during this time btrfs-transaction is using a moderate amount of cpu time.
>>
>
> This looks exactly like something caused by btrfs qgroup.
>
> Could you try to disable qgroup to see if it helps?
> The amount of CPU time and IO of qgroup overhead is directly related to the amount of extent being updated.
>
> For normal writes the IO itself would take most of the CPU/memory thus qgroup is not a big deal.
> But for massive snapshots drop or file deletion qgroup can be too large to be handled in just one transaction.
>
> For now you can disable the qgroup as a workaround.
>
> Thanks,
> Qu
>
I've never enabled quotas and my most recent attempt using the single profile for data was on kernel 6.4 so they would have been disabled by default. Running "btrfs qgroup show [path]" returns "ERROR: can't list qgroups: quotas not enabled".
Sincerely,
David
next prev parent reply other threads:[~2023-09-14 3:38 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-13 2:28 Deleting large amounts of data causes system freeze due to OOM fdavidl073rnovn
2023-09-13 5:55 ` Qu Wenruo
2023-09-14 3:38 ` fdavidl073rnovn [this message]
2023-09-14 5:12 ` Qu Wenruo
2023-09-14 23:08 ` fdavidl073rnovn
2023-09-27 1:46 ` fdavidl073rnovn
2023-09-27 4:53 ` Qu Wenruo
2023-09-28 23:32 ` fdavidl073rnovn
2023-09-29 1:01 ` Qu Wenruo
2023-10-13 22:28 ` fdavidl073rnovn
2023-10-13 22:32 ` Qu Wenruo
2023-10-14 19:09 ` Chris Murphy
2023-10-14 22:10 ` Qu Wenruo
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=NeGkwyI--3-9@tutanota.com \
--to=fdavidl073rnovn@tutanota.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=wqu@suse.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.