CPUinfo

To locate information related to your CPU, use these commands:

echo $(cat /proc/cpuinfo | grep 'model name' | sed -e 's/.*: //' | uniq) = $COUNT

awk '/model name/  {ORS=""; count++; if ( count == 1 ) print  $0; }  END {  print " : " count "\n" }' /proc/cpuinfo

ls /sys/devices/system/cpu

dmidecode | less

cat /proc/cpuinfo

hwinfo

To install hwinfo please see this post;

lshw

To Install lshw please see the post here;

Note: On some Intel processors, the number of cores will will appear to be incorrect when a

cat /proc/cpuinfo

is ran. It shows 16 processors, all:
model name : Intel(R) Xeon(R) CPU E5520 @ 2.27GHz
If you look at the number of reported cores (16) vs. the number of physical core IDs in the individual core report (Line 9);

physical id : 0
physical id : 1

you can tell whether the reported units represent hyperthreading.

Also there is a flag listed as ‘ht’ on line 18 of the core report
which will report if hyperthreading is enabled on the processor.

dmidecode | less

will also give a more accurate view.

g33kadmin

I am a g33k, Linux blogger, developer, student and Tech Writer for Liquidweb.com/kb. My passion for all things tech drives my hunt for all the coolz. I often need a vacation after I get back from vacation....

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.