Linux Scheduler Statistics
/proc/schedstat format
version 1
Format for version 1 of schedstat:
tag 1 2 3 4 5 6 7 8 9 10 11 12
tag is cpuN or totals.
NOTE: |
In the sched_yield() statistics,
the active queue is considered empty if it has only one process
in it, since obviously the process calling sched_yield() is that process.
|
First four are sched_yield() statistics:
- # of times both the active and the expired queue were empty
- # of times just the active queue was empty
- # of times just the expired queue was empty
- # of times sched_yield() was called
Next three are schedule() statistics:
- # of times the active queue had at least one other process on it.
- # of times we switched to the expired queue and reused it
- # of times schedule() was called
Last five are statistics dealing with load_balance()
(these will always be zero if CONFIG_SMP is not specified):
- # of times load_balance() was called at an idle tick
- # of times load_balance() was called from schedule()
- # of times load_balance() was called
- sum of imbalances discovered (if any) with each call to load_balance()
- # of times load_balance() was called when we did not find a "busiest" queue
Questions to ricklind@us.ibm.com