lkml.org 
[lkml]   [2016]   [Jan]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH v4] pipe: limit the per-user amount of pages allocated in pipes
From
On Mon, Jan 18, 2016 at 7:36 AM, Willy Tarreau <w@1wt.eu> wrote:
> On no-so-small systems, it is possible for a single process to cause an
> OOM condition by filling large pipes with data that are never read. A
> typical process filling 4000 pipes with 1 MB of data will use 4 GB of
> memory. On small systems it may be tricky to set the pipe max size to
> prevent this from happening.
>
> This patch makes it possible to enforce a per-user soft limit above
> which new pipes will be limited to a single page, effectively limiting
> them to 4 kB each, as well as a hard limit above which no new pipes may
> be created for this user. T

Al, should I take this directly, or is it coming through your tree?

Linus

\
 
 \ /
  Last update: 2016-01-20 01:41    [W:0.078 / U:6.196 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site