Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753985Ab2KUJav (ORCPT ); Wed, 21 Nov 2012 04:30:51 -0500 Received: from shutemov.name ([204.155.152.216]:37560 "EHLO shutemov.name" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753308Ab2KUJas (ORCPT ); Wed, 21 Nov 2012 04:30:48 -0500 Date: Wed, 21 Nov 2012 11:30:56 +0200 From: "Kirill A. Shutemov" To: David Rientjes Cc: Glauber Costa , Anton Vorontsov , Pekka Enberg , Mel Gorman , Leonid Moiseichuk , KOSAKI Motohiro , Minchan Kim , Bartlomiej Zolnierkiewicz , John Stultz , linux-mm@kvack.org, linux-kernel@vger.kernel.org, linaro-kernel@lists.linaro.org, patches@linaro.org, kernel-team@android.com, linux-man@vger.kernel.org, KAMEZAWA Hiroyuki , Michal Hocko , Johannes Weiner , Tejun Heo Subject: Re: [RFC v3 0/3] vmpressure_fd: Linux VM pressure notifications Message-ID: <20121121093056.GA31882@shutemov.name> References: <20121115073420.GA19036@lizard.sbx05977.paloaca.wayport.net> <20121115085224.GA4635@lizard> <50A60873.3000607@parallels.com> <50A6AC48.6080102@parallels.com> <50AA3ABF.4090803@parallels.com> 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 Content-Length: 1184 Lines: 30 On Tue, Nov 20, 2012 at 10:02:45AM -0800, David Rientjes wrote: > On Mon, 19 Nov 2012, Glauber Costa wrote: > > > >> In the case I outlined below, for backwards compatibility. What I > > >> actually mean is that memcg *currently* allows arbitrary notifications. > > >> One way to merge those, while moving to a saner 3-point notification, is > > >> to still allow the old writes and fit them in the closest bucket. > > >> > > > > > > Yeah, but I'm wondering why three is the right answer. > > > > > > > This is unrelated to what I am talking about. > > I am talking about pre-defined values with a specific event meaning (in > > his patchset, 3) vs arbitrary numbers valued in bytes. > > > > Right, and I don't see how you can map the memcg thresholds onto Anton's > scheme BTW, there's interface for OOM notification in memcg. See oom_control. I guess other pressure levels can also fit to the interface. -- Kirill A. Shutemov -- 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/