From: Qu Wenruo <wqu@suse.com>
To: Andrei Borzenkov <arvidjaar@gmail.com>,
Johannes Thumshirn <johannes.thumshirn@wdc.com>,
Richard Weinberger <richard@nod.at>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: qgroup rescan worker makes suspend fail
Date: Sun, 20 Sep 2026 14:58:34 +0930 [thread overview]
Message-ID: <03dcccbc-35c7-4b9d-9275-17a4b4111b25@suse.com> (raw)
In-Reply-To: <bbec11f2-7ec8-4cf8-9d50-24681cdaf4bd@gmail.com>
在 2026/9/20 14:26, Andrei Borzenkov 写道:
> 20.09.2026 01:39, Qu Wenruo wrote:
>>
>> To be honest, qgroup mode is no longer recommended, except for rigid
>> subvolume layouts, and since you need rescan it's definitely the not
>> recommended case.
>>
>> The current only well known user is snapper, and we're pushing snapper
>> not to utilize qgroup by default.
>>
>> So unless you have a very clear use case, it's better just disable
>> qgroups completely.
>
> I am not aware of any other way to get true subvolume space consumption
> and thus implementing space based retention policy. "btrfs du" is hardly
> an option.
>
> If qgroup is deprecated, what are other options to get this information?
Either simple mode, or really "btrfs fi du".
Or in the future, regular quota file support.
But neither will provide the current accurate "exclusive" accounting.
Simple mode is the closest one to provide exclusive result with the
minimal overhead, but very un-instinctive values for deleted subvolumes.
"btrfs fi du" is also fine, but requires execution before getting the
result, and can be very slow for a lot of small files.
At least it won't block other btrfs operations, and can properly handle
pm suspension.
Future quota file support can only provide "reference" level accounting,
but should have minimal overhead and should require no frequent rescan
(except the initial enabling), but no "exclusive" accounting at all.
next prev parent reply other threads:[~2026-09-20 5:28 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-19 13:40 qgroup rescan worker makes suspend fail Richard Weinberger
2026-09-19 17:34 ` Johannes Thumshirn
2026-09-19 18:33 ` AW: " Richard Weinberger
2026-09-19 22:39 ` Qu Wenruo
2026-09-19 22:48 ` Qu Wenruo
2026-09-20 4:56 ` Andrei Borzenkov
2026-09-20 5:28 ` Qu Wenruo [this message]
2026-09-19 23:38 ` Qu Wenruo
2026-09-20 13:04 ` AW: " Richard Weinberger
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=03dcccbc-35c7-4b9d-9275-17a4b4111b25@suse.com \
--to=wqu@suse.com \
--cc=arvidjaar@gmail.com \
--cc=johannes.thumshirn@wdc.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=richard@nod.at \
/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