Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752834Ab0LIP7g (ORCPT ); Thu, 9 Dec 2010 10:59:36 -0500 Received: from mail-yx0-f174.google.com ([209.85.213.174]:35800 "EHLO mail-yx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750859Ab0LIP7f (ORCPT ); Thu, 9 Dec 2010 10:59:35 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=r6gSRq5Hl07YabACy1wz2TwrlR6AGYUsjGMDD9C4ewvNXJHZPNZEWXmN7obSk8DB2g Iq7b5PJSdIBmep3nqLTT6ifhlQZIXLb056XT/G/kdd/f7VfTIophQWTxMGEIzHMO3AlB 6wN3WVoBV/TC7bJwCZ50vRPKjV3OvV8OuXeG0= Date: Fri, 10 Dec 2010 00:59:25 +0900 From: Minchan Kim To: Mel Gorman Cc: Simon Kirby , KOSAKI Motohiro , Shaohua Li , Dave Hansen , Johannes Weiner , Andrew Morton , linux-mm , linux-kernel Subject: Re: [PATCH 4/6] mm: kswapd: Reset kswapd_max_order and classzone_idx after reading Message-ID: <20101209155925.GD1740@barrios-desktop> References: <1291893500-12342-1-git-send-email-mel@csn.ul.ie> <1291893500-12342-5-git-send-email-mel@csn.ul.ie> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1291893500-12342-5-git-send-email-mel@csn.ul.ie> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 936 Lines: 21 On Thu, Dec 09, 2010 at 11:18:18AM +0000, Mel Gorman wrote: > When kswapd wakes up, it reads its order and classzone from pgdat and > calls balance_pgdat. While its awake, it potentially reclaimes at a high > order and a low classzone index. This might have been a once-off that > was not required by subsequent callers. However, because the pgdat > values were not reset, they remain artifically high while > balance_pgdat() is running and potentially kswapd enters a second > unnecessary reclaim cycle. Reset the pgdat order and classzone index > after reading. > > Signed-off-by: Mel Gorman Reviewed-by: Minchan Kim -- Kind regards, Minchan Kim -- 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/