Unrecognized MSR spam in dmesg with kernel 5.15
pikrzysztof opened this issue · 4 comments
I deployed latest pcm-exporter and my dmesg is flooded with
[46926812.402900] msr: Write to unrecognized MSR 0xc8d by pcm-sensor-serv (pid: 2346865).
[46926812.418319] msr: See https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/about for details.
[46926842.411011] filter_write: 11110 callbacks suppressed
[46926842.411016] msr: Write to unrecognized MSR 0xc8d by pcm-sensor-serv (pid: 2346863).
[46926842.428229] msr: See https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/about for details.
what is the output of this command: cat /sys/module/msr/parameters/allow_writes
root@c103.our1.kentik.com:~# cat /sys/module/msr/parameters/allow_writes
default
root@c103.our1.kentik.com:~# grep MSR /boot/config-5.15.46
CONFIG_X86_DEBUGCTLMSR=y
CONFIG_X86_MSR=m
CONFIG_SCSI_ARCMSR=m
OK, I think setting allow_writes to on
fixed this problem.
I think the issue is that I'm running the service from inside docker container as described in https://github.com/intel/pcm/blob/master/doc/DOCKER_README.md
The sad part is that the invocation docker run -d --name pcm --cap-add=SYS_ADMIN --cap-add=SYS_RAWIO --device=/dev/cpu --device=/dev/mem -v /sys/firmware/acpi/tables/MCFG:/pcm/sys/firmware/acpi/tables/MCFG:ro -v /proc/bus/pci/:/pcm/proc/bus/pci/ -v /proc/sys/kernel/nmi_watchdog:/pcm/proc/sys/kernel/nmi_watchdog -p 9738:9738 ghcr.io/opcm/pcm
missed -v /sys:/sys:rw
part so that https://github.com/intel/pcm/blob/master/src/msr.cpp#L217-L246 is not able to do its job.
I suggest updating docker run
invocation.
thanks for testing and the suggestion. It will be integrated.