> Hi, Ingo,> > I've implemented a patch on top of v14 for better accounting of > sched_info statistics. Earlier, sched_info relied on jiffies for > accounting and I've seen applications that show "0" cpu usage > statistics (in delay accounting and from /proc) even though they've > been running on the CPU for a long time. The basic problem is that > accounting in jiffies is too coarse to be accurate.> > The patch below uses sched_clock() for sched_info accounting.

nice! I've merged your patch and it built/booted fine so it should show up in -v15. This should also play well with Andi's sched_clock() enhancements in -mm, slated for .23.

btw., i think some more consolidation could be done in this area. We've now got the traditional /proc/PID/stat metrics, schedstats, taskstats and delay accounting and with CFS we've got /proc/sched_debug and /proc/PID/sched. There's a fair amount of overlap.