lkml.org 
[lkml]   [2008]   [Apr]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH 1/3] accounting: task counters for disk/network
From
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.





\
 
 \ /
  Last update: 2008-04-10 05:45    [W:0.032 / U:0.752 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site