Linux – How to get CPU info on a vmware guest

cpulinuxvmware

This is a server that is running on Vmware ESXi:

SERVER:/root # cat /etc/SuSE\-release                         
SUSE Linux Enterprise Server 11 (x86_64)
VERSION = 11               
PATCHLEVEL = 2             
SERVER:/root # rpm -qa|grep -i vmware                         
vmware-open-vm-tools-common-8.0.3-258828.sles11sp1
vmware-open-vm-tools-nox-8.0.3-258828.sles11sp1
vmware-tools-nox-8.0.3-258828.sles11sp1
vmware-tools-common-8.0.3-258828.sles11sp1
SERVER:/root # 

How can I figure out how many physical CPUs are assigned to the vmware guest? I only have access to the guest, not the host

Best Answer

The lscpu, if installed, synthesize somehow the information given by cat /proc/cpuinfo. In particular you can take a look at the fields CPU(s), Core(s) per socket and Socket(s).

Related Question