Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752265Ab2EHJ1m (ORCPT ); Tue, 8 May 2012 05:27:42 -0400 Received: from mail-gg0-f174.google.com ([209.85.161.174]:33656 "EHLO mail-gg0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751466Ab2EHJ1l (ORCPT ); Tue, 8 May 2012 05:27:41 -0400 MIME-Version: 1.0 In-Reply-To: <4FA8DA23.3030609@kernel.org> References: <20120501132409.GA22894@lizard> <20120501132620.GC24226@lizard> <4FA35A85.4070804@kernel.org> <20120504073810.GA25175@lizard> <20120507121527.GA19526@lizard> <4FA82056.2070706@gmail.com> <4FA8DA23.3030609@kernel.org> Date: Tue, 8 May 2012 12:27:40 +0300 X-Google-Sender-Auth: E2GiTy3eIIQrnDFpHZrWIqD_nA4 Message-ID: Subject: Re: [PATCH 3/3] vmevent: Implement special low-memory attribute From: Pekka Enberg To: Minchan Kim Cc: KOSAKI Motohiro , Anton Vorontsov , Leonid Moiseichuk , John Stultz , linux-mm@kvack.org, linux-kernel@vger.kernel.org, linaro-kernel@lists.linaro.org, patches@linaro.org, kernel-team@android.com Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1102 Lines: 23 On Tue, May 8, 2012 at 11:32 AM, Minchan Kim wrote: > The idea is that we can make some levels in advane and explain it to user > > Level 1: It a immediate response to user when kernel decide there are not fast-reclaimable pages any more. > Level 2: It's rather slower response than level 1 but kernel will consider it as reclaimable target > Level 3: It's slowest response because kernel will consider page needed long time to reclaim as reclaimable target. > > It doesn't expose any internal of kernel and can implment it in internal. > For simple example, > > Level 1: non-mapped clean page > Level 2: Level 1 + mapped clean-page > Level 3: Level 2 + dirty pages > > So users of vmevent_fd can select his level. I'm totally OK with pursuing something like this if people like Leonid and Anton think it's useful for their use-cases. -- 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/