From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx103.postini.com [74.125.245.103]) by kanga.kvack.org (Postfix) with SMTP id 45EE86B0072 for ; Tue, 5 Jun 2012 03:59:54 -0400 (EDT) Message-ID: <4FCDBC8E.1000705@kernel.org> Date: Tue, 05 Jun 2012 17:00:14 +0900 From: Minchan Kim MIME-Version: 1.0 Subject: Re: [PATCH 0/5] Some vmevent fixes... References: <20120601122118.GA6128@lizard> <4FCC7592.9030403@kernel.org> <20120604113811.GA4291@lizard> <20120604121722.GA2768@barrios> <20120604133527.GA13650@lizard> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Pekka Enberg Cc: Anton Vorontsov , KOSAKI Motohiro , 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 Hi Peakk, On 06/05/2012 04:53 PM, Pekka Enberg wrote: > On Mon, Jun 4, 2012 at 4:35 PM, Anton Vorontsov wrote: >>> I don't mean VMEVENT_ATTR_LOWMEM_PAGES but following as, >>> >>> VMEVENT_ATTR_NR_FREE_PAGES >>> VMEVENT_ATTR_NR_SWAP_PAGES >>> VMEVENT_ATTR_NR_AVAIL_PAGES >>> >>> I'm not sure how it is useful. >> >> Yep, these raw values are mostly useless, and personally I don't use >> these plain attributes. I use heuristics, i.e. "blended" attributes. >> If we can come up with levels-based approach w/o using vmstat, well.. >> OK then. > > That's what Nokia's lowmem notifier uses. We can probably drop them > once we have something else they could use. Next concern is that periodic timer of implementation. I think it would add direct hook in vmscan.c rather than peeking raw vmstat periodically by timer so we can control more fine-grained way without unnecessary overhead. -- Kind regards, Minchan Kim -- 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