[LTP] [PATCH v8] memcg/memcontrol05: add cgroup v2 task migration charge accounting test
Michal Koutný
mkoutny@suse.com
Fri Nov 13 11:31:24 CET 2026
On Fri, Nov 13, 2026 at 11:18:57AM +0530, pavrampu <pavrampu@linux.ibm.com> wrote:
> Thanks for the inputs, basically trying to migrate
> testcases/kernel/controllers/memctl/ test to cgroupv2
Aha, that context wasn't clear to me from the message.
It'd make sense (to me) to include removal of the migrated test in the
series.
> Depending on its applicability to v2, we can determine whether to
> proceed with this patch.
v2 doesn't have the memory.move_charge_at_immigrate switch, so it can
only test the implicit behavior of charging in v2. With such tests, I'm
always worried that it'd detect noise in test environment rather than
memcg bug (what could it be?).
From practical experience, more useful would be a test that checks that
charge reparenting [1] eventually happens (without any pins).
HTH,
Michal
[1] You can think of it like migration from child->parent after
`rmdir child` (so that in-kernel child memcg can be truly gone,
cgroup.stat:nr_dying_subsys_memory)). The challenge is that it is
quite asynchronous (again noisy) but at the moment I'd assess the
impact of such bugs more relevant to encountered bugs.
More information about the ltp
mailing list