RFC about socket/cores numbers and HT info

Gianluca Cecchi gianluca.cecchi at gmail.com
Thu Jan 28 13:47:42 UTC 2010


On Thu Jan 28 13:18:20 UTC 2010 John Aldrich wrote:
> Here's the output of the command run using sudo:
Ok, so if you change inside the script

NSOCKETS=$(dmidecode | grep -c "Central Processor")

with
NSOCKETS=$(sudo /usr/sbin/dmidecode | grep -c "Central Processor")

and put in sudoers the permission for /usr/sbin/dmidecode command, the
script should give correct results for your system:
Cpu Model: AMD Athlon(tm) 64 X2 Dual Core Processor 6000+
Number of Sockets: 1
Number of Cores per Socket: 2
Number of CPUs seen by OS: 2
Hyper-Threading: NO

Probably need to add that if NSOCKETS is zero, this is strange too...

Gianluca


More information about the users mailing list