From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anton Vorontsov Subject: Re: [RFC v2 0/2] vmevent: A bit reworked pressure attribute + docs + man page Date: Thu, 25 Oct 2012 02:23:05 -0700 Message-ID: <20121025092305.GA32417@lizard> References: <20121022111928.GA12396@lizard> <20121025064009.GA15767@bbox> <20121025090813.GA16078@lizard> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Return-path: Content-Disposition: inline In-Reply-To: <20121025090813.GA16078@lizard> Sender: owner-linux-mm@kvack.org To: Minchan Kim Cc: Mel Gorman , Pekka Enberg , 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, linux-man@vger.kernel.org List-Id: linux-man@vger.kernel.org On Thu, Oct 25, 2012 at 02:08:14AM -0700, Anton Vorontsov wrote: [...] > Maybe it makes sense to implement something like PRESSURE_MILD with an > additional nr_pages threshold, which basically hits the kernel about how > many easily reclaimable pages userland has (that would be a part of our > definition for the mild pressure level). So, essentially it will be > > if (pressure_index >= oom_level) > return PRESSURE_OOM; > else if (pressure_index >= med_level) > return PRESSURE_MEDIUM; > else if (userland_reclaimable_pages >= nr_reclaimable_pages) > return PRESSURE_MILD; ...or we can call it PRESSURE_BALANCE, just to be precise and clear. -- 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/ . Don't email: email@kvack.org