Re: per cpu time statistics

Michael Hohnbaum (hohnbaum@us.ibm.com)
06 Dec 2002 09:31:43 -0800


On Wed, 2002-12-04 at 04:43, Erich Focht wrote:
> Andrew, Bill,
>
> I had to learn from Michael Hohnbaum that you've eliminated the per
> CPU time statistics in 2.5.50 (akpm changeset from Nov. 26).
...
>
> For those who miss this feature I'm attaching a patch doing what wli
> suggested. The config option is CONFIG_CPUS_STAT and can be found in
> the "Kernel Hacking" menu, as wli suggested. Just didn't like
> DEBUG_SCHED, we want to monitor the statistics and this is not
> necessarily related to bugs in the scheduler. Also added as last line
> in /proc/pid/cpu the current CPU of the task. It's often needed and
> /proc/pid/stat is much too cryptic.

I use a set of tests provided by Erich that use the cpu information from
the task. This information is crucial for understanding how processes
are dispatched across CPUs (and nodes on NUMA boxes). I've applied
Erich's patch and it restores this data, making his tests useful. Could
this patch be considered for inclusion? Please.

Michael
>
> Regards,
>
> Erich
> ----

-- 

Michael Hohnbaum 503-578-5486 hohnbaum@us.ibm.com T/L 775-5486

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