[Devel] [PATCH RFC] fsio: filesystem io accounting cgroup
Tejun Heo
tj at kernel.org
Tue Jul 9 20:50:24 PDT 2013
Hello,
On Tue, Jul 09, 2013 at 11:09:55PM -0400, Vivek Goyal wrote:
> Stacking drivers are pretty important ones and we expect throttling
> to work with them. By throttling bio, a single hook worked both for
> request based drivers and bio based drivers.
Oh yeah, sure, we have them working now, so there's no way to break
them but that doesn't mean it's a good overall design. I don't have a
good answer for this one. The root cause is having the distinction
between bio and rq based drivers. With the right constructs, I
suspect we probably could have done away with bio based drivers, but,
well, that's all history now.
> So looks like for bio based drivers you want bio throttling and for
> request based drviers, request throttling and define a separate hook
> in blk_queue_bio(). A generic hook probably can check the type of request
> queue and not throttle bio if it is request based queue and ultimately
> request queue based hook will throttle it.
>
> So in a cgroup we blkio.throttle.io_serviced will have stats for
> bio/request depending on type of device.
>
> And we will need to modify throttling logic so that it can handle
> both bio and request throttling. Not sure how much of code can be
> shared for bio/request throttling.
I'm not sure how much (de)multiplexing and sharing we'd be doing but
I'm afraid there's gonna need to be some. We really can't use the
same logic for SSDs and rotating rusts after all and it probably would
be best to avoid contaminating SSD paths with lots of guesstimating
logics necessary for rotating rusts.
> I am not sure about request based multipath driver and it might
> require some special handling.
If it's not supported now, I'll be happy with just leaving it alone
and telling mp users to configure the underlying queues.
> Is it roughly inline with what you have been thinking.
I'm hoping to keep it somewhat manageable at least. I wouldn't mind
leaving stacking driver and cfq-iosched support as they are while only
supporting SSD devices with new code. It's all pie in the sky at this
point and none of this matters before we fix the bdi and writeback
issue anyway.
Thanks.
--
tejun
More information about the Devel
mailing list