delayacct: update docs and fix some spelling errors

Update delay-accounting.rst to include the 'delay max' in the output of
getdelays, and fix some spelling errors before.

Link: https://lkml.kernel.org/r/20241213192700771XKZ8H30OtHSeziGqRVMs0@zte.com.cn
Signed-off-by: Yaxin Wang <wang.yaxin@zte.com.cn>
Signed-off-by: Jiang Kun <jiang.kun2@zte.com.cn>
Cc: Balbir Singh <bsingharora@gmail.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Fan Yu <fan.yu9@zte.com.cn>
Cc: Peilin He <he.peilin@zte.com.cn>
Cc: tuqiang <tu.qiang35@zte.com.cn>
Cc: Wang Yong <wang.yong12@zte.com.cn>
Cc: xu xin <xu.xin16@zte.com.cn>
Cc: ye xingchen <ye.xingchen@zte.com.cn>
Cc: Yunkai Zhang <zhang.yunkai@zte.com.cn>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
Yaxin Wang 2024-12-13 19:27:00 +08:00 committed by Andrew Morton
parent 036e1b3af4
commit e1698e9117
2 changed files with 20 additions and 20 deletions

View File

@ -100,29 +100,29 @@ Get delays, since system boot, for pid 10::
# ./getdelays -d -p 10 # ./getdelays -d -p 10
(output similar to next case) (output similar to next case)
Get sum of delays, since system boot, for all pids with tgid 5:: Get sum and peak of delays, since system boot, for all pids with tgid 242::
# ./getdelays -d -t 5 bash-4.4# ./getdelays -d -t 242
print delayacct stats ON print delayacct stats ON
TGID 5 TGID 242
CPU count real total virtual total delay total delay average CPU count real total virtual total delay total delay average delay max
8 7000000 6872122 3382277 0.423ms 239 296000000 307724885 1127792 0.005ms 0.238382ms
IO count delay total delay average IO count delay total delay average delay max
0 0 0.000ms 0 0 0.000ms 0.000000ms
SWAP count delay total delay average SWAP count delay total delay average delay max
0 0 0.000ms 0 0 0.000ms 0.000000ms
RECLAIM count delay total delay average RECLAIM count delay total delay average delay max
0 0 0.000ms 0 0 0.000ms 0.000000ms
THRASHING count delay total delay average THRASHING count delay total delay average delay max
0 0 0.000ms 0 0 0.000ms 0.000000ms
COMPACT count delay total delay average COMPACT count delay total delay average delay max
0 0 0.000ms 0 0 0.000ms 0.000000ms
WPCOPY count delay total delay average WPCOPY count delay total delay average delay max
0 0 0.000ms 230 19100476 0.083ms 0.383822ms
IRQ count delay total delay average IRQ count delay total delay average delay max
0 0 0.000ms 0 0 0.000ms 0.000000ms
Get IO accounting for pid 1, it works only with -p:: Get IO accounting for pid 1, it works only with -p::

View File

@ -93,7 +93,7 @@ void __delayacct_tsk_init(struct task_struct *tsk)
/* /*
* Finish delay accounting for a statistic using its timestamps (@start), * Finish delay accounting for a statistic using its timestamps (@start),
* accumalator (@total) and @count * accumulator (@total) and @count
*/ */
static void delayacct_end(raw_spinlock_t *lock, u64 *start, u64 *total, u32 *count, u64 *max) static void delayacct_end(raw_spinlock_t *lock, u64 *start, u64 *total, u32 *count, u64 *max)
{ {