[LTP] [PATCH v2] controllers/memcg: Add testcase for kmem_limit_in_bytes of memory cgroup

Richard Palethorpe rpalethorpe@suse.de
Wed Apr 14 12:00:56 CEST 2021


Hello,

zhaogongyi <zhaogongyi@huawei.com> writes:

> Hi Richard,
>
> Calling setpgid in this testcase is aim to make the task group be controlled by memory.kmem.limit_in_bytes since we have set the pgid to cgroup.procs.
>

Please see cgroup_procs_write_start in cgroup/cgroup.c. It calls
find_task_by_vpid which interprets pid as PIDTYPE_PID not PIDTYPE_PGID.

-- 
Thank you,
Richard.


More information about the ltp mailing list