Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754807Ab2KGLlq (ORCPT ); Wed, 7 Nov 2012 06:41:46 -0500 Received: from [204.155.152.216] ([204.155.152.216]:44847 "EHLO shutemov.name" rhost-flags-FAIL-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1751404Ab2KGLlp (ORCPT ); Wed, 7 Nov 2012 06:41:45 -0500 Date: Wed, 7 Nov 2012 13:43:22 +0200 From: "Kirill A. Shutemov" To: Pekka Enberg Cc: Anton Vorontsov , 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 Subject: Re: [RFC v3 0/3] vmpressure_fd: Linux VM pressure notifications Message-ID: <20121107114321.GA32265@shutemov.name> References: <20121107105348.GA25549@lizard> <20121107112136.GA31715@shutemov.name> 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: 1083 Lines: 25 On Wed, Nov 07, 2012 at 01:28:12PM +0200, Pekka Enberg wrote: > On Wed, Nov 7, 2012 at 1:21 PM, Kirill A. Shutemov wrote: > >> While the new API is very simple, it is still extensible (i.e. versioned). > > > > Sorry, I didn't follow previous discussion on this, but could you > > explain what's wrong with memory notifications from memcg? > > As I can see you can get pretty similar functionality using memory > > thresholds on the root cgroup. What's the point? > > Why should you be required to use cgroups to get VM pressure events to > userspace? Valid point. But in fact you have it on most systems anyway. I personally don't like to have a syscall per small feature. Isn't it better to have a file-based interface which can be used with normal file syscalls: open()/read()/poll()? -- 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/