Messages in this thread | | | Date | Thu, 10 Apr 2008 12:41:58 +0900 (JST) | Subject | Re: [PATCH 1/3] accounting: task counters for disk/network | From | Hirokazu Takahashi <> |
| |
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@valinux.co.jp> 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.
| |