From: Feng Tang <feng.tang@linux.alibaba.com>
To: "Guilherme G. Piccoli" <gpiccoli@igalia.com>
Cc: linux-doc@vger.kernel.org, corbet@lwn.net,
skhan@linuxfoundation.org, rdunlap@infradead.org,
andriy.shevchenko@linux.intel.com, kees@kernel.org,
tony.luck@intel.com, pmladek@suse.com,
linux-kernel@vger.kernel.org, kernel-dev@igalia.com,
kernel@gpiccoli.net
Subject: Re: [PATCH] docs: panic: Disclaimer about console verbosity when using panic_print with pstore
Date: Fri, 7 Aug 2026 13:50:06 +0800 [thread overview]
Message-ID: <anVyDvgyBi77RSTA@U-2FWC9VHC-2323.local> (raw)
In-Reply-To: <20260805205026.1699568-1-gpiccoli@igalia.com>
On Wed, Aug 05, 2026 at 05:49:04PM -0300, Guilherme G. Piccoli wrote:
> Users of panic_print / panic_sys_info are usually aware of the potentially
> huge amount of information displayed with such options - their goal by
> using them is indeed to dump more information during panic!
>
> What might come unnoticed at first is the impact that the console_verbose()
> call on panic path has, specially in cases that users rely on pstore as
> a means to collect the panic logs. Recent experience shows that dumping
> all tasks in an ARM64 system (with qcom_geni tty driver) gets a 2 minute
Indeed, the all task call stack dumping is quite chatty :) which is
usually my last resort for debugging.
> delay on panic time due to writing such information to console. But in
> that case, pstore was used, so there was no need for console printing,
> and suppressing that reduced the full time to less than 1 second.
>
> The option "printk.console_no_auto_verbose" aims exactly at this use
> case: avoid automatically increasing the loglevel during panic path.
> So, let's officially document this to avoid users wasting their time
> either on long panic printing or debugging the panic delays.
>
> Signed-off-by: Guilherme G. Piccoli <gpiccoli@igalia.com>
Reviewed-by: Feng Tang <feng.tang@linux.alibaba.com>
Thanks,
Feng
> ---
> Documentation/admin-guide/kernel-parameters.txt | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt
> index b5493a7f8f22..04c0ef2cf910 100644
> --- a/Documentation/admin-guide/kernel-parameters.txt
> +++ b/Documentation/admin-guide/kernel-parameters.txt
> @@ -4862,6 +4862,9 @@ Kernel parameters
> so there are risks of losing older messages in the log.
> Use this option carefully, maybe worth to setup a
> bigger log buffer with "log_buf_len" along with this.
> + Also consider using "printk.console_no_auto_verbose=Y"
> + if using this along with pstore, to avoid extra delays
> + due to increased console verbosity during panic.
>
> panic_sys_info= A comma separated list of extra information to be dumped
> on panic.
> @@ -4877,6 +4880,8 @@ Kernel parameters
> blocked_tasks: print only tasks in uninterruptible (blocked) state
>
> This is a human readable alternative to the 'panic_print' option.
> + Please be aware of the caveats using this option, check
> + the panic_print information above regarding delays.
>
> panic_console_replay
> When panic happens, replay all kernel messages on
> --
> 2.50.1
prev parent reply other threads:[~2026-08-07 5:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-05 20:49 [PATCH] docs: panic: Disclaimer about console verbosity when using panic_print with pstore Guilherme G. Piccoli
2026-08-05 21:30 ` Bradley Morgan
2026-08-07 5:50 ` Feng Tang [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=anVyDvgyBi77RSTA@U-2FWC9VHC-2323.local \
--to=feng.tang@linux.alibaba.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=corbet@lwn.net \
--cc=gpiccoli@igalia.com \
--cc=kees@kernel.org \
--cc=kernel-dev@igalia.com \
--cc=kernel@gpiccoli.net \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pmladek@suse.com \
--cc=rdunlap@infradead.org \
--cc=skhan@linuxfoundation.org \
--cc=tony.luck@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox