lkml.org 
[lkml]   [2015]   [Sep]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] fs, seqfile: always allow oom killer
From
Date
On Fri, 2015-09-25 at 00:43 -0700, Greg Thelen wrote:
> Since commit 5cec38ac866b ("fs, seq_file: fallback to vmalloc instead of
> oom kill processes") seq_buf_alloc() avoids calling the oom killer for
> PAGE_SIZE or smaller allocations; but larger allocations can use the oom
> killer via vmalloc(). Thus reads of small files can return ENOMEM, but
> larger files use the oom killer to avoid ENOMEM.
>
> Memory overcommit requires use of the oom killer to select a victim
> regardless of file size.
>
> Enable oom killer for small seq_buf_alloc() allocations.
>
> Signed-off-by: David Rientjes <rientjes@google.com>
> Signed-off-by: Greg Thelen <gthelen@google.com>
> ---

Acked-by: Eric Dumazet <edumazet@google.com>

Thanks guys.




\
 
 \ /
  Last update: 2015-09-25 15:21    [W:0.029 / U:1.208 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site