diff options
| -rw-r--r-- | Documentation/scheduler/sched-stats.txt | 33 |
1 files changed, 15 insertions, 18 deletions
diff --git a/Documentation/scheduler/sched-stats.txt b/Documentation/scheduler/sched-stats.txt index 01e69404ee5e..1cd5d51bc761 100644 --- a/Documentation/scheduler/sched-stats.txt +++ b/Documentation/scheduler/sched-stats.txt | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | Version 15 of schedstats dropped counters for some sched_yield: | ||
| 2 | yld_exp_empty, yld_act_empty and yld_both_empty. Otherwise, it is | ||
| 3 | identical to version 14. | ||
| 4 | |||
| 1 | Version 14 of schedstats includes support for sched_domains, which hit the | 5 | Version 14 of schedstats includes support for sched_domains, which hit the |
| 2 | mainline kernel in 2.6.20 although it is identical to the stats from version | 6 | mainline kernel in 2.6.20 although it is identical to the stats from version |
| 3 | 12 which was in the kernel from 2.6.13-2.6.19 (version 13 never saw a kernel | 7 | 12 which was in the kernel from 2.6.13-2.6.19 (version 13 never saw a kernel |
| @@ -28,32 +32,25 @@ to write their own scripts, the fields are described here. | |||
| 28 | 32 | ||
| 29 | CPU statistics | 33 | CPU statistics |
| 30 | -------------- | 34 | -------------- |
| 31 | cpu<N> 1 2 3 4 5 6 7 8 9 10 11 12 | 35 | cpu<N> 1 2 3 4 5 6 7 8 9 |
| 32 | |||
| 33 | NOTE: In the sched_yield() statistics, the active queue is considered empty | ||
| 34 | if it has only one process in it, since obviously the process calling | ||
| 35 | sched_yield() is that process. | ||
| 36 | 36 | ||
| 37 | First four fields are sched_yield() statistics: | 37 | First field is a sched_yield() statistic: |
| 38 | 1) # of times both the active and the expired queue were empty | 38 | 1) # of times sched_yield() was called |
| 39 | 2) # of times just the active queue was empty | ||
| 40 | 3) # of times just the expired queue was empty | ||
| 41 | 4) # of times sched_yield() was called | ||
| 42 | 39 | ||
| 43 | Next three are schedule() statistics: | 40 | Next three are schedule() statistics: |
| 44 | 5) # of times we switched to the expired queue and reused it | 41 | 2) # of times we switched to the expired queue and reused it |
| 45 | 6) # of times schedule() was called | 42 | 3) # of times schedule() was called |
| 46 | 7) # of times schedule() left the processor idle | 43 | 4) # of times schedule() left the processor idle |
| 47 | 44 | ||
| 48 | Next two are try_to_wake_up() statistics: | 45 | Next two are try_to_wake_up() statistics: |
| 49 | 8) # of times try_to_wake_up() was called | 46 | 5) # of times try_to_wake_up() was called |
| 50 | 9) # of times try_to_wake_up() was called to wake up the local cpu | 47 | 6) # of times try_to_wake_up() was called to wake up the local cpu |
| 51 | 48 | ||
| 52 | Next three are statistics describing scheduling latency: | 49 | Next three are statistics describing scheduling latency: |
| 53 | 10) sum of all time spent running by tasks on this processor (in jiffies) | 50 | 7) sum of all time spent running by tasks on this processor (in jiffies) |
| 54 | 11) sum of all time spent waiting to run by tasks on this processor (in | 51 | 8) sum of all time spent waiting to run by tasks on this processor (in |
| 55 | jiffies) | 52 | jiffies) |
| 56 | 12) # of timeslices run on this cpu | 53 | 9) # of timeslices run on this cpu |
| 57 | 54 | ||
| 58 | 55 | ||
| 59 | Domain statistics | 56 | Domain statistics |
