From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx105.postini.com [74.125.245.105]) by kanga.kvack.org (Postfix) with SMTP id D10EA6B004D for ; Tue, 8 May 2012 05:27:41 -0400 (EDT) Received: by yenm8 with SMTP id m8so7294780yen.14 for ; Tue, 08 May 2012 02:27:40 -0700 (PDT) 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 Message-ID: Subject: Re: [PATCH 3/3] vmevent: Implement special low-memory attribute From: Pekka Enberg Content-Type: text/plain; charset=ISO-8859-1 Sender: owner-linux-mm@kvack.org List-ID: 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 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, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org