OpenVZ Forum


Home » Mailing lists » Devel » [PATCH 0/4] cpuacct cleanup
Re: [PATCH 4/4] cpuacct.stat: re-use scheduler statistics for the root cgroup [message #44213 is a reply to message #44210] Fri, 25 November 2011 02:37 Go to previous message
KAMEZAWA Hiroyuki is currently offline  KAMEZAWA Hiroyuki
Messages: 463
Registered: September 2006
Senior Member
On Thu, 24 Nov 2011 23:33:26 -0200
Glauber Costa <glommer@parallels.com> wrote:

> Right now, after we collect tick statistics for user and system and store them
> in a well known location, we keep the same statistics again for cpuacct.
> Since cpuacct is hierarchical, the numbers for the root cgroup should be
> absolutely equal to the system-wide numbers.
>
> So it would be better to just use it: this patch changes cpuacct accounting
> in a way that the cpustat statistics are kept in a struct kernel_cpustat percpu
> array. In the root cgroup case, we just point it to the main array. The rest of
> the hierarchy walk can be totally disabled later with a static branch - but I am
> not doing it here.
>
> Signed-off-by: Glauber Costa <glommer@parallels.com>
> CC: Paul Tuner <pjt@google.com>
> CC: Peter Zijlstra <a.p.zijlstra@chello.nl>

seems reasonable to me.

Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [PATCH 0/6] NFS: create DNS resolver cache per network namespace
Next Topic: [PATCH 1/5] NFS: handle blocklayout pipe PipeFS dentry by network namespace aware routines
Goto Forum:
  


Current Time: Sat Sep 06 18:51:31 GMT 2025

Total time taken to generate the page: 0.08395 seconds