From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755499Ab1AMD6k (ORCPT ); Wed, 12 Jan 2011 22:58:40 -0500 Received: from mga02.intel.com ([134.134.136.20]:22019 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751845Ab1AMD6g (ORCPT ); Wed, 12 Jan 2011 22:58:36 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.60,316,1291622400"; d="scan'208";a="696294419" Date: Thu, 13 Jan 2011 11:58:31 +0800 From: Wu Fengguang To: Jan Kara Cc: Andrew Morton , Rik van Riel , Peter Zijlstra , Christoph Hellwig , Trond Myklebust , Dave Chinner , "Theodore Ts'o" , Chris Mason , Mel Gorman , KOSAKI Motohiro , Greg Thelen , Minchan Kim , linux-mm , "linux-fsdevel@vger.kernel.org" , LKML Subject: Re: [PATCH 01/35] writeback: enabling gate limit for light dirtied bdi Message-ID: <20110113035831.GA9970@localhost> References: <20101213144646.341970461@intel.com> <20101213150326.480108782@intel.com> <20110112214303.GC14260@quack.suse.cz> <20110113034401.GB7840@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110113034401.GB7840@localhost> 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 > sigh.. I've been hassled a lot by the possible disharmonies between > the bdi/global dirty limits. > > One example is the below graph, where the bdi dirty pages are > constantly exceeding the bdi dirty limit. The root cause is, > "(dirty + background) / 2" may be close to or even exceed > bdi_dirty_limit. When exceeded, the task will not get throttled at all at some time, and get hard throttled at other times. > http://www.kernel.org/pub/linux/kernel/people/wfg/writeback/tests/256M/ext3-2dd-1M-8p-191M-2.6.37-rc5+-2010-12-09-13-42/dirty-pages-200.png This graph is more obvious. However I'm no longer sure they are the exact graphs that are caused by "(dirty + background) / 2 > bdi_dirty_limit", which evaluates to TRUE after I do "[PATCH 02/35] writeback: safety margin for bdi stat error", which lowered bdi_dirty_limit by 1-2MB in that test case. http://www.kernel.org/pub/linux/kernel/people/wfg/writeback/tests/256M/btrfs-1dd-1M-8p-191M-2.6.37-rc5+-2010-12-09-14-35/dirty-pages-200.png Thanks, Fengguang