Re: [PATCH 6/9] Include idle and iowait fields in cpuacct

From: Peter Zijlstra
Date: Tue Sep 20 2011 - 05:21:55 EST


On Wed, 2011-09-14 at 17:04 -0300, Glauber Costa wrote:
> These are slightly different from the others though:
> (note to reviewers: might be better to put those in a separate
> array?)
>
> Since idle/iowait are a property of the system - by definition,
> no process from any cgroup is running when the system is idle,
> they are system wide. So what these fields really mean, are baselines
> for when the cgroup was created. It allows the cgroup to start
> counting idle/iowait from 0.

Alternatively you can make iowait based on nr_uninterruptible per cgroup
and count all ticks _this_ cgroup was idle.

Now all that would need moar accounting...
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/