public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3]CFQ: add think time check for service tree and group
@ 2011-07-04  5:36 Shaohua Li
  2011-07-11  5:44 ` Shaohua Li
  0 siblings, 1 reply; 4+ messages in thread
From: Shaohua Li @ 2011-07-04  5:36 UTC (permalink / raw)
  To: lkml; +Cc: Jens Axboe, Vivek Goyal

Hi,
  Currently when the last queue of a service tree/group is empty, CFQ
doesn't expire the queue. This is to allow requests from the tree/group
come soon, so tree/group doesn't miss its share. But if the think time
is big, the assumption isn't correct. idling the queue is just wasting
bandwidth.

Originally I was hoping this can resolve Vivek's fsync issue, but it
doesn't. The fsync issue is caused by queue idling. But since think time
check only helps for think time above default queue idle time (8ms),
think time check doesn't help.

On the other hand, think time check is still helpful for queues with
think time. I had test case in follow patches show throughput
improvement without sacrifice tree/group shares.

Thanks,
Shaohua


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/3]CFQ: add think time check for service tree and group
  2011-07-04  5:36 [PATCH 0/3]CFQ: add think time check for service tree and group Shaohua Li
@ 2011-07-11  5:44 ` Shaohua Li
  2011-07-11 11:27   ` Jens Axboe
  2011-07-11 13:05   ` Vivek Goyal
  0 siblings, 2 replies; 4+ messages in thread
From: Shaohua Li @ 2011-07-11  5:44 UTC (permalink / raw)
  To: lkml; +Cc: Jens Axboe, Vivek Goyal

2011/7/4 Shaohua Li <shaohua.li@intel.com>:
> Hi,
>  Currently when the last queue of a service tree/group is empty, CFQ
> doesn't expire the queue. This is to allow requests from the tree/group
> come soon, so tree/group doesn't miss its share. But if the think time
> is big, the assumption isn't correct. idling the queue is just wasting
> bandwidth.
>
> Originally I was hoping this can resolve Vivek's fsync issue, but it
> doesn't. The fsync issue is caused by queue idling. But since think time
> check only helps for think time above default queue idle time (8ms),
> think time check doesn't help.
>
> On the other hand, think time check is still helpful for queues with
> think time. I had test case in follow patches show throughput
> improvement without sacrifice tree/group shares.
>
Jens,
can you look at the patches? I refreshed some patches in replying
Vivek, I can resend if required.

Thanks,
Shaohua

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/3]CFQ: add think time check for service tree and group
  2011-07-11  5:44 ` Shaohua Li
@ 2011-07-11 11:27   ` Jens Axboe
  2011-07-11 13:05   ` Vivek Goyal
  1 sibling, 0 replies; 4+ messages in thread
From: Jens Axboe @ 2011-07-11 11:27 UTC (permalink / raw)
  To: Shaohua Li; +Cc: lkml, Vivek Goyal

On 2011-07-11 07:44, Shaohua Li wrote:
> 2011/7/4 Shaohua Li <shaohua.li@intel.com>:
>> Hi,
>>  Currently when the last queue of a service tree/group is empty, CFQ
>> doesn't expire the queue. This is to allow requests from the tree/group
>> come soon, so tree/group doesn't miss its share. But if the think time
>> is big, the assumption isn't correct. idling the queue is just wasting
>> bandwidth.
>>
>> Originally I was hoping this can resolve Vivek's fsync issue, but it
>> doesn't. The fsync issue is caused by queue idling. But since think time
>> check only helps for think time above default queue idle time (8ms),
>> think time check doesn't help.
>>
>> On the other hand, think time check is still helpful for queues with
>> think time. I had test case in follow patches show throughput
>> improvement without sacrifice tree/group shares.
>>
> Jens,
> can you look at the patches? I refreshed some patches in replying
> Vivek, I can resend if required.

Please resend the series after a refresh like that, otherwise I tend to
lose track of the various things flying around.

-- 
Jens Axboe


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/3]CFQ: add think time check for service tree and group
  2011-07-11  5:44 ` Shaohua Li
  2011-07-11 11:27   ` Jens Axboe
@ 2011-07-11 13:05   ` Vivek Goyal
  1 sibling, 0 replies; 4+ messages in thread
From: Vivek Goyal @ 2011-07-11 13:05 UTC (permalink / raw)
  To: Shaohua Li; +Cc: lkml, Jens Axboe

On Mon, Jul 11, 2011 at 01:44:05PM +0800, Shaohua Li wrote:
> 2011/7/4 Shaohua Li <shaohua.li@intel.com>:
> > Hi,
> >  Currently when the last queue of a service tree/group is empty, CFQ
> > doesn't expire the queue. This is to allow requests from the tree/group
> > come soon, so tree/group doesn't miss its share. But if the think time
> > is big, the assumption isn't correct. idling the queue is just wasting
> > bandwidth.
> >
> > Originally I was hoping this can resolve Vivek's fsync issue, but it
> > doesn't. The fsync issue is caused by queue idling. But since think time
> > check only helps for think time above default queue idle time (8ms),
> > think time check doesn't help.
> >
> > On the other hand, think time check is still helpful for queues with
> > think time. I had test case in follow patches show throughput
> > improvement without sacrifice tree/group shares.
> >
> Jens,
> can you look at the patches? I refreshed some patches in replying
> Vivek, I can resend if required.

Yep, please resend. That would be easier.

Thanks
Vivek

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-07-11 13:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-04  5:36 [PATCH 0/3]CFQ: add think time check for service tree and group Shaohua Li
2011-07-11  5:44 ` Shaohua Li
2011-07-11 11:27   ` Jens Axboe
2011-07-11 13:05   ` Vivek Goyal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox