[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20100727130906.GA23118@redhat.com>
Date: Tue, 27 Jul 2010 09:09:07 -0400
From: Vivek Goyal <vgoyal@...hat.com>
To: Gui Jianfeng <guijianfeng@...fujitsu.com>
Cc: linux-kernel@...r.kernel.org, jaxboe@...ionio.com,
nauman@...gle.com, dpshah@...gle.com, jmoyer@...hat.com,
czoccolo@...il.com
Subject: Re: [PATCH 2/5] cfq-iosched: Implment IOPS mode for group scheduling
On Tue, Jul 27, 2010 at 01:47:39PM +0800, Gui Jianfeng wrote:
[..]
> > @@ -913,19 +927,21 @@ static void cfq_group_served(struct cfq_data *cfqd, struct cfq_group *cfqg,
> > struct cfq_queue *cfqq)
> > {
> > struct cfq_rb_root *st = &cfqd->grp_service_tree;
> > - unsigned int used_sl, charge_sl;
> > + unsigned int used_sl, charge;
> > int nr_sync = cfqg->nr_cfqq - cfqg_busy_async_queues(cfqd, cfqg)
> > - cfqg->service_tree_idle.count;
> >
> > BUG_ON(nr_sync < 0);
> > - used_sl = charge_sl = cfq_cfqq_slice_usage(cfqq);
> > + used_sl = charge = cfq_cfqq_slice_usage(cfqq);
> >
> > - if (!cfq_cfqq_sync(cfqq) && !nr_sync)
> > - charge_sl = cfqq->allocated_slice;
> > + if (iops_mode(cfqd))
> > + charge = cfqq->slice_dispatch;
>
> Hi Vivek,
>
> At this time, requests may still stay in dispatch list, shall we add a new variable
> in cfqq to keep track of the number of requests that go into driver, and charging
> this number?
>
Hi Gui,
How does that help. Even if request is in dispatch list, sooner or later
it will be dispatched. As long as we can make sure that requests in
dispatch list are in proportion to group weights, things should be just
fine.
Thanks
Vivek
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists