Reduce CPU consumption after panic
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest2 patches 13 repliesIn review
- v22 patches 8 repliesSuperseded
- v12 patches 5 repliesSuperseded
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | panic: Allow for dynamic custom behavior after panicinclude/ kernel/ | +24 | 0 replies | |
| 2/2 | x86/panic: Add x86_panic_handler as default post-panic behaviorarch/ | +17 | 0 replies |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Jan Glauber (DigitalOcean) |
|---|---|
| 1/2 | R-b |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v3 0/2] Reduce CPU consumption after panic
From: Carlos Bilbao <[email protected]>
Provide a priority-based mechanism to set the behavior of the kernel at the post-panic stage -- the current default is a waste of CPU except for cases with console that generate insightful output.
In v1 cover letter [1], I illustrated the potential to reduce unnecessary CPU resources with an experiment with VMs, reducing more than 70% of CPU usage. The main delta of v2 [2] was that, instead of a weak function that archs can overwrite, we provided a flexible priority-based mechanism (following suggestions by Sean Christopherson), panic_set_handling().
Compared to v2 [2], the main changes in this third version are that (1) we don't set a default function for panic_halt() and (2) we provide a comment for the x86 implementation describing the check for console.
[1] https://lore.kernel.org/all/[email protected]/
[2] https://lore.kernel.org/all/[email protected]/
Carlos:
panic: Allow for dynamic custom behavior after panic x86/panic: Add x86_panic_handler as default post-panic behavior
--- arch/x86/kernel/setup.c | 17 +++++++++++++++++ include/linux/panic.h | 2 ++ kernel/panic.c | 22 ++++++++++++++++++++++ 3 files changed, 41 insertions(+)