Re: [PATCH 3/3] blkio: Increment the blkio cgroup stats for real now

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Vivek Goyal
Date: Friday, April 2, 2010 - 12:10 pm

On Thu, Apr 01, 2010 at 03:01:41PM -0700, Divyesh Shah wrote:

Hi Divyesh,

Can we have any request based information limited to cfq and not put that
in blkio-cgroup. The reason being that I am expecting that some kind of
max bw policy interface will not necessarily be implemented at CFQ
level. We might have to implement it at higher level so that it can
work with all dm/md devices. If that's the case, then it might very well
be either a bio based interface also.

So just keeping that possibility in mind, can we keep blk-cgroup as
generic as possible and not necessarily make it dependent on "struct
request".

If you implement, two dimensional arrays for stats then we can have
following function.

blkio_add_stat(enum stat_type var enum stat_sub_type var_type, u64 val)

The idea is that let policy specify what is the type of IO completed,
read, or write or sync, async and lets not make assumption in blkio-cgroup
that it is request based interface and use flags like REQ_RW_SYNC etc.


io_service_bytes is esentially same as blkio.sectors but it is giving
info in bytes instead of sectors and it is breaking down IO into subtypes.
That's fine if it is helping you.

instead of blk_rq_sectors(rq) << 9, you can probably use blk_rq_bytes().

Again, can we keep rq information out of blk-cgroup.c.


Same here that knowledge of rq, move into CFQ and keep blk-cgroup.c free
of it.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/3] blkio: IO controller stats, Divyesh Shah, (Thu Apr 1, 3:00 pm)
[PATCH 2/3] blkio: Add io controller stats like, Divyesh Shah, (Thu Apr 1, 3:01 pm)
Re: [PATCH 0/3] blkio: IO controller stats, Jens Axboe, (Thu Apr 1, 11:45 pm)
Re: [PATCH 2/3] blkio: Add io controller stats like, Vivek Goyal, (Fri Apr 2, 11:10 am)
Re: [PATCH 2/3] blkio: Add io controller stats like, Vivek Goyal, (Fri Apr 2, 11:17 am)
Re: [PATCH 2/3] blkio: Add io controller stats like, Divyesh Shah, (Fri Apr 2, 11:54 am)
Re: [PATCH 3/3] blkio: Increment the blkio cgroup stats fo ..., Vivek Goyal, (Fri Apr 2, 12:10 pm)
Re: [PATCH 2/3] blkio: Add io controller stats like, Divyesh Shah, (Fri Apr 2, 1:53 pm)
Re: [PATCH 2/3] blkio: Add io controller stats like, Vivek Goyal, (Mon Apr 5, 7:45 am)
Re: [PATCH 2/3] blkio: Add io controller stats like, Divyesh Shah, (Mon Apr 5, 3:16 pm)