[lkml]   [2012]   [May]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [RFC] block/throttle: Add IO throttled information in blkcg.
On Tue, May 22, 2012 at 04:10:36PM +0800, Tao Ma wrote:
> From: Tao Ma <>
> Currently, if the IO is throttled by io-throttle, the SA has no idea of
> the situation and can't report it to the real application user about
> that he/she has to do something. So this patch adds a new interface
> named blkio.throttle.io_throttled which indicates how many IOs are
> currently throttled.

If the only purpose is to know whether IOs are being throttled, why
not just scan for the rules and see if respective device has any
throttling rules or not.

Even if you introduce this interface, you will end up scanning for
throttled ios against that particular device. And if IO is not happening
at that moment or if IO rate is not exceeding the rate limit, there
might not be any throttled ios and one might get misled.

So for your purpose a better interface sounds like scanning for throttling
rules instead of this new interface.

> I am not sure whether it is OK to add this information to the generic
> blkcg since it is only io-throttle related, but I don't find a way to
> only store it into the blkcg io-throttle. And that's the reason this
> is only a RFC. Any suggestions? Thanks.

Tejun has changed the code in this area and new code will allow you to
introduce this file in blk-throttle.c. All that code is sitting in Jens's
block tree.


 \ /
  Last update: 2012-05-22 14:01    [W:0.124 / U:13.440 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site