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). Reading the cset comments I understood that the motivation was to save 8*NR_CPUS bytes of memory in the task_struct. Maybe that was really an issue at the time when Bill suggested the patch (July), but in the mean time we got configurable NR_CPUS (October) and that small amount of additional memory really doesn't matter. Most people running SMP have 2 CPUs. I wasn't aware of the patch and the RFC from Bill, otherwise I would have "shouted" long time ago. My fault... BTW: did that RFC go to the LSE mailing list, too? I can't remember. But that's the place were I'd expect to find people interested in such issues. When digging in the kernel archives I found: wli> On Tue, Jul 16, 2002 at 11:12:32AM +0100, Alan Cox wrote: wli> > A PS: to that. I'm not opposed to removing them. I'd prefer them left wli> > around in the kernel debugging options though wli> wli> In that case, I can make it conditional on something like wli> CONFIG_DEBUG_SCHED, which option of course would go in the "Kernel Hacking" wli> section. wli> wli> Cheers, wli> Bill I find this idea better than just eliminating the only way of finding out on which CPUs a task has spent its time. This is an essential question when investigating the performance on SMP and NUMA systems. 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. Regards, Erich