From: Li Lingfeng <lilingfeng@huaweicloud.com>
To: "Michal Koutný" <mkoutny@suse.com>
Cc: Tejun Heo <tj@kernel.org>,
josef@toxicpanda.com, hch@lst.de, axboe@kernel.dk,
cgroups@vger.kernel.org, linux-block@vger.kernel.org,
linux-kernel@vger.kernel.org, yangerkun@huawei.com,
yukuai1@huaweicloud.com, houtao1@huawei.com, yi.zhang@huawei.com,
lilingfeng3@huawei.com
Subject: Re: [PATCH v2] block: flush all throttled bios when deleting the cgroup
Date: Sat, 6 Jul 2024 15:21:41 +0800 [thread overview]
Message-ID: <c900fece-14a4-0b64-babb-053b38ed0dbe@huaweicloud.com> (raw)
In-Reply-To: <7kmlqdvltacofugn7tzg6ylu25louwnmvdfa64cgdrecpveow7@rxvvbduuvjlz>
在 2024/7/2 22:25, Michal Koutný 写道:
> On Fri, Jun 28, 2024 at 10:04:20AM GMT, Li Lingfeng <lilingfeng@huaweicloud.com> wrote:
>> I think it may be more appropriate to remove the limit of bios after the
>> cgroup is deleted, rather than let the bios continue to be throttled by a
>> non-existent cgroup.
> I'm not that familiar with this part -- can this also happen for IOs
> submitted by an exited task? (In contrast to a running task migrated
> elsewhere.)
Yes, IOs will be throttled no matter whether the task that delivers them
exits.
>> If the limit is set too low, and the original cgourp has been deleted, we
>> now have no way to make the bios complete immediately, but to wait for the
>> bios to slowly complete under the limit.
> It makes some sense, it's not unlike reparenting of memcg objects, IIRC
> flushed bios would actually be passed to a parent throtl_grp, right?
Yes, flushed bios would be throttled by the parent throtl_grp.
> Thanks,
> Michal
prev parent reply other threads:[~2024-07-06 7:21 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-27 14:26 Li Lingfeng
2024-06-27 20:43 ` Tejun Heo
2024-06-28 2:04 ` Li Lingfeng
2024-06-28 3:32 ` Yu Kuai
2024-07-02 14:25 ` Michal Koutný
2024-07-06 7:21 ` Li Lingfeng [this message]
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=c900fece-14a4-0b64-babb-053b38ed0dbe@huaweicloud.com \
--to=lilingfeng@huaweicloud.com \
--cc=axboe@kernel.dk \
--cc=cgroups@vger.kernel.org \
--cc=hch@lst.de \
--cc=houtao1@huawei.com \
--cc=josef@toxicpanda.com \
--cc=lilingfeng3@huawei.com \
--cc=linux-block@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mkoutny@suse.com \
--cc=tj@kernel.org \
--cc=yangerkun@huawei.com \
--cc=yi.zhang@huawei.com \
--cc=yukuai1@huaweicloud.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®