Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753084AbYKROii (ORCPT ); Tue, 18 Nov 2008 09:38:38 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751501AbYKROi3 (ORCPT ); Tue, 18 Nov 2008 09:38:29 -0500 Received: from ms01.sssup.it ([193.205.80.99]:33970 "EHLO sssup.it" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751076AbYKROi2 (ORCPT ); Tue, 18 Nov 2008 09:38:28 -0500 Date: Tue, 18 Nov 2008 15:41:39 +0100 From: Fabio Checconi To: Vivek Goyal Cc: Nauman Rafique , Li Zefan , Divyesh Shah , Ryo Tsuruta , linux-kernel@vger.kernel.org, containers@lists.linux-foundation.org, virtualization@lists.linux-foundation.org, jens.axboe@oracle.com, taka@valinux.co.jp, righi.andrea@gmail.com, s-uchida@ap.jp.nec.com, fernando@oss.ntt.co.jp, balbir@linux.vnet.ibm.com, akpm@linux-foundation.org, menage@google.com, ngupta@google.com, riel@redhat.com, jmoyer@redhat.com, peterz@infradead.org, paolo.valente@unimore.it Subject: Re: [patch 0/4] [RFC] Another proportional weight IO controller Message-ID: <20081118144139.GE15268@gandalf.sssup.it> References: <20081113214642.GG7542@redhat.com> <20081114160525.GE24624@redhat.com> <20081117142309.GA15564@redhat.com> <4922224A.5030502@cn.fujitsu.com> <20081118120508.GD15268@gandalf.sssup.it> <20081118140751.GA4283@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20081118140751.GA4283@redhat.com> User-Agent: Mutt/1.4.2.3i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2415 Lines: 53 > From: Vivek Goyal > Date: Tue, Nov 18, 2008 09:07:51AM -0500 > > On Tue, Nov 18, 2008 at 01:05:08PM +0100, Fabio Checconi wrote: ... > > I have to think a little bit on how it would be possible to support > > an option for time-only budgets, coexisting with the current behavior, > > but I think it can be done. > > > > IIUC, bfq and cfq are different in following manner. > > a. BFQ employs WF2Q+ for fairness and CFQ employes weighted round robin. > b. BFQ uses the budget (sector count) as notion of service and CFQ uses > time slices. > c. BFQ supports hierarchical fair queuing and CFQ does not. > > We are looking forward for implementation of point C. Fabio seems to > thinking of supporting time slice as a service (B). It seems like > convergence of CFQ and BFQ except the point A (WF2Q+ vs weighted round > robin). > > It looks like WF2Q+ provides tighter service bound and bfq guys mention > that they have been able to ensure throughput while ensuring tighter > bounds. If that's the case, does that mean BFQ is a replacement for CFQ > down the line? > BFQ started from CFQ, extending it in the way you correctly describe, so it is indeed very similar. There are also some minor changes to locking, cic handling, hw_tag detection and to the CIC_SEEKY heuristic. The two schedulers share similar goals, and in my opinion BFQ can be considered, in the long term, a CFQ replacement; *but* before talking about replacing CFQ we have to consider that: - it *needs* review and testing; we've done our best, but for sure it's not enough; review and testing are never enough; - the service domain fairness, which was one of our objectives, requires some extra complexity; the mechanisms we used and the design choices we've made may not fit all the needs, or may not be as generic as the simpler CFQ's ones; - CFQ has years of history behind and has been tuned for a wider variety of environments than the ones we've been able to test. If time-based fairness is considered more robust and the loss of service-domain fairness is not a problem, then the two schedulers can be made even more similar. -- 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/