64-bit or 32-bit guest for a 64-bit host ? (VMware)

10

3

So, here is my all-timer question. Never seen a total answer to it, so please guys, help me out.

I have an Intel Core i7 CPU with every hardware stuff enabled (except hyper-threading).
My OS is a Win 7 x64 Professional, SP1, legit.

I've got VMWare installed (7.1.4 atm).

What guest should I use? 64-bit or 32-bit?
I just don't know. Which is better?

(Memory is not a problem, got 10gig in the PC. I want to know which is better in the means of guest performance.)

Apache

Posted 2011-03-31T15:31:29.533

Reputation: 14 755

I've run both and I never seem to notice any significant preformance difference, I guess if you want to give the vm more than 4gigs then the 64 bit might be faster. However I have never had a need for a vm with more than 4gigs of RAM that's not on bare metal hyper visor. – Supercereal – 2011-03-31T16:01:55.850

Answers

7

There are two factors involved here. In order:

CPU Emulation
It's possible that a mismatch between the host and the guest will force the VM to use CPU emulation mode. I don't expect this happen, but depending on your hypervisor, operating system, and architecture, it's possible. You want to avoid this at all costs. The other part of this that you want your VM hypervisor to also match up with your host system. So if you have 64bit Windows, look for a 64bit edition of VirtualBox, VMWare, etc. Once you're sure this is not a problem, it comes down to the next factor:

RAM
If you'll generally be giving your guests less than 4GB of RAM, than stick with 32bit for now. There are other changes in the move to x64 also, but for the most part those won't help your VMs as much as the RAM saved from a smaller pointer/word size will, because VMs have more I/O issues and need the RAM more to help save going to disk as often. Don't forget to allow for growth here. You don't want to have to rebuild a VM from scratch. For example, I'd probably set up a VM acting as a database server as 64bit, even if right now it only has 2GB of RAM. I'd do the same for a Windows 7 test image. But if I had a machine that exists for something like testing a web site under IE7 on Windows XP, I'd leave that at 32bit.

As a final note, you mention that you have hyperthreading turned off. You probably want that on if you'll be doing a lot of VM work. The reason you sometimes want to turn this off is that it gives more cache per core. Most people with quad core processors don't even use all the cores a lot of the time, and additional core provided by hyperthreading just aren't that powerful because of conflict issues in the pipeline where the two instructions happening in the same physical might be related in some way. Thus, the gain from larger cache sizes on few cores can sometimes outweigh the gain from additional weak cores. VMs, however, can use those fake extra cores and be sure of fairly clean pipelines with few of the issues that normally hold this feature back.

Joel Coehoorn

Posted 2011-03-31T15:31:29.533

Reputation: 26 787

2

I suggest you using 64-bits guests for only one reason: they works perfectly with more then 4 Gb of RAM. Nowdays 4G is not very much, and even if you don't need it right now, it might be required to have >4G RAM on guest after a while.

And in this case you'll be required to do full reinstall of 32-bit guest, while with 64-bit you'll only need to change vm settings.

rvs

Posted 2011-03-31T15:31:29.533

Reputation: 293

14GB is more than enough for most people... so saying its not much is just silly :P – Riguez – 2011-03-31T17:38:01.500

2Tell it to my jboss+activemq+terracotta :) – rvs – 2011-04-01T06:46:28.080

1You can probably break up your JBOS + ACTIVEMQ and TERACOTTA into separate VMs. – Archimedes Trajano – 2013-12-01T06:32:29.337