[lkml]   [2021]   [Dec]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] mm: add group_oom_kill memory event
On Fri, Dec 3, 2021 at 8:24 AM Dan Schatzberg <> wrote:
> Our container agent wants to know when a container exits if it was OOM
> killed or not to report to the user. We use = 1 to
> ensure that OOM kills within the container's cgroup kill
> everything. Existing are insufficient for knowing if
> this triggered:
> 1) Our current approach reads oom_kill and reports the
> container was killed if the value is non-zero. This is erroneous in
> some cases where containers create their children cgroups with
> as such OOM kills will get counted against the
> container cgroup's oom_kill counter despite not actually OOM killing
> the entire container.
> 2) Reading will fail to identify OOM kills in leaf
> cgroups (that don't set within the container cgroup.
> This patch adds a new oom_group_kill event when
> triggers to allow userspace to cleanly identify when an entire cgroup
> is oom killed.
> Signed-off-by: Dan Schatzberg <>

So, with this patch, will you be watching oom_group_kill from or file for your use-case?

Reviewed-by: Shakeel Butt <>

 \ /
  Last update: 2021-12-04 01:47    [W:0.062 / U:0.732 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site