VMware Player VM - 1 core CPU limitation

筅森魡賤 提交于 2019-12-12 02:28:02

问题


I'm using a VM with VMware Player to write code and compile. As my current program is huge, the compilation takes a while to be done (upto 5 minutes) using 25% of my 4 cores CPU on my host = 100% of one core.

It seems that the VM is limited to use 1 single core.

Is there a way to optimize the number of cores a VM can use? I'd like to use 50% or 75% of my 4 cores CPU.

Thanks


回答1:


It sounds like you're limited by the number of parallel build tasks you can run, not the VM CPU configuration, e.g., by default, make will run a single step at a time. Try running several steps in parallel, e.g., run make -j4 or equivalent for your build system.

On a separate note, a VM may be more overhead for you than you might like; consider using Docker to host your development environment.



来源:https://stackoverflow.com/questions/23809192/vmware-player-vm-1-core-cpu-limitation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!