Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"sudo modprobe msr" failed #3497

Closed
ProjectYoung opened this issue Aug 23, 2018 · 1 comment
Closed

"sudo modprobe msr" failed #3497

ProjectYoung opened this issue Aug 23, 2018 · 1 comment

Comments

@ProjectYoung
Copy link

I successfully installed msr-tools (sudo apt install msr-tools), and try to run:
rdmsr -p0 0x1a0 -f 38:38
and get the following error:
rdmsr:open: No such file or directory

As the post suggets, I tried to load the “msr” module by the following command:
sudo modprobe msr
and get this following error:

modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.4.0-17134-Microsoft/modules.dep.bin'
modprobe: FATAL: Module msr not found in directory /lib/modules/4.4.0-17134-Microsoft

I searched on the internet but got no luck. However, path dev/cpu/CPUNUM/msr appears many times, but this directory does not exist on my computer, so I guess it's not supported in WSL?

I also tried cpupower but when I ran:
cpupower frequency-info
I got a warning:
WARNING: cpupower not found for kernel 4.4.0-17134

I'm new to both Ubuntu and WSL, so I'm not sure if it's related to WSL. Sorry if it's irrelevant.

@therealkenc
Copy link
Collaborator

modprobe doesn't work on WSL unfortunately, and by extension, in your case, neither does cpupower. That /dev/cpu/#/msr device is enabled by the module that you can't load. If you want to disable turbo-boost, you can do it from the Windows side to same effect. In principle you could open a UserVoice to request the functionality be baked into WSL. Your question isn't irrelevant. It can be confusing what and is not supported. There is some discussion on modprobe in #1893.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants