Messages in this thread | | | Date | Thu, 26 Feb 2009 17:20:56 +0900 | From | KAMEZAWA Hiroyuki <> | Subject | Re: [RFC PATCH 1/2] New cgroup subsystem API (->initialize()) |
| |
On Thu, 26 Feb 2009 16:11:36 +0800 Li Zefan <lizf@cn.fujitsu.com> wrote:
> Bharata B Rao wrote: > > On Thu, Feb 26, 2009 at 10:55:54AM +0800, Li Zefan wrote: > >> Bharata B Rao wrote: > >>> From: Balaji Rao <balajirrao@gmail.com> > > Another thing that could be done is to enhance already existing > > cpuacct controller to do stime/utime accouting also. cpuacct controller > > exists precisely for doing per-cgroup accounting and is there any reason > > why these stats shouldn't be part of cpuacct controller. If we do this, > > users would be forced to use cpu controller and cpuacct controller > > together. Is that a problem ? > > > > I wondered why these stats is part of cpu subsystem but not cpuacct. > And I don't see any problem to use these 2 subsystems together. Actually > this is one of the advantage of cgroup. > IMHO, cpuacct subsystem should count utime/stime. current statistics is not so useful.
BTW, I wonde why cpuacct subsys walks up to root at charging... I think we can gather all subtree information at read...
Thanks -Kame
| |