From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933092AbcATAMB (ORCPT ); Tue, 19 Jan 2016 19:12:01 -0500 Received: from zeniv.linux.org.uk ([195.92.253.2]:50224 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932414AbcATALx (ORCPT ); Tue, 19 Jan 2016 19:11:53 -0500 Date: Wed, 20 Jan 2016 00:11:44 +0000 From: Al Viro To: Linus Torvalds Cc: Willy Tarreau , =?utf-8?B?0JzQsNGA0Log0JrQvtGA0LXQvdCx0LXRgNCz?= , Tetsuo Handa , linux-fsdevel , Linux Kernel Mailing List , lkp@intel.com Subject: Re: [PATCH v4] pipe: limit the per-user amount of pages allocated in pipes Message-ID: <20160120001144.GW17997@ZenIV.linux.org.uk> References: <1453115211-24270-1-git-send-email-w@1wt.eu> <1453131369-24538-1-git-send-email-w@1wt.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 19, 2016 at 04:07:15PM -0800, Linus Torvalds wrote: > On Mon, Jan 18, 2016 at 7:36 AM, Willy Tarreau 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? I'll pick it.