Re: [PATCH 1/3] accounting: task counters for disk/network

From: Hirokazu Takahashi
Date: Wed Apr 09 2008 - 23:42:17 EST


Hi Gerlof,

> > This sort of accounting will presumably be needed by a disk bandwidth
> > cgroup controller. Perhaps the containers/cgroup people have plans of code
> > already?
> >
>
> Yes, there have been various cgroup block-I/O subsystems proposed. I
> know that at least the one posted by Hirokazu Takahashi
> <taka@xxxxxxxxxxxxx> uses the same per-page cgroup pointer as the
> memory controller.

Yes, I'm working on this.

linux-2.6.25-rc series now have the memory controller in them, which
supports to get the cgroup from any pageframe. I made a block-I/O
controller on it experimentally.

If you use this controller with dm-ioband, which is an engine implemented
as a device mapper module to control the bandwidth of block I/Os,
you can also get "cgroup block I/O accounting" from it.

I guess you can enhance this controller to track the I/Os per process
if you really want to. But it will cause extra overhead which I think
you may not ignore.

Thanks,
Hirokazu Takahashi.



--
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/