Skip to content

Per-task delay accounting

Shailabh Nagar lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6Delay accounting: timespec diffinclude/linux/time.h+15 -00 replies
2/6Delay accounting: Initialization, kernel boot optionDocumentation/kernel-parameters.txt include/linux/delayacct.h include/linux/sched.h +4 more+91 -00 replies
3/6Delay accounting: Sync block I/O delaysfs/buffer.c fs/read_write.c include/linux/delayacct.h +4 more+61 -40 replies
4/6Delay accounting: Swap in delaysinclude/linux/delayacct.h include/linux/sched.h kernel/delayacct.c +1 more+29 -70 replies
5/6Delay accounting: /proc interfacefs/proc/array.c fs/proc/base.c fs/proc/internal.h+90 -10 replies
6/6Delay accounting: Connector interfacedrivers/connector/Kconfig drivers/connector/Makefile drivers/connector/cn_stats.c +3 more+374 -046 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Patch 0/6] Per-task delay accounting

Andrew,

Could you please consider these patches for inclusion in -mm ? The comments from earlier postings of these patches have been addressed, including the one you made about making the connector interface generic (more about that in the connector patch).

Thanks,
Shailabh

The following patches add accounting for the delays seen by tasks in
a) waiting for a CPU (while being runnable)
b) completion of synchronous block I/O initiated by the task
c) swapping in pages (i.e. capacity misses).

Such delays provide feedback for a task's cpu priority, io priority and rss limit values. Long delays, especially relative to other tasks, can be a trigger for changing a task's cpu/io priorities and modifying its rss usage (either directly through sys_getprlimit() that was proposed earlier on lkml or by throttling cpu consumption or process calling sys_setrlimit etc.)

The major change since the previous posting of these patches
(http://www.ussg.iu.edu/hypermail/linux/kernel/0512.0/2152.html)
is the resurrection of the connector interface (in addition to /proc) and, as part of the same patch, the ability to get stats per-tgid in addition to per-pid.

More comments in individual patches.

Series

nstimestamp-diff.patch
delayacct-init.patch
delayacct-blkio.patch
delayacct-swapin.patch
delayacct-procfs.patch
delayacct-connector.patch