A while back, I did some playing around with new Win2008 virtual machine and found some serious concerns.
The server is Dell T610. 16gig, 4 core, 8 logical, 2.4ghz Xeon, 5600 series. ESXi 4.1.0 The guest is 2008 64bit, with 2vCPU's
I've been testing CPU performance using 7Zip on a 400meg file. Our server requirements have a particular need for single-thread performance, so I run 7Zip with only one thread.
7zip takes 4:50 on the VM. For comparison, on a recent 2ghz, 4core server this process takes 4:00.
Obviously a problem here.
So I tried setting process affinity on the 7Zip.exe process. This time the compression only took 3:20. Note that setting affinity on a physical machine makes no difference. (Just as fast, on or off) On both physical and virtual machines, when affinity is not set, you can see the process being thrown between all cores in taskman)
The irony is that on a heavily loaded machine, tasks will complete quicker, because they are more likely to remain on the same cpu.
The question is, why does Windows have such a lose processor affinity when linux does not?