LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 01-20-2005, 09:28 PM   #1
Kristijan
Member
 
Registered: Sep 2003
Location: Melbourne, Australia
Distribution: NetBSD 3.0.1, Slackware 10.1
Posts: 394

Rep: Reputation: 30
4 CPU's shown in top and /proc/cpuinfo


Hi,

I don't have physical access to the box, but I need to find out how many CPU's it has. Both top and /proc/cpuinfo show 4 CPU's, which I know isn't the case.

I google'd around and read something about hyperthreading being enabled, and this causing 4 CPU's being shown. Since I don't have physical access to the box, I can't disable hyperthreading in the BIOS.

Is there any other way to find out for sure how many CPU's are in the box?

Cheers,
-Kristijan
 
Old 01-20-2005, 09:31 PM   #2
AltF4
Member
 
Registered: Sep 2002
Location: .at
Distribution: SuSE, Knoppix
Posts: 532

Rep: Reputation: 31
Code:
cat /proc/cpuinfo
might produce the infos you need :-)
 
Old 01-20-2005, 09:33 PM   #3
Kristijan
Member
 
Registered: Sep 2003
Location: Melbourne, Australia
Distribution: NetBSD 3.0.1, Slackware 10.1
Posts: 394

Original Poster
Rep: Reputation: 30
AltF4,

As the heading states, /proc/cpuinfo shows that I have 4 CPU's, even though I don't.

Thanks,
-Kristijan
 
Old 01-20-2005, 10:03 PM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,108

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
Do you have 2 hyperthreading CPUs then? Each hyperthreading CPU will show up as two CPUs. Newer Xeons and P4s have hyperthreading characteristics, but if you have 2 they must be Xeons since AFAIK P4s can't dpo SMP configurations.
 
Old 01-25-2005, 06:44 PM   #5
AltF4
Member
 
Registered: Sep 2002
Location: .at
Distribution: SuSE, Knoppix
Posts: 532

Rep: Reputation: 31
my non-xeon p4 does "smp" nicely

1 P4 showing up as 2 CPUs
 
Old 01-25-2005, 07:54 PM   #6
ironwalker
Member
 
Registered: Feb 2003
Location: 1st hop-NYC/NewJersey shore,north....2nd hop-upstate....3rd hop-texas...4th hop-southdakota(sturgis)...5th hop-san diego.....6th hop-atlantic ocean! Final hop-resting in dreamland dreamwalking and meeting new people from past lives...gd' night.
Distribution: Siduction, the only way to do Debian Unstable
Posts: 506

Rep: Reputation: Disabled
Regular P4's do smp.

The OP must have dual Hyper threaded cpu's as already stated above.
Im useing dual xeon with hyper threading and it shows as 4 cpu's as it should.
 
Old 01-25-2005, 08:09 PM   #7
guzzi
Member
 
Registered: Jun 2004
Location: Lawrence, KS
Distribution: Slackware
Posts: 294

Rep: Reputation: 32
1 or 4 cpu's

with the 2.4 series kernels, you control how many cpu's are there by how the kernel is compiled.

In processor type and features of config SMP = y will get HT going for at least 2

in general setup ACPI= y will get four if thats what you have. Where a ACPI = n will get you only 2

Have done a bunch of experimenting with 2.4 and from my initial look at 2.6, there are not as many gotchas.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
/proc/cpuinfo flag lm Henry_1 Linux - General 7 11-15-2007 11:37 PM
/proc/cpuinfo says processor is 700mhz? J--Lew Linux - Newbie 3 10-19-2005 08:18 AM
/proc/cpuinfo oops! feta Linux - Hardware 2 11-08-2004 10:16 PM
/proc/cpuinfo embsupafly Linux - General 3 12-29-2003 06:54 AM
Hypertherad Kernel 2.5.75 and your /proc/cpuinfo Kayaker Slackware 2 09-16-2003 08:11 PM


All times are GMT -5. The time now is 07:28 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration