由于 nouveau 导致日志文件膨胀

由于 nouveau 导致日志文件膨胀

我的 kern.log 和 syslog 文件都已增长到 >50Gb 并包含几亿行:

Feb 23 23:32:43 Yawning-Angel kernel: [396111.179453] nouveau E[   PFIFO][0000:05:00.0] PBDMA0: ch 2 [Xorg[1074]] subc 0 mthd 0x001c data 0x00001004
Feb 23 23:32:43 Yawning-Angel kernel: [396111.179469] nouveau E[   PFIFO][0000:05:00.0] PBDMA0: ACQUIRE
Feb 23 23:32:43 Yawning-Angel kernel: [396111.179472] nouveau E[   PFIFO][0000:05:00.0] PBDMA0: ch 1 [DRM] subc 0 mthd 0x001c data 0x00001004
Feb 23 23:32:43 Yawning-Angel kernel: [396111.179489] nouveau E[   PFIFO][0000:05:00.0] PBDMA0: ACQUIRE
Feb 23 23:32:43 Yawning-Angel kernel: [396111.179490] nouveau E[   PFIFO][0000:05:00.0] PBDMA0: ch 2 [Xorg[1074]] subc 0 mthd 0x001c data 0x00001004
Feb 23 23:32:43 Yawning-Angel kernel: [396111.179507] nouveau E[   PFIFO][0000:05:00.0] PBDMA0: ACQUIRE
Feb 23 23:32:43 Yawning-Angel kernel: [396111.179509] nouveau E[   PFIFO][0000:05:00.0] PBDMA0: ch 1 [DRM] subc 0 mthd 0x001c data 0x00001004
Feb 23 23:32:43 Yawning-Angel kernel: [396111.179525] nouveau E[   PFIFO][0000:05:00.0] PBDMA0: ACQUIRE
Feb 23 23:32:43 Yawning-Angel kernel: [396111.179527] nouveau E[   PFIFO][0000:05:00.0] PBDMA0: ch 2 [Xorg[1074]] subc 0 mthd 0x001c data 0x00001004
Feb 23 23:32:43 Yawning-Angel kernel: [396111.179543] nouveau E[   PFIFO][0000:05:00.0] PBDMA0: ACQUIRE
Feb 23 23:32:43 Yawning-Angel kernel: [396111.179545] nouveau E[   PFIFO][0000:05:00.0] PBDMA0: ch 1 [DRM] subc 0 mthd 0x001c data 0x00001004
Feb 23 23:32:43 Yawning-Angel kernel: [396111.179562] nouveau E[   PFIFO][0000:05:00.0] PBDMA0: ACQUIRE
Feb 23 23:32:43 Yawning-Angel kernel: [396111.179564] nouveau E[   PFIFO][0000:05:00.0] PBDMA0: ch 2 [Xorg[1074]] subc 0 mthd 0x001c data 0x00001004
Feb 23 23:32:43 Yawning-Angel kernel: [396111.179581] nouveau E[   PFIFO][0000:05:00.0] PBDMA0: ACQUIRE
Feb 23 23:32:43 Yawning-Angel kernel: [396111.179584] nouveau E[   PFIFO][0000:05:00.0] PBDMA0: ch 1 [DRM] subc 0 mthd 0x001c data 0x00001004
Feb 23 23:32:43 Yawning-Angel kernel: [396111.179600] nouveau E[   PFIFO][0000:05:00.0] PBDMA0: ACQUIRE
Feb 23 23:32:43 Yawning-Angel kernel: [396111.179602] nouveau E[   PFIFO][0000:05:00.0] PBDMA0: ch 2 [Xorg[1074]] subc 0 mthd 0x001c data 0x00001004
Feb 23 23:32:43 Yawning-Angel kernel: [396111.179619] nouveau E[   PFIFO][0000:05:00.0] PBDMA0: ACQUIRE

我在 Google 上没能找到任何类似的东西。

有任何想法吗?

答案1

刚刚遇到了同样的问题。

我不知道它是从哪里来的,但重新启动为我解决了这个问题。

然后,我通过将 logrotate 的默认值从固定时间更改为大小相关,使我的系统更加/etc/logrotate.conf健壮/etc/logrotate.d/*

这样,我就可以更长地了解慢日志文件的历史记录,并更好地防止日志失控导致的磁盘溢出。

相关内容