Re: [PATCH V2] block/throttle: Add IO throttled information in blkio.throttle.

2012-09-04 Thread Tejun Heo
Hello, Tao Ma. On Sat, Sep 01, 2012 at 09:58:43PM +0800, Tao Ma wrote: > Vivek and I have talked about its usage in my first try. See the thread > here. https://lkml.org/lkml/2012/5/22/81 > And I am OK to say it again here. In our case, we use flashcache as a > block device and the bad thing is th

Re: [PATCH V2] block/throttle: Add IO throttled information in blkio.throttle.

2012-09-04 Thread Vivek Goyal
On Tue, Sep 04, 2012 at 10:12:49PM +0800, Tao Ma wrote: > On 09/04/2012 09:35 PM, Vivek Goyal wrote: > > On Fri, Aug 31, 2012 at 01:15:09PM +0800, Tao Ma wrote: > > > > [..] > >> diff --git a/block/blk-throttle.c b/block/blk-throttle.c > >> index 1588c2d..9317d71 100644 > >> --- a/block/blk-thrott

Re: [PATCH V2] block/throttle: Add IO throttled information in blkio.throttle.

2012-09-04 Thread Vivek Goyal
On Tue, Sep 04, 2012 at 10:12:49PM +0800, Tao Ma wrote: > On 09/04/2012 09:35 PM, Vivek Goyal wrote: > > On Fri, Aug 31, 2012 at 01:15:09PM +0800, Tao Ma wrote: > > > > [..] > >> diff --git a/block/blk-throttle.c b/block/blk-throttle.c > >> index 1588c2d..9317d71 100644 > >> --- a/block/blk-thrott

Re: [PATCH V2] block/throttle: Add IO throttled information in blkio.throttle.

2012-09-04 Thread Tao Ma
On 09/04/2012 09:35 PM, Vivek Goyal wrote: > On Fri, Aug 31, 2012 at 01:15:09PM +0800, Tao Ma wrote: > > [..] >> diff --git a/block/blk-throttle.c b/block/blk-throttle.c >> index 1588c2d..9317d71 100644 >> --- a/block/blk-throttle.c >> +++ b/block/blk-throttle.c >> @@ -46,6 +46,8 @@ struct tg_stat

Re: [PATCH V2] block/throttle: Add IO throttled information in blkio.throttle.

2012-09-04 Thread Vivek Goyal
On Fri, Aug 31, 2012 at 01:15:09PM +0800, Tao Ma wrote: [..] > diff --git a/block/blk-throttle.c b/block/blk-throttle.c > index 1588c2d..9317d71 100644 > --- a/block/blk-throttle.c > +++ b/block/blk-throttle.c > @@ -46,6 +46,8 @@ struct tg_stats_cpu { > struct blkg_rwstat servic

Re: [PATCH V2] block/throttle: Add IO throttled information in blkio.throttle.

2012-09-01 Thread Tao Ma
Hi Tejun, On 09/01/2012 09:05 AM, Tejun Heo wrote: > On Fri, Aug 31, 2012 at 01:15:09PM +0800, Tao Ma wrote: >> From: Tao Ma >> >> Currently, if the IO is throttled by io-throttle, the SA has no idea of > > What's SA? system admin. > >> the situation and can't report it to the real application u

Re: [PATCH V2] block/throttle: Add IO throttled information in blkio.throttle.

2012-08-31 Thread Tejun Heo
On Fri, Aug 31, 2012 at 01:15:09PM +0800, Tao Ma wrote: > From: Tao Ma > > Currently, if the IO is throttled by io-throttle, the SA has no idea of What's SA? > 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 interf

[PATCH V2] block/throttle: Add IO throttled information in blkio.throttle.

2012-08-30 Thread Tao Ma
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_queued which indicates how many IOs are currently t