<body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener('load', function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <div id="navbar-iframe-container"></div> <script type="text/javascript" src="https://apis.google.com/js/platform.js"></script> <script type="text/javascript"> gapi.load("gapi.iframes:gapi.iframes.style.bubble", function() { if (gapi.iframes && gapi.iframes.getContext) { gapi.iframes.getContext().openChild({ url: 'https://www.blogger.com/navbar.g?targetBlogID\x3d11356004\x26blogName\x3dxception\x26publishMode\x3dPUBLISH_MODE_BLOGSPOT\x26navbarType\x3dBLUE\x26layoutType\x3dCLASSIC\x26searchRoot\x3dhttps://openrent.blogspot.com/search\x26blogLocale\x3den_US\x26v\x3d2\x26homepageUrl\x3dhttp://openrent.blogspot.com/\x26vt\x3d-4655156434419967503', where: document.getElementById("navbar-iframe-container"), id: "navbar-iframe", messageHandlersFilter: gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER, messageHandlers: { 'blogger-ping': function() {} } }); } }); </script>

How to find the number of physical processors

The cat /proc/cpuinfo | egrep "processor|core|model name|physical id command will tell you what you need to know.

Here is what the command looks like when run on an Opteron server with 2-dual core CPU's:

$ cat /proc/cpuinfo | egrep "processor|core|model name|physical id"
processor : 0
model name : AMD Opteron (tm) Processor 880
physical id : 0
core id : 0
cpu cores : 2
processor : 1
model name : AMD Opteron (tm) Processor 880
physical id : 0
core id : 1
cpu cores : 2
processor : 2
model name : AMD Opteron (tm) Processor 880
physical id : 1
core id : 0
cpu cores : 2
processor : 3
model name : AMD Opteron (tm) Processor 880
physical id : 1
core id : 1
cpu cores : 2

Notice that each listed dual-core processor will have the SAME physical ID, but a DIFFERENT core ID (0,1). A single- core hyper threaded CPU will list as two processors, but have the same physical ID and the same core ID.

Finally, four physical processors will list with different physical ID, like this:

processor : 0
model name : Intel(R) Xeon(TM) MP CPU 2.80GHz
physical id : 0

processor : 1
model name : Intel(R) Xeon(TM) MP CPU 2.80GHz
physical id : 1

processor : 2
model name : Intel(R) Xeon(TM) MP CPU 2.80GHz
physical id : 2

processor : 3
model name : Intel(R) Xeon(TM) MP CPU 2.80GHz
physical id : 3