Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755709Ab1BKJ64 (ORCPT ); Fri, 11 Feb 2011 04:58:56 -0500 Received: from cn.fujitsu.com ([222.73.24.84]:56236 "EHLO song.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1750893Ab1BKJ6y (ORCPT ); Fri, 11 Feb 2011 04:58:54 -0500 Message-ID: <4D550859.80908@cn.fujitsu.com> Date: Fri, 11 Feb 2011 17:58:49 +0800 From: Gui Jianfeng User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Vivek Goyal CC: Jens Axboe , Shaohua Li , lkml , Chad Talbott , Divyesh Shah Subject: Re: [PATCH 0/6 v4] cfq-iosched: Introduce CFQ group hierarchical scheduling and "use_hierarchy" interface References: <4D5397A9.6040404@cn.fujitsu.com> <20110210183053.GD2524@redhat.com> In-Reply-To: <20110210183053.GD2524@redhat.com> X-MIMETrack: Itemize by SMTP Server on mailserver/fnst(Release 8.5.1FP4|July 25, 2010) at 2011-02-11 17:57:58, Serialize by Router on mailserver/fnst(Release 8.5.1FP4|July 25, 2010) at 2011-02-11 17:57:59, Serialize complete at 2011-02-11 17:57:59 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2763 Lines: 69 Vivek Goyal wrote: > On Thu, Feb 10, 2011 at 03:45:45PM +0800, Gui Jianfeng wrote: >> Hi >> >> Previously, I posted a patchset to add support of CFQ group hierarchical scheduling >> in the way that it puts all CFQ queues in a hidden group and schedules with other >> CFQ group under their parent. The patchset is available here, >> http://lkml.org/lkml/2010/8/30/30 >> >> Vivek think this approach isn't so instinct that we should treat CFQ queues >> and groups at the same level. Here is the new approach for hierarchical >> scheduling based on Vivek's suggestion. The most big change of CFQ is that >> it gets rid of cfq_slice_offset logic, and makes use of vdisktime for CFQ >> queue scheduling just like CFQ group does. But I still give cfqq some jump >> in vdisktime based on ioprio, thanks for Vivek to point out this. Now CFQ >> queue and CFQ group use the same scheduling algorithm. >> >> "use_hierarchy" interface is now added to switch between hierarchical mode >> and flat mode. It works as memcg. >> >> -- >> V3 -> V4 Changes: >> - Take io class into account when calculating the boost value. >> - Refine the vtime boosting logic as Vivek's Suggestion. > > Hi Gui, > > What testing did you do to make sure that this vtime boosting logic is working > and is good replacement for slice_offset() logic for cfqq? Hi Vivek, I did fio test by runing 8 threads with different ioprio. It seems patched kernel and vanilla kernel act the same behaviour. That is it doesn't play well. As I metioned in previous mail, when I disable idling, all threads become SYNC_NOIDLE, and then preempt each other, even if I start 8 threads. And reposition at the top of service tree. This's why we can't see service differetiation. > > Secondly, did you get a chance to look at chad's patch of keeping track > of previous assigned vdisktime and keeping track of genrations. I think > his patch is going to coflict with yours, so one of you will have to > make adjustments. I think both the boost logic and keeping track of generation > logic can be combined. > > if (entity->gneration_number > cfqd->active_generation) > Use_boost_logic; > else > Use_previously_assigned_vdisktime; > > > That way if we generation has changed then we really don't have a valid > vdisktime and we can use boost logic to come up with differential > vdisktime and if generation has not changed then we can continue to make > use of previous vdisktime. Ok, I'd like to take a look chad's patch. Thanks Gui > > Thanks > Vivek > -- 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/