From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Morton Subject: Re: [PATCH 0/3] bdi write bandwidth estimation Date: Mon, 13 Jun 2011 15:23:30 -0700 Message-ID: <20110613152330.056e2eba.akpm@linux-foundation.org> References: <20110612151821.601514494@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: , Jan Kara , Dave Chinner , Christoph Hellwig , LKML To: Wu Fengguang Return-path: In-Reply-To: <20110612151821.601514494@intel.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Sun, 12 Jun 2011 23:18:21 +0800 Wu Fengguang wrote: > Do bdi write bandwidth estimation in the flusher thread at 200ms intervals, stdrant: anything which is paced using "seconds" is basically always wrong. The bandwidth of storage systems varies by who-knows-how-many orders of magnitude. If 200ms is correct for one system then it is vastly incorrect for another. A more suitable clock for this estimate would be "per 200 requests", for a block-based BDI. Also of course the bandwidth of a particular BDI varies vastly depending on workload. For the purpose of this work, that's probably a desirable thing.