question about CPU allocation and usage
Posted: 26. Jan 2015, 20:42
Host machine is windows7, i7-4600U, 2 cores/4 threads @ 2.1Ghz, 12GB of memory.
Guest machine is (in this case) Ubuntu 14.04.1.
I've followed the advice given here and allocated only 2 CPUs to the guest, but when I run CPU intensive applications (such as compiling code with jobserver working) I've noticed that the guest CPU shows two cores, both running at/near 100% during the build. However, on the host machine the CPU utilization is only reported as ~50%.
This implies, at least to a casual observer, that the guest machine is only getting access to half the processing power of the host. But if you change the number of CPUs to four, the guest machine now sees all four, and the host machine now runs at near 100% CPU during builds.
That said, the compile times on my (somewhat limited) build aren't substantially faster - if that many cycles are indeed being wasted, where are they going?
Guest machine is (in this case) Ubuntu 14.04.1.
I've followed the advice given here and allocated only 2 CPUs to the guest, but when I run CPU intensive applications (such as compiling code with jobserver working) I've noticed that the guest CPU shows two cores, both running at/near 100% during the build. However, on the host machine the CPU utilization is only reported as ~50%.
This implies, at least to a casual observer, that the guest machine is only getting access to half the processing power of the host. But if you change the number of CPUs to four, the guest machine now sees all four, and the host machine now runs at near 100% CPU during builds.
That said, the compile times on my (somewhat limited) build aren't substantially faster - if that many cycles are indeed being wasted, where are they going?