Yang Yang
a3b2aeac9d
delayacct: track delays from IRQ/SOFTIRQ
...
Delay accounting does not track the delay of IRQ/SOFTIRQ. While
IRQ/SOFTIRQ could have obvious impact on some workloads productivity, such
as when workloads are running on system which is busy handling network
IRQ/SOFTIRQ.
Get the delay of IRQ/SOFTIRQ could help users to reduce such delay. Such
as setting interrupt affinity or task affinity, using kernel thread for
NAPI etc. This is inspired by "sched/psi: Add PSI_IRQ to track
IRQ/SOFTIRQ pressure"[1]. Also fix some code indent problems of older
code.
And update tools/accounting/getdelays.c:
/ # ./getdelays -p 156 -di
print delayacct stats ON
printing IO accounting
PID 156
CPU count real total virtual total delay total delay average
15 15836008 16218149 275700790 18.380ms
IO count delay total delay average
0 0 0.000ms
SWAP count delay total delay average
0 0 0.000ms
RECLAIM count delay total delay average
0 0 0.000ms
THRASHING count delay total delay average
0 0 0.000ms
COMPACT count delay total delay average
0 0 0.000ms
WPCOPY count delay total delay average
36 7586118 0.211ms
IRQ count delay total delay average
42 929161 0.022ms
[1] commit 52b1364ba0b1("sched/psi: Add PSI_IRQ to track IRQ/SOFTIRQ pressure")
Link: https://lkml.kernel.org/r/202304081728353557233@zte.com.cn
Signed-off-by: Yang Yang <yang.yang29@zte.com.cn >
Cc: Jiang Xuexin <jiang.xuexin@zte.com.cn >
Cc: wangyong <wang.yong12@zte.com.cn >
Cc: junhua huang <huang.junhua@zte.com.cn >
Cc: Balbir Singh <bsingharora@gmail.com >
Cc: Ingo Molnar <mingo@redhat.com >
Cc: Jonathan Corbet <corbet@lwn.net >
Cc: Juri Lelli <juri.lelli@redhat.com >
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2023-04-18 16:39:34 -07:00
..
2023-01-19 17:14:18 +01:00
2021-12-21 15:09:46 -08:00
2022-09-15 09:08:09 +02:00
2022-12-07 17:58:47 +01:00
2022-11-17 22:49:39 +01:00
2022-09-21 18:42:55 +01:00
2022-06-28 21:26:05 +02:00
2023-01-27 22:56:18 -08:00
2022-06-28 21:26:05 +02:00
2022-06-28 21:26:05 +02:00
2022-06-28 21:26:05 +02:00
2022-08-09 19:51:05 +02:00
2021-10-02 15:50:45 -04:00
2022-06-28 21:26:05 +02:00
2022-04-19 13:13:47 +01:00
2022-11-08 12:15:19 +01:00
2023-02-06 13:46:42 +01:00
2022-04-29 14:38:03 -07:00
2022-11-23 19:55:22 +01:00
2022-05-13 10:56:10 +02:00
2021-11-01 13:36:08 +00:00
2022-11-04 16:56:41 +01:00
2022-08-11 10:31:19 -07:00
2022-12-22 18:18:37 -08:00
2022-10-31 07:29:47 -04:00
2022-12-27 12:52:10 +01:00
2023-01-21 19:01:59 +01:00
2022-06-28 21:26:05 +02:00
2023-02-17 22:12:04 +01:00
2022-06-07 10:20:42 -07:00
2022-12-05 18:00:58 +01:00
2023-03-06 19:28:19 +01:00
2022-05-18 00:11:18 +08:00
2022-09-15 09:08:09 +02:00
2022-11-05 01:25:57 -04:00
2022-05-15 18:31:28 -06:00
2022-09-24 08:50:04 +02:00
2022-09-24 08:50:04 +02:00
2021-11-26 16:48:59 +01:00
2022-06-28 21:26:05 +02:00
2022-09-30 14:32:35 +02:00
2023-02-10 17:54:45 -08:00
2022-01-26 14:49:46 +01:00
2022-06-28 21:26:05 +02:00
2023-01-20 09:33:22 +00:00
2022-12-07 20:09:18 -08:00
2021-10-18 12:28:53 -07:00
2022-08-23 14:54:54 -05:00
2022-08-02 19:50:47 -07:00
2022-06-28 21:26:05 +02:00
2022-06-20 18:21:25 +02:00
2022-08-29 15:32:13 +02:00
2022-06-03 20:09:27 +08:00
2023-03-01 09:27:00 -08:00
2023-02-13 11:05:12 +00:00
2023-01-23 12:44:18 +00:00
2022-11-21 07:45:29 -07:00
2022-11-28 12:46:23 -08:00
2023-02-07 12:53:53 +01:00
2022-04-04 08:55:23 +02:00
2023-01-18 17:12:37 -08:00
2022-06-28 21:26:05 +02:00
2022-06-28 21:26:05 +02:00
2023-03-16 21:20:32 -07:00
2022-06-28 21:26:05 +02:00
2022-12-01 19:58:50 -08:00
2022-02-21 19:38:17 +10:30
2022-02-17 09:09:37 +01:00
2023-01-26 17:10:38 +01:00
2021-10-07 13:51:11 +02:00
2022-08-10 13:49:50 +01:00
2022-05-04 11:06:13 +02:00
2023-02-16 13:50:50 +01:00
2022-03-11 08:28:05 -08:00
2022-09-20 11:53:32 +01:00
2022-02-18 13:08:18 +00:00
2021-11-15 07:53:10 -08:00
2021-11-15 07:53:10 -08:00
2022-11-14 03:56:37 +05:30
2022-02-18 21:20:06 -08:00
2022-10-28 12:36:34 +08:00
2022-06-28 21:26:05 +02:00
2023-02-06 08:48:26 +00:00
2022-09-15 09:08:09 +02:00
2023-02-06 08:48:26 +00:00
2022-08-18 20:37:35 -07:00
2023-02-01 20:54:27 -08:00
2022-06-28 21:26:05 +02:00
2022-12-12 09:29:56 +00:00
2022-03-11 08:28:27 -08:00
2022-06-28 21:26:05 +02:00
2023-01-25 22:45:00 -08:00
2022-06-28 21:26:05 +02:00
2022-06-28 21:26:05 +02:00
2022-11-22 17:50:36 -08:00
2022-07-17 07:52:46 -07:00
2023-02-21 11:07:23 -08:00
2022-02-04 20:24:45 -08:00
2023-01-06 19:22:53 -08:00
2022-02-28 13:25:48 +01:00
2022-11-30 20:16:49 -04:00
2022-06-28 21:26:05 +02:00
2023-02-06 09:01:00 +00:00
2022-10-17 09:51:26 -05:00
2021-10-05 06:54:16 -05:00
2023-02-06 09:01:00 +00:00
2022-06-28 21:26:05 +02:00
2022-06-28 21:26:05 +02:00
2022-06-28 21:26:05 +02:00
2023-01-19 16:28:57 +01:00
2022-06-03 20:09:27 +08:00
2022-07-12 16:50:44 -04:00
2022-01-11 15:44:27 -05:00
2023-02-15 12:35:26 -05:00
2022-09-20 09:13:38 +02:00
2022-10-19 09:01:44 +02:00
2022-05-25 09:51:36 -07:00
2022-07-08 10:46:53 -07:00
2022-05-10 06:30:05 -06:00
2022-08-29 10:44:08 +02:00
2022-08-02 12:34:03 -04:00
2021-10-21 23:36:28 +02:00
2022-02-09 12:00:11 +00:00
2023-02-13 11:12:31 +00:00
2023-01-04 14:59:25 +01:00
2022-04-24 08:27:37 +01:00
2023-01-07 11:29:29 +01:00
2023-01-18 17:12:37 -08:00
2022-06-28 21:26:05 +02:00
2022-01-11 18:45:02 -08:00
2022-12-01 20:06:06 -08:00
2022-02-19 16:05:54 +00:00
2022-06-28 21:26:05 +02:00
2022-11-03 20:46:32 -07:00
2022-06-28 21:26:05 +02:00
2022-12-08 19:49:21 -08:00
2023-03-16 21:20:32 -07:00
2022-09-07 16:46:03 +02:00
2022-11-18 18:36:54 -08:00
2021-12-27 14:58:37 +00:00
2022-02-25 18:50:12 -05:00
2022-03-13 12:59:35 -04:00
2021-10-21 17:25:17 +02:00
2023-02-14 12:35:02 +01:00
2022-05-20 06:17:33 -06:00
2022-02-27 10:58:04 -08:00
2022-12-09 10:43:46 +00:00
2023-02-14 14:12:54 -08:00
2023-02-07 11:52:00 +00:00
2021-12-23 09:32:51 +01:00
2021-12-27 17:12:58 +01:00
2022-09-20 09:13:38 +02:00
2022-09-29 18:52:05 -07:00
2023-01-04 14:44:13 -07:00
2022-12-01 03:22:20 +00:00
2023-02-02 22:33:24 -08:00
2023-01-06 17:12:39 +00:00
2022-03-18 09:44:19 -05:00
2022-06-28 21:26:05 +02:00
2022-02-17 09:09:38 +01:00
2021-12-10 17:10:55 -08:00
2022-05-09 14:00:07 +02:00
2022-09-24 08:31:54 +02:00
2022-06-28 21:26:05 +02:00
2023-01-06 19:28:01 -08:00
2022-03-13 11:49:53 -05:00
2022-12-27 12:52:12 +01:00
2022-03-23 19:58:40 +01:00
2023-03-16 21:25:45 -07:00
2022-06-28 21:26:05 +02:00
2022-05-03 14:11:58 -07:00
2023-02-17 06:15:53 -07:00
2022-08-03 16:29:08 -07:00
2022-09-20 12:33:22 +02:00
2022-06-28 21:26:05 +02:00
2023-02-08 13:10:15 +01:00
2023-01-19 15:01:20 +01:00
2022-11-03 03:43:05 +01:00
2022-04-07 16:47:12 +02:00
2022-02-02 07:42:41 -08:00
2022-07-18 11:19:17 +01:00
2023-01-26 10:52:18 +01:00
2022-06-01 16:48:05 -07:00
2022-01-08 17:41:00 +09:00
2022-09-11 19:47:04 -05:00
2022-03-31 13:04:44 -07:00
2022-06-28 21:26:05 +02:00
2022-11-09 14:06:51 +01:00
2022-06-30 13:14:35 +02:00
2022-06-28 21:26:05 +02:00
2023-04-18 16:39:34 -07:00
2022-10-28 10:47:42 +01:00
2022-11-17 11:04:23 -08:00
2022-04-26 10:17:03 +02:00
2022-02-03 19:50:49 +01:00
2022-04-06 13:48:02 +01:00
2022-09-27 17:29:09 -07:00
2022-06-27 16:25:41 +02:00
2022-05-25 10:08:59 -07:00
2023-01-29 15:18:34 -07:00
2022-06-28 21:26:05 +02:00
2022-08-31 09:07:53 +02:00
2022-09-11 20:25:48 -07:00
2023-01-31 15:57:19 +01:00
2023-01-15 23:45:15 +02:00
2022-12-07 17:58:46 +01:00
2023-01-22 09:54:31 +01:00
2022-12-07 17:58:46 +01:00
2022-12-07 17:58:46 +01:00
2023-01-22 09:38:20 +01:00
2022-12-28 05:09:46 -05:00
2022-08-11 04:26:08 -04:00
2022-07-11 09:54:37 +02:00
2023-02-09 11:39:14 -07:00
2023-02-20 19:26:56 -05:00
2023-02-20 19:26:56 -05:00
2023-01-20 17:46:00 +02:00
2022-06-28 21:26:05 +02:00
2023-02-15 06:46:22 -05:00
2022-12-12 14:19:23 -08:00
2022-08-11 04:06:40 -04:00
2022-03-28 16:52:58 -04:00
2021-11-04 16:36:54 +01:00
2021-09-29 09:22:29 +02:00
2021-11-01 05:26:48 -04:00
2022-05-10 07:22:28 -04:00
2021-12-06 15:03:05 +01:00
2021-11-10 15:32:38 +01:00
2022-12-12 09:29:56 +00:00
2022-08-11 04:06:40 -04:00
2022-08-16 01:40:24 -04:00
2021-10-08 16:21:53 +01:00
2022-12-05 10:30:47 +01:00