Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How many CPUs on a machine?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
madchaz
l33t
l33t


Joined: 01 Jul 2003
Posts: 993
Location: Quebec, Canada

PostPosted: Thu Feb 09, 2006 12:34 am    Post subject: How many CPUs on a machine? Reply with quote

How do I tell how many CPUs a machine as?
I've got a server at work that I am unsure how many CPUs are in the box. Normaly, I'd just open top and press 1 to see, but the version of top on it doesn't even have that option. The os is a somewhat old redhat enterprise server.
_________________
Someone asked me once if I suffered from mental illness. I told him I enjoyed every second of it.
www.madchaz.com A small candle of a website. As my lab specs on it.
Back to top
View user's profile Send private message
1clue
Advocate
Advocate


Joined: 05 Feb 2006
Posts: 2569

PostPosted: Thu Feb 09, 2006 12:37 am    Post subject: Reply with quote

Code:

cat /proc/cpuinfo


The problem is, a P4 shows up as two CPUs.
Back to top
View user's profile Send private message
Ma3oxuct
Guru
Guru


Joined: 18 Apr 2003
Posts: 523

PostPosted: Thu Feb 09, 2006 12:48 am    Post subject: Reply with quote

1clue wrote:
Code:

cat /proc/cpuinfo


The problem is, a P4 shows up as two CPUs.


Clarification: A P4 with hyperthreading shows up as two cpus. A dual-core P4 with Hyperthreading enabled shows up as four. A dual core AMD shows up as two.
Back to top
View user's profile Send private message
bollucks
l33t
l33t


Joined: 27 Oct 2004
Posts: 606

PostPosted: Thu Feb 09, 2006 12:57 pm    Post subject: Reply with quote

You get more info though:
siblings : 2
cpu cores : 1

Siblings are hyperthread siblings, cores are real cores. So if you get 2 cpus showing up and each one shows siblings:2 and cores:1 that means you only have one real core and hyperthreading enabled (2 logical cores).
Back to top
View user's profile Send private message
madchaz
l33t
l33t


Joined: 01 Jul 2003
Posts: 993
Location: Quebec, Canada

PostPosted: Thu Feb 09, 2006 12:58 pm    Post subject: Reply with quote

Thanks. Looks like it only as one Xeon CPU :)
_________________
Someone asked me once if I suffered from mental illness. I told him I enjoyed every second of it.
www.madchaz.com A small candle of a website. As my lab specs on it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum