在Windows11 上,一些进程被设置了PowerThrottling (电源节流)属性,该模式可以限制进程cpu使用,一部分进程开启了但是在任务管理器中没有显示出来。

vmware-vmx.exe 被限制cpu使用,导致虚拟机内性能低下。可以通过以下命令禁止PowerThrottling ,或通过管理员权限运行vmware.exe解决。

powercfg /powerthrottling disable /path "C:\\Program Files (x86)\\VMware\\VMware Workstation\\x64\\vmware-vmx.exe"

一些参考资料:

https://learn.microsoft.com/zh-cn/windows/win32/api/processthreadsapi/nf-processthreadsapi-setprocessinformation

https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/ns-processthreadsapi-process_power_throttling_state