The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCHv3 0/2] *** Detect interrupt storm in softlockup ***
@ 2024-01-31 16:45 Bitao Hu
  2024-01-31 16:45 ` [PATCHv3 1/2] watchdog/softlockup: low-overhead detection of interrupt storm Bitao Hu
  2024-01-31 16:45 ` [PATCHv3 2/2] watchdog/softlockup: report the most frequent interrupts Bitao Hu
  0 siblings, 2 replies; 10+ messages in thread
From: Bitao Hu @ 2024-01-31 16:45 UTC (permalink / raw)
  To: dianders, pmladek, kernelfans, liusong; +Cc: linux-kernel, yaoma

Hi, guys.
I have implemented a low-overhead method for detecting interrupt storm
in softlockup. Please review it, all comments are welcome.

Changes from v2 to v3:

- From Liu Song, using enum instead of macro for cpu_stats, shortening
the name 'idx_to_stat' to 'stats', adding 'get_16bit_precesion' instead
of using right shift operations, and using 'struct irq_counts'.

- From kernel robot test, using '__this_cpu_read' and '__this_cpu_write'
instead of accessing to an per-cpu array directly, in order to avoid
this warning.
'sparse: incorrect type in initializer (different modifiers)'.

Changes from v1 to v2:

- From Douglas, optimize the memory of cpustats. With the maximum number
of CPUs, that's now this.
2 * 8192 * 4 + 1 * 8192 * 5 * 4 + 1 * 8192 = 237,568 bytes.

- From Liu Song, refactor the code format and add necessary comments.

- From Douglas, use interrupt counts instead of interrupt time to
determine the cause of softlockup.

- Remove the cmdline parameter added in PATCHv1.

Bitao Hu (2):
  watchdog/softlockup: low-overhead detection of interrupt storm
  watchdog/softlockup: report the most frequent interrupts

 kernel/watchdog.c | 238 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 238 insertions(+)

-- 
2.37.1 (Apple Git-137.1)


^ permalink raw reply	[flat|nested] 10+ messages in thread
* [PATCHv3 0/2] *** Detect interrupt storm in softlockup ***
@ 2024-01-31 17:17 Bitao Hu
  2024-01-31 17:17 ` [PATCHv3 2/2] watchdog/softlockup: report the most frequent interrupts Bitao Hu
  0 siblings, 1 reply; 10+ messages in thread
From: Bitao Hu @ 2024-01-31 17:17 UTC (permalink / raw)
  To: dianders, akpm, pmladek, kernelfans, liusong; +Cc: linux-kernel, yaoma

Hi, guys.
I have implemented a low-overhead method for detecting interrupt storm
in softlockup. Please review it, all comments are welcome.

Changes from v2 to v3:

- From Liu Song, using enum instead of macro for cpu_stats, shortening
the name 'idx_to_stat' to 'stats', adding 'get_16bit_precesion' instead
of using right shift operations, and using 'struct irq_counts'.

- From kernel robot test, using '__this_cpu_read' and '__this_cpu_write'
instead of accessing to an per-cpu array directly, in order to avoid
this warning.
'sparse: incorrect type in initializer (different modifiers)'

Changes from v1 to v2:

- From Douglas, optimize the memory of cpustats. With the maximum number
of CPUs, that's now this.
2 * 8192 * 4 + 1 * 8192 * 5 * 4 + 1 * 8192 = 237,568 bytes.

- From Liu Song, refactor the code format and add necessary comments.

- From Douglas, use interrupt counts instead of interrupt time to
determine the cause of softlockup.

- Remove the cmdline parameter added in PATCHv1.

Bitao Hu (2):
  watchdog/softlockup: low-overhead detection of interrupt storm
  watchdog/softlockup: report the most frequent interrupts

 kernel/watchdog.c | 240 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 240 insertions(+)

-- 
2.37.1 (Apple Git-137.1)


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-02-02 15:02 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-31 16:45 [PATCHv3 0/2] *** Detect interrupt storm in softlockup *** Bitao Hu
2024-01-31 16:45 ` [PATCHv3 1/2] watchdog/softlockup: low-overhead detection of interrupt storm Bitao Hu
2024-01-31 16:45 ` [PATCHv3 2/2] watchdog/softlockup: report the most frequent interrupts Bitao Hu
2024-01-31 16:54   ` Bitao Hu
  -- strict thread matches above, loose matches on Subject: below --
2024-01-31 17:17 [PATCHv3 0/2] *** Detect interrupt storm in softlockup *** Bitao Hu
2024-01-31 17:17 ` [PATCHv3 2/2] watchdog/softlockup: report the most frequent interrupts Bitao Hu
2024-02-01  1:46   ` Liu Song
2024-02-02 14:22     ` Bitao Hu
2024-02-01  2:23   ` Doug Anderson
2024-02-02 14:22     ` Bitao Hu
2024-02-02 15:02       ` Doug Anderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox