diff options
| author | Shailabh Nagar <[email protected]> | 2006-07-14 00:24:47 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2006-07-14 21:53:57 -0700 |
| commit | f9fd8914c1acca0d98b69d831b128d5b52f03c51 (patch) | |
| tree | 18c2506bb31e49a9e2c4a483d37b0394c815fe9d /scripts/patch-kernel | |
| parent | c8924363da07aec213e5d359f23eeae1fff91951 (diff) | |
[PATCH] per-task delay accounting taskstats interface: control exit data through cpumasks
On systems with a large number of cpus, with even a modest rate of tasks
exiting per cpu, the volume of taskstats data sent on thread exit can
overflow a userspace listener's buffers.
One approach to avoiding overflow is to allow listeners to get data for a
limited and specific set of cpus. By scaling the number of listeners
and/or the cpus they monitor, userspace can handle the statistical data
overload more gracefully.
In this patch, each listener registers to listen to a specific set of cpus
by specifying a cpumask. The interest is recorded per-cpu. When a task
exits on a cpu, its taskstats data is unicast to each listener interested
in that cpu.
Thanks to Andrew Morton for pointing out the various scalability and
general concerns of previous attempts and for suggesting this design.
[[email protected]: build fix]
Signed-off-by: Shailabh Nagar <[email protected]>
Signed-off-by: Balbir Singh <[email protected]>
Signed-off-by: Chandra Seetharaman <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions