mm: add group_oom_kill memory.event fix
Subsystems (4)
PATCH 1/1 mm: add group_oom_kill memory.event fix
Andrew, could you please amend the prior patch "mm: add group_oom_kill memory.event" with these changes from Johannes and Chris?
Also - small nit: it makes better sense to s/group_oom_kill/oom_group_kill/g in the patch title.
Reviewed-by Roman Gushchin <[email protected]>
Acked-by Chris Down <[email protected]>
Acked-by Johannes Weiner <[email protected]>
Signed-off-by Dan Schatzberg <[email protected]>
--- Documentation/admin-guide/cgroup-v2.rst | 3 +-- mm/memcontrol.c | 3 --- 2 files changed, 1 insertion(+), 5 deletions(-)
Documentation/admin-guide/cgroup-v2.rst +1 -2
@@ -1269,8 +1269,7 @@ PAGE_SIZE multiple when read back. killed by any kind of OOM killer. oom_group_kill - The number of times all tasks in the cgroup were killed - due to memory.oom.group. + The number of times a group OOM has occurred. memory.events.local Similar to memory.events but the fields in the file are local
mm/memcontrol.c +0 -3
@@ -4390,9 +4390,6 @@ static int mem_cgroup_oom_control_read(struct seq_file *sf, void *v)seq_printf (sf,"under_oom %d\n" , (bool )memcg->under_oom);seq_printf (sf,"oom_kill %lu\n" ,atomic_long_read (&memcg->memory_events[MEMCG_OOM_KILL ])); -seq_printf (sf,"oom_group_kill %lu\n" , -atomic_long_read ( - &memcg->memory_events[MEMCG_OOM_GROUP_KILL ]));return 0 ; }
Signature · 1 line
2.30.2
Quoted 5 lines · Dan Schatzberg
Andrew, could you please amend the prior patch "mm: add
group_oom_killmemory.event" with these changes from Johannes and Chris?Also - small nit: it makes better sense to s/group_oom_kill/oom_group_kill/g in the patch title.
Agreed. This is more in line with the oom.group knob we export.
Quoted 5 lines
Reviewed-by Roman Gushchin <[email protected]>Acked-by Chris Down <[email protected]>Acked-by Johannes Weiner <[email protected]>Signed-off-by Dan Schatzberg <[email protected]>
With these changes feel free to add
Quoted 35 lines
--- Documentation/admin-guide/cgroup-v2.rst | 3 +-- mm/memcontrol.c | 3 --- 2 files changed, 1 insertion(+), 5 deletions(-)Documentation/admin-guide/cgroup-v2.rst +1
-2@@ -1269,8 +1269,7 @@ PAGE_SIZE multiple when read back. killed by any kind of OOM killer. oom_group_kill - The number of times all tasks in the cgroup were killed - due to memory.oom.group. + The number of times a group OOM has occurred. memory.events.local Similar to memory.events but the fields in the file are localmm/memcontrol.c +0
-3@@ -4390,9 +4390,6 @@ static int mem_cgroup_oom_control_read(struct seq_file *sf, void *v)seq_printf (sf,"under_oom %d\n" , (bool )memcg->under_oom);seq_printf (sf,"oom_kill %lu\n" ,atomic_long_read (&memcg->memory_events[MEMCG_OOM_KILL ])); -seq_printf (sf,"oom_group_kill %lu\n" , -atomic_long_read ( - &memcg->memory_events[MEMCG_OOM_GROUP_KILL ]));return 0 ; }Signature · 1 line
2.30.2
Signature · 2 lines
Michal Hocko SUSE Labs