背景
UNRAID中安装的虚拟机占用的CPU有些高,使用htop查看发现Windows空闲状态下占用比较高,Windows虚拟机没有运行任何程序却会占用15%左右的单核CPU,而运行的Linux(Debian)和群晖DSM7.2.x却没这个问题。 而且使用的CPU配置为12代并不低。
根据网络研究发现一下方案来解决:
方法1
配置文件添加:<hyperv> <synic state='on'/> <stimer state='on'/> </hyperv>方法2
配置文件添加:<clock offset='localtime'> <timer name='hpet' present='yes'/> <timer name='hypervclock' present='yes'/> </clock>参考:
https://www.reddit.com/r/VFIO/comments/80p1q7/high_kvmqemu_cpu_utilization_when_windows_10/
总结
经过测试对于我来说,“方法2” 有效。 成功把CPU使用率降低到3%以下。 该方法在Windows10\Windows Server 2022测试通过。
评论区