首先,大核速度快,并且在资源紧张时大核优先,小核甚至是闲着围观大核跑满。其次,遇到经常切换操作虚拟机和win11的使用场景,切换核心本身也会造成一点卡顿,降低虚拟机里操作流畅度。另外,13代在你不操作时甚至停小核省电,此时唤醒虚拟机竟然得三四秒。
所以虚拟机中最好是设置能够跑满大核,去虚拟机创建的文件夹中,修改vmx文件:
添加内容如下
Processor0.use = "TRUE"
Processor1.use = "TRUE"
Processor2.use = "TRUE"
Processor3.use = "TRUE"
Processor4.use = "TRUE"
Processor5.use = "TRUE"
Processor6.use = "TRUE"
Processor7.use = "TRUE"
Processor8.use = "FALSE"
Processor9.use = "FALSE"
Processor10.use = "FALSE"
Processor11.use = "FALSE"
Processor12.use = "FALSE"
Processor13.use = "FALSE"
Processor14.use = "FALSE"
Processor15.use = "FALSE"
测试:
sudo apt install stress
使用虚拟机的所有核心并生成负载:
stress --cpu $(nproc) --timeout 60
另一种压力测试是sysbench工具
sudo apt install sysbench
# 运行 CPU 压力测试
sysbench cpu --threads=$(nproc) run
注:开启之后完全可以再虚拟机中进行强化学习的训练,是完全没有问题的