VMware Cloud Community
wapiti10
Enthusiast
Enthusiast
Jump to solution

CPU affinity not set

I have a Host that has 4 cores. I have not set CPU scheduling affinity.Two of my VMs each have 2 Processors assigned to them.

Now when I look at the performance charts, the charts only list CPU0 and CPU1 on both of the VM's for performance monitoring.

1. Does that mean both VM's are defaulting to the same two cores on the host?

2. is affinity the only way to have them schedule on CPU2 and CPU3?

3. from what I have said would it be safe to assume CPU2 and CPU3 are sitting Idle?

Thanks for any feed back!

Dallas

Dallas
0 Kudos
1 Solution

Accepted Solutions
fordian
Hot Shot
Hot Shot
Jump to solution

Hello,

- 1 -From the VM performance chart CPU0 and CPU1 represent the VM's vcpu0 and vcpu1. Do not be confused with Host physical CPUs.

- 2 - the VMware Scheduler do the job for you. Avoid setting affinity.

- 3 - Open the Host performance chart to see which physical CPU are being use.

Thank you

Dominic

View solution in original post

0 Kudos
3 Replies
fordian
Hot Shot
Hot Shot
Jump to solution

Hello,

- 1 -From the VM performance chart CPU0 and CPU1 represent the VM's vcpu0 and vcpu1. Do not be confused with Host physical CPUs.

- 2 - the VMware Scheduler do the job for you. Avoid setting affinity.

- 3 - Open the Host performance chart to see which physical CPU are being use.

Thank you

Dominic

0 Kudos
wapiti10
Enthusiast
Enthusiast
Jump to solution

Great! good information thanks,

1 more question...when looking at CPU ready time for the Guests, is there any way to tell which Physical CPU it is waiting for?

Dallas

Dallas
0 Kudos
fordian
Hot Shot
Hot Shot
Jump to solution

Hello,

There are different ways to do this but you can try this one :

Use ESXTOP from the COS :

press c for CPU panel

then press e to expand the GID number displayed on the GID row

then look at vmm0 and vmm1 (for a dual vcpus VM) and note the %RDY time information.

then press f and option H to select "CPU Summary Stats" and press return (maybe you need to remove option E to see rows coming from option H)

then the CPU row indicates on which physical CPU the vmm0 and vmm1 is running.

Let me know if you need more details.

Thank you

Dominic