* [PATCH] Documentation: Improve crash_kexec_post_notifiers description
@ 2024-08-30 14:03 Guilherme G. Piccoli
2024-08-30 17:15 ` Stephen Brennan
0 siblings, 1 reply; 3+ messages in thread
From: Guilherme G. Piccoli @ 2024-08-30 14:03 UTC (permalink / raw)
To: kexec, linux-doc
Cc: bhe, vgoyal, dyoung, corbet, linux-kernel, linux-debuggers,
stephen.s.brennan, kernel, kernel-dev, Guilherme G. Piccoli
Be more clear about the downsides, the upsides (yes, there are some!)
and about code that unconditionally sets that.
Signed-off-by: Guilherme G. Piccoli <gpiccoli@igalia.com>
---
Documentation/admin-guide/kernel-parameters.txt | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt
index efc52ddc6864..cb25dc5cbe9a 100644
--- a/Documentation/admin-guide/kernel-parameters.txt
+++ b/Documentation/admin-guide/kernel-parameters.txt
@@ -913,12 +913,16 @@
the parameter has no effect.
crash_kexec_post_notifiers
- Run kdump after running panic-notifiers and dumping
- kmsg. This only for the users who doubt kdump always
- succeeds in any situation.
- Note that this also increases risks of kdump failure,
- because some panic notifiers can make the crashed
- kernel more unstable.
+ Only jump to kdump kernel after running the panic
+ notifiers and dumping kmsg. This option increases the
+ risks of a kdump failure, since some panic notifiers
+ can make the crashed kernel more unstable. As a bright
+ side, it might allow to collect more data on dmesg like
+ stack traces from other CPUs or extra data dumped by
+ panic_print. This is usually only for users who doubt
+ kdump will succeed every time. Notice that some code
+ enables this option unconditionally, like Hyper-V,
+ PowerPC (fadump) and AMD SEV.
crashkernel=size[KMG][@offset[KMG]]
[KNL,EARLY] Using kexec, Linux can switch to a 'crash kernel'
--
2.46.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Documentation: Improve crash_kexec_post_notifiers description
2024-08-30 14:03 [PATCH] Documentation: Improve crash_kexec_post_notifiers description Guilherme G. Piccoli
@ 2024-08-30 17:15 ` Stephen Brennan
2024-08-30 18:23 ` Guilherme G. Piccoli
0 siblings, 1 reply; 3+ messages in thread
From: Stephen Brennan @ 2024-08-30 17:15 UTC (permalink / raw)
To: Guilherme G. Piccoli, kexec, linux-doc
Cc: bhe, vgoyal, dyoung, corbet, linux-kernel, linux-debuggers,
kernel, kernel-dev, Guilherme G. Piccoli
"Guilherme G. Piccoli" <gpiccoli@igalia.com> writes:
> Be more clear about the downsides, the upsides (yes, there are some!)
> and about code that unconditionally sets that.
>
> Signed-off-by: Guilherme G. Piccoli <gpiccoli@igalia.com>
> ---
> Documentation/admin-guide/kernel-parameters.txt | 16 ++++++++++------
> 1 file changed, 10 insertions(+), 6 deletions(-)
>
> diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt
> index efc52ddc6864..cb25dc5cbe9a 100644
> --- a/Documentation/admin-guide/kernel-parameters.txt
> +++ b/Documentation/admin-guide/kernel-parameters.txt
> @@ -913,12 +913,16 @@
> the parameter has no effect.
>
> crash_kexec_post_notifiers
> - Run kdump after running panic-notifiers and dumping
> - kmsg. This only for the users who doubt kdump always
> - succeeds in any situation.
> - Note that this also increases risks of kdump failure,
> - because some panic notifiers can make the crashed
> - kernel more unstable.
> + Only jump to kdump kernel after running the panic
> + notifiers and dumping kmsg. This option increases the
> + risks of a kdump failure, since some panic notifiers
> + can make the crashed kernel more unstable. As a bright
> + side, it might allow to collect more data on dmesg like
> + stack traces from other CPUs or extra data dumped by
> + panic_print. This is usually only for users who doubt
> + kdump will succeed every time.
This is definitely clearer and an improvement! But I didn't (and still
don't) love the phrase "users who doubt kdump will succeed" because I
think that implies user error or silly beliefs.
What if these two sentences read something like:
In configurations where kdump may not be reliable, running the panic
notifiers can allow collecting more data on dmesg, like stack traces
from other CPUS or extra data dumped by panic_print.
> Notice that some code
> + enables this option unconditionally, like Hyper-V,
> + PowerPC (fadump) and AMD SEV.
Yes, great addition.
With or without my suggestions it's an improvement, so:
Reviewed-by: Stephen Brennan <stephen.s.brennan@oracle.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Documentation: Improve crash_kexec_post_notifiers description
2024-08-30 17:15 ` Stephen Brennan
@ 2024-08-30 18:23 ` Guilherme G. Piccoli
0 siblings, 0 replies; 3+ messages in thread
From: Guilherme G. Piccoli @ 2024-08-30 18:23 UTC (permalink / raw)
To: Stephen Brennan, kexec, linux-doc
Cc: bhe, vgoyal, dyoung, corbet, linux-kernel, linux-debuggers,
kernel, kernel-dev
On 30/08/2024 14:15, Stephen Brennan wrote:
> [...]
>
> This is definitely clearer and an improvement! But I didn't (and still
> don't) love the phrase "users who doubt kdump will succeed" because I
> think that implies user error or silly beliefs.
>
> What if these two sentences read something like:
>
> In configurations where kdump may not be reliable, running the panic
> notifiers can allow collecting more data on dmesg, like stack traces
> from other CPUS or extra data dumped by panic_print.
>
>> Notice that some code
>> + enables this option unconditionally, like Hyper-V,
>> + PowerPC (fadump) and AMD SEV.
>
> Yes, great addition.
>
> With or without my suggestions it's an improvement, so:
>
> Reviewed-by: Stephen Brennan <stephen.s.brennan@oracle.com>
>
Thanks Stephen, I agree - your wording sounds better.
I've incorporated that in the just sent V2.
Cheers,
Guilherme
P.S. I'll be OOO some days, so expect a bit of delay in case there are
more reviews/interactions.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-08-30 18:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-30 14:03 [PATCH] Documentation: Improve crash_kexec_post_notifiers description Guilherme G. Piccoli
2024-08-30 17:15 ` Stephen Brennan
2024-08-30 18:23 ` Guilherme G. Piccoli
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).