Re: [PATCH] fs, seqfile: always allow oom killer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
> Signed-off-by: Greg Thelen <gthelen@xxxxxxxxxx>
> ---

Acked-by: Eric Dumazet <edumazet@xxxxxxxxxx>

Thanks guys.


--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux