Skip to content

taskstats: Improve cumulative time accounting

Michael Holzheu linux-s390 lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 14 repliesIn review
  2. v14 patches 19 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4taskstats: Introduce "struct cdata"fs/binfmt_elf.c fs/exec.c fs/proc/array.c +5 more+100 -860 replies
2/4taskstats: Introduce __account_cdata() functionkernel/exit.c+68 -650 replies
3/4taskstats: Introduce kernel.full_cdata sysctlDocumentation/sysctl/kernel.txt kernel/exit.c kernel/sysctl.c+31 -40 replies
4/4taskstats: Export "cdata_wait" CPU times with taskstatsinclude/linux/taskstats.h kernel/tsacct.c+13 -114 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchBalbir Singh
1/4A-b
2/4
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [patch v2 0/4] taskstats: Improve cumulative time accounting

Version 2
---------
* Integrate review comments (see change log of single patches)
* Add sysctl to switch to new behavior instead of adding the additional cdata_acct to struct signal (see patch 3)

Due to POSIX POSIX.1-2001, the CPU time of processes is not accounted to the cumulative time of the parents, if the parents ignore SIGCHLD or have set SA_NOCLDWAIT. This behaviour has the major drawback that it is not possible to calculate all consumed CPU time of a system by looking at the current tasks. CPU time can be lost.

This patch series adds a new sysctl "full_cdata" that allows to switch the kernel to a mode where also the missing data is accounted to the cumulative counters.

PATCH SET OVERVIEW
------------------
Patches apply on:
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git

[1] Introduce "struct cdata"
[2] Introduce __account_cdata() function
[3] Introduce kernel.full_cdata sysctl
[4] Export "cdata_wait" CPU times with taskstats