Operating System - Linux
1755358 Members
5212 Online
108831 Solutions
New Discussion юеВ

how to tell how many physical cpu...

 
K.C. Chan
Trusted Contributor

how to tell how many physical cpu...

Is there a way to tell how many physical cpu running on a linux box (redhat) with rebooting the server and not knowing if you have HT enable?

Attached is the output from /proc/cpuinfo

Thanks.
Reputation of a thousand years can be determined by the conduct of an hour
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: how to tell how many physical cpu...

Seems pretty clear that there is only one workng CPU in the box.

If you expect two, I would start figuring out what happened to thte dead one and arranging replacement.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Stuart Browne
Honored Contributor

Re: how to tell how many physical cpu...

*blink* hey sep, we looking at the same thing here?

To me it looks like it's a dual-Xeon-3.2Ghz-HT (physical id 0 & 6), with both CPU's and HT operating correctly.
One long-haired git at your service...
Gopi Sekar
Honored Contributor

Re: how to tell how many physical cpu...


your /proc/cpuinfo says you have dual xeon 3.2GHZ processor both Hypherthreading enabled.

if you want to find physical number of cpus, then search /proc/cpuinfo for unique 'physical id'

Gopi
Never Never Never Giveup
Hein van den Heuvel
Honored Contributor

Re: how to tell how many physical cpu...

See also:
http://forums1.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=246357

I found this back googling for:
+linux +cpuinfo +hyper +site:itrc.hp.com

Word of warning: the cpuinfo flag value "HT" indicates whether the processor is capable of Hyperthreading, not whether it is actually active or not.


Hein.

Alex Lavrov.
Honored Contributor

Re: how to tell how many physical cpu...

I can recommend you this tool:

http://ezix.sourceforge.net/software/lshw.html

It gives you system information just like ioscan and it has a nice graphical interface. With this tool you can find in seconds what hardware you have in your box.

Regards.

I don't give a damn for a man that can only spell a word one way. (M. Twain)
Rick Garland
Honored Contributor

Re: how to tell how many physical cpu...

In the /proc filesystem/directory is a whole bunch of info concerning the system.

There is a file called 'cpuinfo' in this directory. View it.

The lshw application is a neat tool for parsing through the /proc and displaying lots of info concerning the system.