cancel
Showing results for 
Search instead for 
Did you mean: 

Number of physical CPUs

 
SOLVED
Go to solution
Danesh Qureshi
Regular Advisor

Number of physical CPUs

I have a HP Proliant DL740 G1 server running
Red Hat Enterprise Linux AS release 3 (Taroon Update 4).

When I cat /proc/cpuinfo it displays 8 CPUs.

Does this mean this server has 8 phyical CPUs and if not how do I find out the number of physical CPUs in the server?
5 REPLIES
Ivan Ferreira
Honored Contributor
Solution

Re: Number of physical CPUs

Please see:

oss.intel.com/pdf/mclinux.pdf
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Heironimus
Honored Contributor

Re: Number of physical CPUs

Each core of a multi-core processor will show up in cpuinfo, as will both halves of a hyperthreaded processor. If you want the number of physical chips you should look for the number of unique physical IDs listed in cpuinfo.

grep 'physical id' /proc/cpuinfo | sort -u
Danesh Qureshi
Regular Advisor

Re: Number of physical CPUs

# grep 'physical id' /proc/cpuinfo | sort -u
physical id : 0
physical id : 2
physical id : 4
physical id : 6

Please can you explain what the above output is telling me about the number of CPUs?
David Claypool
Honored Contributor

Re: Number of physical CPUs

The ProLiant DL740 was an 8 socket server and pre-dates the availability of multi-core processors. If cpuinfo is showing 8 CPUs and physical CPUs shows only 4, I would say that this indicates that you have 4 physical processors with HyperThreading enabled for a total of 8 logical processors.

If you have the 'hpasm' package loaded you can type:

hpasmcli "show server;show ht"

to get those details. The information also will show up when using the HP Systems Management Homepage or Insight Diagnostics.
Ivan Ferreira
Honored Contributor

Re: Number of physical CPUs

# grep 'physical id' /proc/cpuinfo | sort -u
physical id : 0
physical id : 2
physical id : 4
physical id : 6

This means that you have four physical processors, each one, with an ID. The values 0, 2, 4, 6 are the ID for each physical processor.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?