From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751526Ab0KIDSy (ORCPT ); Mon, 8 Nov 2010 22:18:54 -0500 Received: from fgwmail6.fujitsu.co.jp ([192.51.44.36]:53312 "EHLO fgwmail6.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750939Ab0KIDSx (ORCPT ); Mon, 8 Nov 2010 22:18:53 -0500 X-SecurityPolicyCheck-FJ: OK by FujitsuOutboundMailChecker v1.3.1 From: KOSAKI Motohiro To: Andrea Arcangeli Subject: Re: [PATCH 01 of 66] disable lumpy when compaction is enabled Cc: kosaki.motohiro@jp.fujitsu.com, linux-mm@kvack.org, Linus Torvalds , Andrew Morton , linux-kernel@vger.kernel.org, Marcelo Tosatti , Adam Litke , Avi Kivity , Hugh Dickins , Rik van Riel , Mel Gorman , Dave Hansen , Benjamin Herrenschmidt , Ingo Molnar , Mike Travis , KAMEZAWA Hiroyuki , Christoph Lameter , Chris Wright , bpicco@redhat.com, Balbir Singh , "Michael S. Tsirkin" , Peter Zijlstra , Johannes Weiner , Daisuke Nishimura , Chris Mason , Borislav Petkov In-Reply-To: References: Message-Id: <20101109121318.BC51.A69D9226@jp.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.50.07 [ja] Date: Tue, 9 Nov 2010 12:18:49 +0900 (JST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > From: Andrea Arcangeli > > Compaction is more reliable than lumpy, and lumpy makes the system unusable > when it runs. > > Signed-off-by: Andrea Arcangeli > --- > > diff --git a/mm/vmscan.c b/mm/vmscan.c > --- a/mm/vmscan.c > +++ b/mm/vmscan.c > @@ -274,6 +274,7 @@ unsigned long shrink_slab(unsigned long > static void set_lumpy_reclaim_mode(int priority, struct scan_control *sc, > bool sync) > { > +#ifndef CONFIG_COMPACTION > enum lumpy_mode mode = sync ? LUMPY_MODE_SYNC : LUMPY_MODE_ASYNC; > > /* > @@ -294,11 +295,14 @@ static void set_lumpy_reclaim_mode(int p > sc->lumpy_reclaim_mode = mode; > else > sc->lumpy_reclaim_mode = LUMPY_MODE_NONE; > +#endif > } I'm talking very personal thing now. I'm usually testing both feature. Then, runtime switching makes my happy :-) However I don't know what are you and Mel talking and agree about this. So, If many developer prefer this approach, I don't oppose anymore. But, I bet almost all distro choose CONFIG_COMPACTION=y. then, lumpy code will become nearly dead code. So, I like just kill than dead code. however it is also only my preference. ;)