Skip to contentSkip to conversation

CFQ: add think time check for service tree and group

PATCH Superseded Shaohua Li 3 participants 4 messages Jul 4, 2011 – Jul 11, 2011

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Shaohua Li

author
#0 lore raw

cover CFQ: add think time check for service tree and group

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

author
#1 lore raw

2011/7/4 Shaohua Li <[email protected]>:

Quoted 7 lines

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.

Quoted 9 lines

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

#2 lore raw
Quoted 13 lines · Shaohua Li

2011/7/4 Shaohua Li <[email protected]>:

Quoted 12 lines

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.

Quoted 7 lines
Quoted 4 lines

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.

Signature · 1 line
Jens Axboe
#3 lore raw
In reply to Shaohua Li
Quoted 13 lines · Shaohua Li

2011/7/4 Shaohua Li <[email protected]>:

Quoted 12 lines

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.

Quoted 7 lines
Quoted 4 lines

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