From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754375Ab3AKGNe (ORCPT ); Fri, 11 Jan 2013 01:13:34 -0500 Received: from mail-ob0-f175.google.com ([209.85.214.175]:44925 "EHLO mail-ob0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751549Ab3AKGNd (ORCPT ); Fri, 11 Jan 2013 01:13:33 -0500 Date: Thu, 10 Jan 2013 22:09:59 -0800 From: Anton Vorontsov To: Minchan Kim Cc: David Rientjes , Pekka Enberg , Mel Gorman , Glauber Costa , Michal Hocko , "Kirill A. Shutemov" , Luiz Capitulino , Andrew Morton , Greg Thelen , Leonid Moiseichuk , KOSAKI Motohiro , 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 Subject: Re: [PATCH 1/2] Add mempressure cgroup Message-ID: <20130111060959.GA22981@lizard.gateway.2wire.net> References: <20130104082751.GA22227@lizard.gateway.2wire.net> <1357288152-23625-1-git-send-email-anton.vorontsov@linaro.org> <20130108084949.GD4714@blaptop> <20130109221449.GA14880@lizard.fhda.edu> <20130111051210.GC6183@blaptop> <20130111053831.GA18053@lizard.gateway.2wire.net> <20130111055614.GD6183@blaptop> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20130111055614.GD6183@blaptop> 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 Fri, Jan 11, 2013 at 02:56:15PM +0900, Minchan Kim wrote: [...] > > Ahh. You're talking about the shrinker interface. Yes, there is no way to > > tell if the freed memory will be actually "released" (and if not, then > > yes, we released it unnecessary). > > I don't tell about actually "released" or not. > I assume application actually release pages but the pages would be another > zones, NOT targetted zone from kernel. In case of that, kernel could ask > continuously until target zone has enough free memory. [...] > > isolate task to only some nodes/zones, if we really care about precise > > accounting?). But I'm surely open for ideas. :) > > My dumb idea is only notify to user when reclaim is triggered by > __GFP_HIGHMEM|__GFP_MOVABLE which is most gfp_t for application memory. :) Ah, I see. Sure, that will help a lot. I'll try to incorporate this into the next iteration. But there are still unresolved accounting issues that I outlined, and I don't think that they are this easy to solve. :) Thanks! Anton