diff options
| -rw-r--r-- | Documentation/accounting/delay-accounting.txt | 11 | ||||
| -rw-r--r-- | Documentation/accounting/getdelays.c | 8 |
2 files changed, 14 insertions, 5 deletions
diff --git a/Documentation/accounting/delay-accounting.txt b/Documentation/accounting/delay-accounting.txt index 1443cd71d263..8a12f0730c94 100644 --- a/Documentation/accounting/delay-accounting.txt +++ b/Documentation/accounting/delay-accounting.txt | |||
| @@ -11,6 +11,7 @@ the delays experienced by a task while | |||
| 11 | a) waiting for a CPU (while being runnable) | 11 | a) waiting for a CPU (while being runnable) |
| 12 | b) completion of synchronous block I/O initiated by the task | 12 | b) completion of synchronous block I/O initiated by the task |
| 13 | c) swapping in pages | 13 | c) swapping in pages |
| 14 | d) memory reclaim | ||
| 14 | 15 | ||
| 15 | and makes these statistics available to userspace through | 16 | and makes these statistics available to userspace through |
| 16 | the taskstats interface. | 17 | the taskstats interface. |
| @@ -41,7 +42,7 @@ this structure. See | |||
| 41 | include/linux/taskstats.h | 42 | include/linux/taskstats.h |
| 42 | for a description of the fields pertaining to delay accounting. | 43 | for a description of the fields pertaining to delay accounting. |
| 43 | It will generally be in the form of counters returning the cumulative | 44 | It will generally be in the form of counters returning the cumulative |
| 44 | delay seen for cpu, sync block I/O, swapin etc. | 45 | delay seen for cpu, sync block I/O, swapin, memory reclaim etc. |
| 45 | 46 | ||
| 46 | Taking the difference of two successive readings of a given | 47 | Taking the difference of two successive readings of a given |
| 47 | counter (say cpu_delay_total) for a task will give the delay | 48 | counter (say cpu_delay_total) for a task will give the delay |
| @@ -94,7 +95,9 @@ CPU count real total virtual total delay total | |||
| 94 | 7876 92005750 100000000 24001500 | 95 | 7876 92005750 100000000 24001500 |
| 95 | IO count delay total | 96 | IO count delay total |
| 96 | 0 0 | 97 | 0 0 |
| 97 | MEM count delay total | 98 | SWAP count delay total |
| 99 | 0 0 | ||
| 100 | RECLAIM count delay total | ||
| 98 | 0 0 | 101 | 0 0 |
| 99 | 102 | ||
| 100 | Get delays seen in executing a given simple command | 103 | Get delays seen in executing a given simple command |
| @@ -108,5 +111,7 @@ CPU count real total virtual total delay total | |||
| 108 | 6 4000250 4000000 0 | 111 | 6 4000250 4000000 0 |
| 109 | IO count delay total | 112 | IO count delay total |
| 110 | 0 0 | 113 | 0 0 |
| 111 | MEM count delay total | 114 | SWAP count delay total |
| 115 | 0 0 | ||
| 116 | RECLAIM count delay total | ||
| 112 | 0 0 | 117 | 0 0 |
diff --git a/Documentation/accounting/getdelays.c b/Documentation/accounting/getdelays.c index 40121b5cca14..3f7755f3963f 100644 --- a/Documentation/accounting/getdelays.c +++ b/Documentation/accounting/getdelays.c | |||
| @@ -196,14 +196,18 @@ void print_delayacct(struct taskstats *t) | |||
| 196 | " %15llu%15llu%15llu%15llu\n" | 196 | " %15llu%15llu%15llu%15llu\n" |
| 197 | "IO %15s%15s\n" | 197 | "IO %15s%15s\n" |
| 198 | " %15llu%15llu\n" | 198 | " %15llu%15llu\n" |
| 199 | "MEM %15s%15s\n" | 199 | "SWAP %15s%15s\n" |
| 200 | " %15llu%15llu\n" | ||
| 201 | "RECLAIM %12s%15s\n" | ||
| 200 | " %15llu%15llu\n", | 202 | " %15llu%15llu\n", |
| 201 | "count", "real total", "virtual total", "delay total", | 203 | "count", "real total", "virtual total", "delay total", |
| 202 | t->cpu_count, t->cpu_run_real_total, t->cpu_run_virtual_total, | 204 | t->cpu_count, t->cpu_run_real_total, t->cpu_run_virtual_total, |
| 203 | t->cpu_delay_total, | 205 | t->cpu_delay_total, |
| 204 | "count", "delay total", | 206 | "count", "delay total", |
| 205 | t->blkio_count, t->blkio_delay_total, | 207 | t->blkio_count, t->blkio_delay_total, |
| 206 | "count", "delay total", t->swapin_count, t->swapin_delay_total); | 208 | "count", "delay total", t->swapin_count, t->swapin_delay_total, |
| 209 | "count", "delay total", | ||
| 210 | t->freepages_count, t->freepages_delay_total); | ||
| 207 | } | 211 | } |
| 208 | 212 | ||
| 209 | void task_context_switch_counts(struct taskstats *t) | 213 | void task_context_switch_counts(struct taskstats *t) |
