Avatar of michofreiha
Flag for Lebanon asked on

Number of physical CPU

Dear all,
I have a centOS server running as Virtual machine on ESXI 4...How to know the number of physical CPU used by Centos machine and the number of core per each physical CPU?

Linux DistributionsVMware

Avatar of undefined
Last Comment

8/22/2022 - Mon
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

how many vCPU have you assigned to the VM?

I do not remember anymore...But If i check the summary under ESXI, the number of CPU show me 2vCPU...Does that mean 1 CPU dual cores?

which  process u used for this configuration ....... if use intel i 3 series you used to no of cpu =2 and porcessor =2......if used  i5  may greater...
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.

model name      : Intel(R) Xeon(R) CPU           X5570  @ 2.93GHz

VMs don't necessarily use a whole physical CPU, unless an CPU affinity rule is set. A VM typically uses "Cores" of a CPU...or more specifically, parts of "Cores". I'm not sure if you can tell which socket (if you have multiple sockets...assuming you do since you asked this question of 'which physical CPU...") or Core on a socket is being used; again, unless an affinity rule is set...


Typically each vCPU corresponds to 1 physical cpu core. However, unless you have taken extraordinary measures to "pin" a vCPU to a particular core, it will move its workload amongst physcial cores as they become available and the demand exists. VMware will dispactch a vCPU on any available physical core.

Likewise if the vCPU is idle, at that moment it isn't assigned to any physical core so it is using zero physical cpu resource.

Hope this helps
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question

For detailed information on VMWare cpu management take a look at the white paper http://www.vmware.com/files/pdf/techpaper/VMW_vSphere41_cpu_schedule_ESX.pdf 

Good Luck

Here is VMware's whitepaper on CPU "scheduling" that should she some light for you:

Also, would recommend looking at the Resource Mgmt Guide for the particular vSphere version you're using.

LOL - great minds think alike :)
Your help has saved me hundreds of hours of internet surfing.

hehe :)

I was not connived 100%