The patch titled Subject: mm-oom-docs-describe-the-cgroup-aware-oom-killer-fix has been removed from the -mm tree. Its filename was mm-oom-docs-describe-the-cgroup-aware-oom-killer-fix.patch This patch was dropped because it was folded into mm-oom-docs-describe-the-cgroup-aware-oom-killer.patch ------------------------------------------------------ From: Roman Gushchin <guro@xxxxxx> Subject: mm-oom-docs-describe-the-cgroup-aware-oom-killer-fix Add a note that cgroup-aware OOM logic is disabled by default and describe how to enable it. Link: http://lkml.kernel.org/r/20171201170149.GB27436@xxxxxxxxxxxxxxxxxxxxxxxxxxx Signed-off-by: Roman Gushchin <guro@xxxxxx> Cc: Michal Hocko <mhocko@xxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- Documentation/admin-guide/cgroup-v2.rst | 9 +++++++++ 1 file changed, 9 insertions(+) --- a/Documentation/admin-guide/cgroup-v2.rst~mm-oom-docs-describe-the-cgroup-aware-oom-killer-fix +++ a/Documentation/admin-guide/cgroup-v2.rst @@ -1092,6 +1092,9 @@ PAGE_SIZE multiple when read back. and will never kill the unkillable task, even if memory.oom_group is set. + If cgroup-aware OOM killer is not enabled, ENOTSUPP error + is returned on attempt to access the file. + memory.events A read-only flat-keyed file which exists on non-root cgroups. The following entries are defined. Unless specified @@ -1322,6 +1325,12 @@ OOM Killer Cgroup v2 memory controller implements a cgroup-aware OOM killer. It means that it treats cgroups as first class OOM entities. +Cgroup-aware OOM logic is turned off by default and requires +passing the "groupoom" option on mounting cgroupfs. It can also +by remounting cgroupfs with the following command:: + + # mount -o remount,groupoom $MOUNT_POINT + Under OOM conditions the memory controller tries to make the best choice of a victim, looking for a memory cgroup with the largest memory footprint, considering leaf cgroups and cgroups with the _ Patches currently in -mm which might be from guro@xxxxxx are mm-introduce-mem_cgroup_put-helper.patch mm-oom-refactor-the-oom_kill_process-function.patch mm-implement-mem_cgroup_scan_tasks-for-the-root-memory-cgroup.patch mm-oom-cgroup-aware-oom-killer.patch mm-oom-introduce-memoryoom_group.patch mm-oom-add-cgroup-v2-mount-option-for-cgroup-aware-oom-killer.patch mm-oom-docs-describe-the-cgroup-aware-oom-killer.patch cgroup-list-groupoom-in-cgroup-features.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html