1

I have a 64-bit, non VT host with 4 cores and 6 GB of RAM.

How many cores should I allocate to the VM?

HopelessN00b
  • 53,795
  • 33
  • 135
  • 209
qxotk
  • 1,434
  • 2
  • 15
  • 26
  • That would depend on what you plan to do 1) with the VM and 2) natively on the host at the same time, now wouldn't it? – dmckee --- ex-moderator kitten Sep 17 '10 at 16:48
  • UPDATE: I plan to run 1 VM at a time; and the host is expected to do Outllook, web browsing, IM, TweetDeck, heads-up display for my phone, stream music over the internet to my brain. The VM is for development: VS2010 + IIS + Browser for the most part, git, etc. – qxotk Sep 20 '10 at 17:16
  • This question belongs on SO, *not* on SF. This is about 1 person (me) seeking advice from other *programmers* how to setup *1* machine (mine) - the end goal to have happy *development* experience. To those who moved this question: OMG Ponies, Paul Nathan, Kaleb Pederson, dmckee, and Ngu Soon Hui. Seems you should try just a little to understand the question before fn'tossin it off the site. Bad form dudes. -1 for you all. – qxotk Sep 27 '10 at 19:38
  • I mean couldn't you at least have scanned the tags? visual-studio-2010? development-environment? SF? Really? – qxotk Sep 27 '10 at 19:40

2 Answers2

3

Rob's summary doesn't really agree with the thread he linked to as support.

  • The poster in the thread he linked is running a system with a total of 2 available cores.
  • A VM with 2 vCPUs assigned needs to wait for both of those cores to be free before it's granted CPU time.
  • Naturally, the hypervisor/host system gets first dibs when it comes to CPU resources.
  • Long story short, the VM will rarely end up being allowed access to the CPU in this situation.

So if this is the only VM you're planning to run on this system, assigning 2 to 3 cores would probably work out fine for you. Assigning 4 would most likely cripple the VM.

If you plan to run other VMs concurrently I'd recommend 2 vCPUs. It seems to be a sweet spot for most workloads and systems with 3+ available cores (up to any number of cores).

Chris Thorpe
  • 9,953
  • 23
  • 33
1

The exact amount needed to do the job you're trying to do in a timely manner. Or as near to that as possible.

Or if you want to look at it another way, how many cores would be in a dedicated piece of hardware you'd buy to do this task non-virtualised?

In terms of how networking, memory, cpu, disk requirements work for an application, nothing magical happens (or doesn't happen) just because the platform you run it on is virtualised.

Rob Moir
  • 31,884
  • 6
  • 58
  • 89