Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1232792
| From | Eric Dumazet <eric.dumazet@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] fs, seqfile: always allow oom killer |
| Date | 2015-09-25 15:20 +0200 |
| Message-ID | <qcB4S-2t3-13@gated-at.bofh.it> (permalink) |
| References | <qcvVx-3pb-33@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] fs, seqfile: always allow oom killer Greg Thelen <gthelen@google.com> - 2015-09-25 09:50 +0200 Re: [PATCH] fs, seqfile: always allow oom killer Eric Dumazet <eric.dumazet@gmail.com> - 2015-09-25 15:20 +0200
csiph-web