Better algo to change the VM CPUs number.