Messages in this thread | | | Subject | Re: [PATCH 3/5] scheduler: cpuacct: Enable platform hooks to track cpuusage for CPU frequencies | From | Peter Zijlstra <> | Date | Tue, 23 Nov 2010 12:35:59 +0100 |
| |
On Mon, 2010-11-22 at 18:05 -0800, Mike Chan wrote:
> This is useful for tracking cpu power per c-group. We split each > android application into its own c-group and track what cpu speeds and > how long the cpu spent for each one. Peter we've actually discussed > this before: > http://lkml.org/lkml/2010/5/6/301 > > These patches were discussed with Paul Menage and Balbir Singh back in > April, as well as on lmkl and the cpufreq mailing lists. These may or > may not be useful for mainline, I assume anyone wanting to track power > specific for c-groups would be interested. I'm open for different > implementations that can help achieve cpu power tracking per-cgroup if > this particular implementation is controversial, or if you just want > to help make Android's kernel better.
Right, so Stephane is working on perf-cgroup bits (I saw he recently posted another version, which I guess I ought to look at soonish).
With that it would be rather simple to use perf to track per-cgroup power state.
| |