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)

相关推荐
minji...2 分钟前
Linux 进程间通信(一)进程间通信与匿名管道
linux·运维·服务器·数据结构·数据库·c++
feng_you_ying_li3 分钟前
linux的指令终章与权限之用户权限(3)
linux·运维·服务器
s65166549610 分钟前
Linux内核学习-汇编笔记
linux
IMPYLH11 分钟前
Linux 的 csplit 命令
linux·运维·服务器·数据库
cccyi717 分钟前
支持 HTTP 协议的主从 Reactor 高性能服务器组件
服务器·http·reactor
钰衡大师17 分钟前
Nohup 使用技术文档
linux·服务器·运维开发·unix
Sakuyu4346819 分钟前
zabbix源码安装
linux·运维·zabbix
赖亦无31 分钟前
【水动力学】06 Linux + Conda 环境下源码编译安装 pypims (CUDA加速) 避坑指南
linux·运维·conda·pypims·水动力学
穷人小水滴38 分钟前
使用 WebRTC 实现局域网投屏: PC (GNOME ArchLinux) -> 平板 (Android)
android·linux·webrtc·浏览器·js·gnome·投屏
恋红尘40 分钟前
K8S 控制器-资源调度-叩丁狼
linux·docker·kubernetes