Re: performance drop after using blkcg

From: Tejun Heo
Date: Tue Dec 11 2012 - 11:27:34 EST


Hello, Vivek.

On Tue, Dec 11, 2012 at 11:18:20AM -0500, Vivek Goyal wrote:
> - Controlling device queue should bring down throughput too as it
> should bring down level of parallelism at device level. Also asking
> user to tune device queue depth seems bad interface. How would a
> user know what's the right queue depth. May be software can try to
> be intelligent about it and if IO latencies cross a threshold then
> try to decrese queue depth. (We do things like that in CFQ).

Yeah, it should definitely be something automatic. Command completion
latencies are visible to iosched, so it should be doable.

> - Passing prio to device sounds something new and promising. If they
> can do a good job at it, why not. I think at minimum they need to
> make sure READs are prioritized over writes by default. And may
> be provide a way to signal important writes which need to go to
> the disk now.
>
> If READs are prioritized in device, then it takes care of one very
> important use case. Then we just have to worry about other case of
> fairness between different readers or fairness between different
> writers and there we do not idle and try our best to give fair share.
> In case group is not backlogged, it is bound to loose some share.

I think it can be good enough if we have queue at the head / tail
choice. No idea how it'll actually fan out tho.

Thanks.

--
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/