Linux – information about /proc/pid/sched

linuxscheduler

Not sure this is the right place for this question, but here goes:

I'm trying to make some sense of the /proc/pid/sched and /proc/pid/task/tid/sched files for a highly threaded server process, however I was not able to find a good explanation of how to interpret this file ( just a few bits here: http://knol.google.com/k/linux-performance-tuning-and-measurement# ) .
I assume this entry in procfs is related to newer versions of the kernel that run with the CFS scheduler?

CentOS distro running on a 2.6.24.7-149.el5rt kernel version with preempt rt patch.

Any thoughts?

Best Answer

You can find more documentation about the /proc/[pid]/sched file in this article:

http://lwn.net/Articles/242900/

Look at the comments. Most of the fields are explained.

Addendum: the file is writeable to reset the statistics.