From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758741Ab0I0CE7 (ORCPT ); Sun, 26 Sep 2010 22:04:59 -0400 Received: from fgwmail6.fujitsu.co.jp ([192.51.44.36]:53956 "EHLO fgwmail6.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758701Ab0I0CE6 (ORCPT ); Sun, 26 Sep 2010 22:04:58 -0400 X-SecurityPolicyCheck-FJ: OK by FujitsuOutboundMailChecker v1.3.1 From: KOSAKI Motohiro To: KAMEZAWA Hiroyuki Subject: Re: Default zone_reclaim_mode = 1 on NUMA kernel is bad for file/email/web servers Cc: kosaki.motohiro@jp.fujitsu.com, robm@fastmail.fm, linux-kernel@vger.kernel.org, "Bron Gondwana" , linux-mm , Christoph Lameter , Mel Gorman In-Reply-To: <20100921100522.be252b3d.kamezawa.hiroyu@jp.fujitsu.com> References: <20100916184240.3BC9.A69D9226@jp.fujitsu.com> <20100921100522.be252b3d.kamezawa.hiroyu@jp.fujitsu.com> Message-Id: <20100927110417.6B34.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: Mon, 27 Sep 2010 11:04:54 +0900 (JST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Thu, 16 Sep 2010 19:01:32 +0900 (JST) > KOSAKI Motohiro wrote: > > > Yes, sadly intel motherboard turn on zone_reclaim_mode by default. and > > current zone_reclaim_mode doesn't fit file/web server usecase ;-) > > > > So, I've created new proof concept patch. This doesn't disable zone_reclaim > > at all. Instead, distinguish for file cache and for anon allocation and > > only file cache doesn't use zone-reclaim. > > > > That said, high-end hpc user often turn on cpuset.memory_spread_page and > > they avoid this issue. But, why don't we consider avoid it by default? > > > > > > Rob, I wonder if following patch help you. Could you please try it? > > > > > > Subject: [RFC] vmscan: file cache doesn't use zone_reclaim by default > > > > Hm, can't we use migration of file caches rather than pageout in > zone_reclaim_mode ? Doent' it fix anything ? Doesn't. Two problem. 1) Migration makes copy. then it's slower than zone_reclaim=0 2) Migration is only effective if target node has much free pages. but it is not generic assumption. For this case, zone_reclaim_mode=0 is best. my patch works as second best. your one works as third. If you have more concern, please let us know it.