Linux – Will multiple processors show in /proc/cpuinfo on a kernel that doesn’t have SMP enabled

hyperthreadingkernellinuxsmp

I have recently migrated an application from one server to another and am having some issues I am wondering if they are associated to HyperThreading.

In regards to my question, I currently don't have access to the old box. When I did, I know that in /proc/cpuinfo it showed 2 processors and the system had only 1 physical processor, so that tells me HyperThreading was enabled.

What I am wondering is if perhaps /proc/cpuinfo could be showing the two processors purely from an informational standpoint but the kernel wasn't compiled with SMP so the processes weren't hitting the HyperThreading Virtual CPU or if the lack of SMP in the kernal would mean the system would never even know to show the 2nd CPU in /proc/cpuinfo.

If anybody happens to have a box they know has multiple CPUs (HT preferred, but physical would be more info then I have right now) that has a non-SMP kernel loaded and could check their /proc/cpuinfo it would be much appreciated.

Best Answer

I'm 99.9% certain that cpuinfo would not display processors that aren't supported by the kernel.

dmidecode, on the other hand, may.

Related Topic