On Fri, Aug 04, 2006 at 06:33:28PM -0700, Paul Menage wrote: > Here's a very simple resource "controller" that simply accounts the > CPU time consumed by the tasks in a resource group, and reports it via > the stats interface. It has no shares or other configuration, but also > has nothing intrusive in the kernel apart from a couple of calls to an > accounting function in the existing time accounting in sched.c > > It's something that could be useful for any job control system. > Obviously a proper CPU scheduler with QoS isolation is better, but (in > the absence of such a scheduler that's ready for merging), right now > tracking the CPU cycles consumed by a group of processes involves lots > of expensive /proc scraping. (It's certainly something that we'd find > useful). > How about adding this alongside the numtasks controller as an example > of a simple but useful controller?
The other useful statistics (which is kind of inverse of this) is to know the "blocking" time on runqueue for different tasks. This other statistics should be available already in recent kernels (as part of delaystats feature) and is exported to user-space over netlink interface (which should be less expensive compared to /proc). Shailabh or Balbir can provide more details of this if necessary. -- Regards, vatsa ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ ckrm-tech mailing list https://lists.sourceforge.net/lists/listinfo/ckrm-tech