I'm getting "NVRM: os_raise_smp_barrier()" messages in syslog and dmesg at a rate of 4-6 per minute; I think it's from the Nvidia graphics driver.
The system behaves normally, but the messages clutter up the logs so I can't find any real issues. (At the moment dmesg is 4,000 lines and 3,925 of those lines are the same message.)
Is it possible to suppress or redirect these messages?
Example log snippet:
Mar 13 20:38:04 desktop kernel: [175481.413559] NVRM: os_raise_smp_barrier(), invalid context!
Mar 13 20:38:04 desktop kernel: [175481.430904] NVRM: os_raise_smp_barrier(), invalid context!
Mar 13 20:38:45 desktop kernel: [175522.223337] NVRM: os_raise_smp_barrier(), invalid context!
Mar 13 20:38:45 desktop kernel: [175522.239655] NVRM: os_raise_smp_barrier(), invalid context!
Mar 13 20:38:47 desktop kernel: [175523.556706] NVRM: os_raise_smp_barrier(), invalid context!
Mar 13 20:38:47 desktop kernel: [175523.572015] NVRM: os_raise_smp_barrier(), invalid context!
I have half an answer: I don't know how to block specific drivers, but rsyslog has a mechanism for filtering log messages on content:
Edit the rsyslog configuration file:
Add a text filter at the top of the file, and redirect the messages matching the filter to a separate log:
Save the file and restart rsyslog:
Check that the restart worked:
And
/var/log
should now contain a new log filejunk.log
containing the filtered messages.So far so good, the only drawback is that it doesn't work for
dmesg
.