Re: [PATCH] cfq-iosched: fix the delay of cfq_group's vdisktime under iops mode

2017-03-06 Thread Vivek Goyal
On Mon, Mar 06, 2017 at 04:55:25PM +0800, Hou Tao wrote: > Hi Vivek, > > On 2017/3/4 3:53, Vivek Goyal wrote: > > On Fri, Mar 03, 2017 at 09:20:44PM +0800, Hou Tao wrote: > > > > [..] > >>> Frankly, vdisktime is in fixed-point precision shifted by > >>> CFQ_SERVICE_SHIFT so using CFQ_IDLE_DELAY

Re: [PATCH] cfq-iosched: fix the delay of cfq_group's vdisktime under iops mode

2017-03-06 Thread Hou Tao
Hi Vivek, On 2017/3/4 3:53, Vivek Goyal wrote: > On Fri, Mar 03, 2017 at 09:20:44PM +0800, Hou Tao wrote: > > [..] >>> Frankly, vdisktime is in fixed-point precision shifted by >>> CFQ_SERVICE_SHIFT so using CFQ_IDLE_DELAY does not make much sense in any >>> case and just adding 1 to maximum

Re: [PATCH] cfq-iosched: fix the delay of cfq_group's vdisktime under iops mode

2017-03-03 Thread Vivek Goyal
On Fri, Mar 03, 2017 at 09:20:44PM +0800, Hou Tao wrote: [..] > > Frankly, vdisktime is in fixed-point precision shifted by > > CFQ_SERVICE_SHIFT so using CFQ_IDLE_DELAY does not make much sense in any > > case and just adding 1 to maximum vdisktime should be fine in all the > > cases. But that

Re: [PATCH] cfq-iosched: fix the delay of cfq_group's vdisktime under iops mode

2017-03-03 Thread Hou Tao
On 2017/3/2 18:29, Jan Kara wrote: > On Wed 01-03-17 10:07:44, Hou Tao wrote: >> When adding a cfq_group into the cfq service tree, we use CFQ_IDLE_DELAY >> as the delay of cfq_group's vdisktime if there have been other cfq_groups >> already. >> >> When cfq is under iops mode, commit 9a7f38c42c2b

Re: [PATCH] cfq-iosched: fix the delay of cfq_group's vdisktime under iops mode

2017-03-02 Thread Jan Kara
On Wed 01-03-17 10:07:44, Hou Tao wrote: > When adding a cfq_group into the cfq service tree, we use CFQ_IDLE_DELAY > as the delay of cfq_group's vdisktime if there have been other cfq_groups > already. > > When cfq is under iops mode, commit 9a7f38c42c2b ("cfq-iosched: Convert > from jiffies to

[PATCH] cfq-iosched: fix the delay of cfq_group's vdisktime under iops mode

2017-02-28 Thread Hou Tao
When adding a cfq_group into the cfq service tree, we use CFQ_IDLE_DELAY as the delay of cfq_group's vdisktime if there have been other cfq_groups already. When cfq is under iops mode, commit 9a7f38c42c2b ("cfq-iosched: Convert from jiffies to nanoseconds") could result in a large iops delay and