RFC about socket/cores numbers and HT info
Matthew J. Roth
mroth at imminc.com
Thu Jan 28 22:59:47 UTC 2010
Gianluca Cecchi wrote:
> b) Do you think there is any way to enumerate the number of physical
> sockets of a system based only on values in cpuinfo and not using
> dmidecode command?
Gianluca,
There is a Red Hat Knowledgebase article titled "How do I determine if my x86-compatible Intel system is multi-processor, multi-core or supports hyperthreading?" that I think you will find useful. It states:
To determine whether a system is multi-processor, multi-core, has
hyperthreading or supports a combination of the three, look at the
physical id, siblings, core id and cpu cores values in /proc/cpuinfo
on Red Hat Enterprise Linux 4 or on Red Hat Enterprise Linux 5 while
running a non-Xen kernel.
It provides several examples that you could use to write and test your script.
Here's the link: http://kbase.redhat.com/faq/docs/DOC-7715
Regards,
Matthew Roth
InterMedia Marketing Solutions
Software Engineer and Systems Developer
More information about the users
mailing list