Linux: console: printk: console_no_auto_verbose

这个参数是说,可以讲printk打印verbose,更多log的功能禁掉,从这个commit看,这些更多的log没有什么用。建议是在波特率比较低的环境下可以禁掉。其他情况还是开着,可以打印更多的信息。

https://github.com/rtreffer/ubuntu-kernel-pinephone-pro/commit/10102a890b543a8a08457dc69fa55bc032403c7d

bash 复制代码
console_verbose() increases console loglevel to
CONSOLE_LOGLEVEL_MOTORMOUTH, which provides more information
to debug a panic/oops.

Unfortunately, in Arista we maintain some DUTs (Device Under Test) that
are configured to have 9600 baud rate. While verbose console messages
have their value to post-analyze crashes, on such setup they:
- may prevent panic/oops messages being printed
- take too long to flush on console resulting in watchdog reboot

In all our setups we use kdump which saves dmesg buffer after panic,
so in reality those extra messages on console provide no additional value,
but rather add risk of not getting to __crash_kexec().

Provide printk.console_no_auto_verbose boot parameter, which allows
to switch off printk being verbose on oops/panic/lockdep.

printk.console_no_auto_verbose=

Disable console loglevel raise on oops, panic

or lockdep-detected issues (only if lock debug is on).

With an exception to setups with low baudrate on

serial console, keeping this 0 is a good choice

in order to provide more debug information.

Format:

default: 0 (auto_verbose is enabled)

相关推荐
无足鸟ICT5 分钟前
【RHCA+】patch命令(更新补丁)
linux·运维·服务器
zhengqweasd7 分钟前
Linux 软中断原理:网卡报文是怎么抢占 CPU 的
linux·运维·网络
ESDWAN10 分钟前
为什么跨境网络白天正常、晚上卡顿?如何分析时段性?
linux·网络·php·网络运维
X1A0RAN23 分钟前
Linux nohup 命令完全指南
linux·运维·服务器
对讲机数码科普31 分钟前
业余无线电野外中继寒地故障排查|东北林区 VHF/UHF 台站四季射频环境适配方案
运维·网络
Shadow(⊙o⊙)32 分钟前
仿muduo实现高并发服务器——读写缓冲区Buffer.hpp
运维·服务器
黄焖鸡能干四碗33 分钟前
大数据平台安全防护策略方案(PPT)
大数据·运维·网络·安全·web安全·制造
C++ 老炮儿的技术栈41 分钟前
char 造成的数据溢出
linux·服务器·c语言·c++·算法·c
qetfw43 分钟前
Bash 内置与外部命令:type、command 与 builtin 验证
linux·开发语言·bash
虚无的纽扣44 分钟前
【Linux】信号(上):一个进程是怎么“被通知”的
linux·运维·驱动开发