lkml.org 
[lkml]   [2018]   [Jul]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch v4] mm, oom: fix unnecessary killing of additional processes
On Wed, 25 Jul 2018, Tetsuo Handa wrote:

> > If exit_mmap() gets preempted indefinitely before it can free any memory,
> > we are better off oom killing another process. The purpose of the timeout
> > is to give an oom victim an amount of time to free its memory and exit
> > before selecting another victim.
> >
>
> There is no point with emitting the noise.
>

If you're concerned about too many printk's to the kernel log,
oom_reap_task_mm() could store whether MMF_UNSTABLE was set or not before
attempting to reap and then only printk if this was the first oom reaping.

We lose the ability to determine if subsequent reaps freed additional
memory, but I don't suppose that's too concerning.

\
 
 \ /
  Last update: 2018-07-25 02:25    [W:0.058 / U:0.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site