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 server running dual quad core cpu's with hyper threading.

We have a Windows 2003 VM and it has a single core.

when using prime95 I notice that it tops out at about 2.3Ghz (each Core is 3ghz on that server).

is there anyway that ESXi can let that single virtual cpu use more then one physical core?

I know it is an odd one but just play along :)

Thanks.

share|improve this question

2 Answers 2

up vote 10 down vote accepted

It's both yes and no as far as my understanding goes, but not yes for the reasons you want. That 1 vcpu allowance you gave your virtual machine does not mean it will always stay on core #2 of cpu #1, but it does mean it will never use >1 core.

Since you have only one virtual machine on your server you are not seeing the workload distributed over multiple cores because the CPU scheduler never sees it necessary to move it off that single core. However, if you were to start hosting more machines that see varying workloads and even if they all were assigned a single vcpu then any one machine may not necessarily be running on the same physical core at all times.

The work can be distributed over multiple cores depending on how ESXi's CPU scheduler sees fit. That being said, VMware still cannot split a single vcpu over two physical cores at the same time. All it can do is migrate those vcpus to another physical core if the load balancer thinks it beneficial to do so, ie- if one core becomes overwhelmed with work and another core is sitting idle, ESX will migrate the vcpu to that idle core.

I would take a read over this article starting on page 6 and more in section 3.3.1 on page 10 if you really want to see how the design works: http://www.vmware.com/files/pdf/techpaper/VMW_vSphere41_cpu_schedule_ESX.pdf

This is not a limit of VMware but of how processors and software work in general. The idea you have is sort of a holy grail of multi-cpu computing, getting a single threaded application's workload to be distributed over multiple cores in order to increase performance. It's pretty much the exact opposite of hyperthreading: instead of getting one core to do two cores' work to increase parallel execution bandwidth, you'd be getting two cores to do one core's work twice as fast. Anyway that's probably way more technical than you wanted it to be.

tl;dr: Nope, but if you figure out how you might not want to go telling everyone around town how to do it unless they're offering a couple bucks :)

share|improve this answer
    
Agree. Good link. Similar question, similar answer by me. Didn't see this original Q&A pair before answering myself the other one. –  cfi Oct 20 '11 at 9:40

No. It can not. It is not a magical bullet that will somehow change the processor architecture.

share|improve this answer
3  
Thanks, don't have to be sarcastic about it though, a simple no it can't and here is why would of been more then sufficient. –  Luma Nov 5 '10 at 21:06
2  
A simple "no" did not work - too short ;) –  TomTom Nov 5 '10 at 21:25

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.