Hello,
My scenario is this: normal
users running likwid-perfctr, in systems with kernel 2.6.32-358.6.2 (Scientific
Linux 6.4) and msr module compiled into kernel (not as a module) can't execute "likwid-perfctr". When an user execute "likwid-perfctr", he got this message:
likwid-perfctr -c 0 ./PROGRAM
ERROR
rdmsr: failed to open '/dev/cpu/0/msr': Operation not permitted!
Please check if the msr module is loaded and the device
file has correct permissions.
Alternatively you might want to look into (sys)daemonmode.
MSR module is compiled into kernel:
cat /boot/config-2.6.32-358.6.2.el6.x86_64 | grep -i msr
CONFIG_X86_DEBUGCTLMSR=y
CONFIG_X86_MSR=y
CONFIG_SCSI_ARCMSR=m
CONFIG_SCSI_ARCMSR_AER=y
And permissions in /dev/cpu/*/msr:
0:
crw-rw-rw- 1 root root 202, 0 dic 16 12:50 msr
1:
crw-rw-rw- 1 root root 202, 1 dic 16 12:50 msr
2:
crw-rw-rw- 1 root root 202, 2 dic 16 12:50 msr
3:
crw-rw-rw- 1 root root 202, 3 dic 16 12:50 msr
4:
crw-rw-rw- 1 root root 202, 4 dic 16 12:50 msr
5:
crw-rw-rw- 1 root root 202, 5 dic 16 12:50 msr
6:
crw-rw-rw- 1 root root 202, 6 dic 16 12:50 msr
7:
crw-rw-rw- 1 root root 202, 7 dic 16 12:50 msr
(I change manually in /etc/rc.local with "chmod o+rw
/dev/cpu/*/msr")
What can I do?
Thanks.