Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753368Ab0GZDRt (ORCPT ); Sun, 25 Jul 2010 23:17:49 -0400 Received: from mga01.intel.com ([192.55.52.88]:15634 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753288Ab0GZDRs (ORCPT ); Sun, 25 Jul 2010 23:17:48 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.55,259,1278313200"; d="scan'208";a="589612824" Date: Mon, 26 Jul 2010 11:17:44 +0800 From: Wu Fengguang To: Rik van Riel Cc: KOSAKI Motohiro , Mel Gorman , Christoph Hellwig , "linux-kernel@vger.kernel.org" , "linux-fsdevel@vger.kernel.org" , "linux-mm@kvack.org" , Dave Chinner , Chris Mason , Nick Piggin , Johannes Weiner , KAMEZAWA Hiroyuki , Andrew Morton , Andrea Arcangeli , Minchan Kim Subject: Re: [PATCH 7/8] writeback: sync old inodes first in background writeback Message-ID: <20100726031744.GA9489@localhost> References: <20100723094515.GD5043@localhost> <20100723105719.GE5300@csn.ul.ie> <20100725192955.40D5.A69D9226@jp.fujitsu.com> <20100726030813.GA7668@localhost> <4C4CFCE9.8070303@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4C4CFCE9.8070303@redhat.com> 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: 1281 Lines: 30 On Mon, Jul 26, 2010 at 11:11:37AM +0800, Rik van Riel wrote: > On 07/25/2010 11:08 PM, Wu Fengguang wrote: > > > We do need some throttling under memory pressure. However stall time > > more than 1s is not acceptable. A simple congestion_wait() may be > > better, since it waits on _any_ IO completion (which will likely > > release a set of PG_reclaim pages) rather than one specific IO > > completion. This makes much smoother stall time. > > wait_on_page_writeback() shall really be the last resort. > > DEF_PRIORITY/3 means 1/16=6.25%, which is closer. > > I agree with the max 1 second stall time, but 6.25% of > memory could be an awful lot of pages to scan on a system > with 1TB of memory :) I totally ignored the 1TB systems out of this topic, because in such systems, Not sure what the best approach is, just pointing out > that DEF_PRIORITY/3 may be too much for large systems... What if DEF_PRIORITY/3 is used under PAGE_ALLOC_COSTLY_ORDER? Thanks, Fengguang -- 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/