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)

相关推荐
用什么都重名31 分钟前
Docker 镜像源配置指南
运维·docker·容器
河南博为智能科技有限公司41 分钟前
高集成度国产八串口联网服务器:工业级多设备联网解决方案
大数据·运维·服务器·数据库·人工智能·物联网
Savvy..44 分钟前
天机学堂-Day01
linux·服务器·网络
忙里偷闲学python1 小时前
containerd_buildkitd构建镜像,告别docker构建
运维·docker·容器
w***15311 小时前
ubuntu 安装 Redis
linux·redis·ubuntu
liweiweili1262 小时前
Linux 中替换某个目录下所有文件中的特定字符串
linux·运维·服务器
wanhengidc2 小时前
云手机 多端互通 科技
运维·服务器·科技·游戏·智能手机
init_23612 小时前
【BGP入门专题-3】bgp路由传递规则与路由属性1
运维·网络
弓弧名家_玄真君3 小时前
Ubuntu 20.04.3 LTS 安装vnc (Xfce4 + Xvfb)
linux·运维·ubuntu