diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2022-06-06 01:58:27 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2022-06-06 01:58:27 +0200 |
commit | e17fee8976c3d2ccf9add6d6c8912a37b025d840 (patch) | |
tree | 86f877aad442ee8ac003e74b4427d653c26d6878 /Documentation | |
parent | bluetooth: don't use bitmaps for random flag accesses (diff) | |
parent | delayacct: track delays from write-protect copy (diff) | |
download | linux-e17fee8976c3d2ccf9add6d6c8912a37b025d840.tar.xz linux-e17fee8976c3d2ccf9add6d6c8912a37b025d840.zip |
Merge tag 'mm-nonmm-stable-2022-06-05' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
Pull delay-accounting update from Andrew Morton:
"A single featurette for delay accounting.
Delayed a bit because, unusually, it had dependencies on both the
mm-stable and mm-nonmm-stable queues"
* tag 'mm-nonmm-stable-2022-06-05' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm:
delayacct: track delays from write-protect copy
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/accounting/delay-accounting.rst | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Documentation/accounting/delay-accounting.rst b/Documentation/accounting/delay-accounting.rst index 197fe319cbec..241d1a87f2cd 100644 --- a/Documentation/accounting/delay-accounting.rst +++ b/Documentation/accounting/delay-accounting.rst @@ -15,6 +15,7 @@ c) swapping in pages d) memory reclaim e) thrashing page cache f) direct compact +g) write-protect copy and makes these statistics available to userspace through the taskstats interface. @@ -48,7 +49,7 @@ this structure. See for a description of the fields pertaining to delay accounting. It will generally be in the form of counters returning the cumulative delay seen for cpu, sync block I/O, swapin, memory reclaim, thrash page -cache, direct compact etc. +cache, direct compact, write-protect copy etc. Taking the difference of two successive readings of a given counter (say cpu_delay_total) for a task will give the delay @@ -117,6 +118,8 @@ Get sum of delays, since system boot, for all pids with tgid 5:: 0 0 0ms COMPACT count delay total delay average 0 0 0ms + WPCOPY count delay total delay average + 0 0 0ms Get IO accounting for pid 1, it works only with -p:: |