lkml.org 
[lkml]   [2011]   [Mar]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH]cfq-iosched: give busy sync queue no dispatch limit
On Fri, Mar 04, 2011 at 04:01:29PM +0800, Shaohua Li wrote:

[..]
> @@ -2412,15 +2418,31 @@ static bool cfq_may_dispatch(struct cfq_
> return false;
>
> /*
> + * If there is only one sync queue, and its think time is
> + * small, we can ignore async queue here and give the sync
> + * queue no dispatch limit. The reason is a sync queue can
> + * preempt async queue, limiting the sync queue doesn't make
> + * sense. This is useful for aiostress test.
> + */
> + if (cfq_cfqq_sync(cfqq) && cfqd->busy_sync_queues == 1) {
> + struct cfq_io_context *cic = RQ_CIC(cfqq->next_rq);
> +
> + if (sample_valid(cic->ttime_samples) &&
> + cic->ttime_mean < cfqd->cfq_slice_idle)
> + promote_sync = true;
> + }

What's the relation of think time here? Or why should we check for think
time being small. To me it does not make a difference in this case.

We have a request in existing queue and we figure out that this is the
only sync queue in the system to we let it dispatch more than quantum.
Thinktime should not even matter.

Thanks
Vivek


\
 
 \ /
  Last update: 2011-03-06 11:19    [W:0.086 / U:2.632 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site