288
社区成员
发帖
与我相关
我的任务
分享mtgpu 驱动在 Linux 下持续刷内核日志 NOTICE: update with a smaller shadow value,导致 journald 单日膨胀数 GB
显卡型号: Moore Threads MTT 设备 1ed5:0201(PCIe 05:00.0)
系统: Ubuntu 22.04.5 LTS (Jammy)
内核: 6.8.0-136-generic
驱动包: musa 3.3.0-server
DKMS 模块: mtgpu 3.0.0
现象
内核日志被以下消息刷屏:
```text
kernel: NOTICE: update with a smaller shadow value, current: 1, update 0
```
• 出现频率:约 94 万条/小时,约 800 万条/天
• /var/log/journal 在一天内涨到 4G
• 来源模块为 mtgpu,消息格式字符串位于 DKMS 源码中的预编译二进制对象
objs/x86_64/mtgpu.core.o_binary 内,普通用户无法通过修改源码消除
影响
1. 快速耗尽磁盘空间
2. 淹没有用日志,排查问题困难
3. 写入放大,SSD 持续高 IO
已尝试的规避手段
• 在 /etc/rsyslog.d/10-ignore-mtgpu.conf 中通过 rsyslog 过滤,可防止消息继续写
入 /var/log/syslog 和 /var/log/kern.log
• 但这无法阻止 systemd-journald 继续存储该消息,/var/log/journal 仍会暴涨
期望
• 驱动不应以 NOTICE 级别高频打印该信息;或者
• 提供模块参数关闭此日志;或者
• 在后续版本中修复