Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a laptop with a core2duo CPU. When I am setting up my Ubuntu VM, should I set it to have 2 cores or 1? Do you always set it to the number of cores your host has?

share|improve this question

1 Answer 1

tl;dr: It doesn't matter, so use one core.

Full version: If you're talking about the number of cores the virtual machine has, the number of cores the host has doesn't really matter, with some important caveats"

  • If you set up a huge number of cores (whether multiple cores on multiple VMs or multiple single-core VMs) then you'll end up oversubscribing the CPU of the host machine, and you'll see a performance drop.

Unless you have a reason to set the VM to multiple cores, set it to 1.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.