From: Hongchen Zhang <zhanghongchen@loongson.cn>
To: Tejun Heo <tj@kernel.org>
Cc: Zefan Li <lizefan.x@bytedance.com>,
Johannes Weiner <hannes@cmpxchg.org>,
cgroups@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] cgroup: wait for css offline when rmdir
Date: Tue, 31 May 2022 11:49:53 +0800 [thread overview]
Message-ID: <fbb820c5-dbcb-0f00-c365-d3c57ca27edf@loongson.cn> (raw)
In-Reply-To: <YpVo4XiIDu68w40Z@slm.duckdns.org>
On 2022/5/31 上午9:01, Tejun Heo wrote:
> Hello,
>
> On Mon, May 30, 2022 at 09:53:51AM +0800, Hongchen Zhang wrote:
>> When I test the LTP's memcg_test_3 testcase at 8 Node server,I get the
>> -ENOMEM error,which caused by no avaliable idr found in mem_cgroup_idr.
>> the reason is the use of idr in mem_cgroup_idr is too fast than the free.In
>> the specific case,the idr is used and freed cyclically,so when we rmdir one
>> cgroup dir, we can synchronize the idr free through wating for the memcg css
>> offlined,and then we can use it the next cycle.
>
> This is a micro benchmark specific problem and it doesn't make sense to
> change the overall behavior for this as the suggested change is neither
> desirable or logical. Maybe you can just incur the delay only after idr
> allocation fails and then retry?
>
> Thanks.
>
Hi Tejun,
Yes, the problem would disappear when add some reasonable delay. But I
think if we can increase the MEM_CGROUP_ID_MAX to INT_MAX.Thus the
-ENOMEM error would be never occured,even if the system is out of memory.
Thanks.
next prev parent reply other threads:[~2022-05-31 3:50 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-27 2:39 Hongchen Zhang
2022-05-27 8:46 ` kernel test robot
2022-05-27 8:48 ` Tejun Heo
2022-05-30 1:53 ` Hongchen Zhang
2022-05-31 1:01 ` Tejun Heo
2022-05-31 3:49 ` Hongchen Zhang [this message]
2022-05-31 17:19 ` Tejun Heo
2022-05-31 17:22 ` Tejun Heo
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=fbb820c5-dbcb-0f00-c365-d3c57ca27edf@loongson.cn \
--to=zhanghongchen@loongson.cn \
--cc=cgroups@vger.kernel.org \
--cc=hannes@cmpxchg.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lizefan.x@bytedance.com \
--cc=tj@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
all inboxes | Powered by JetHome®