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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-20-2005, 09:28 PM
|
#1
|
Member
Registered: Sep 2003
Location: Melbourne, Australia
Distribution: NetBSD 3.0.1, Slackware 10.1
Posts: 394
Rep:
|
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
|
|
|
01-20-2005, 09:31 PM
|
#2
|
Member
Registered: Sep 2002
Location: .at
Distribution: SuSE, Knoppix
Posts: 532
Rep:
|
might produce the infos you need :-)
|
|
|
01-20-2005, 09:33 PM
|
#3
|
Member
Registered: Sep 2003
Location: Melbourne, Australia
Distribution: NetBSD 3.0.1, Slackware 10.1
Posts: 394
Original Poster
Rep:
|
AltF4,
As the heading states, /proc/cpuinfo shows that I have 4 CPU's, even though I don't.
Thanks,
-Kristijan
|
|
|
01-20-2005, 10:03 PM
|
#4
|
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290
|
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.
|
|
|
01-25-2005, 06:44 PM
|
#5
|
Member
Registered: Sep 2002
Location: .at
Distribution: SuSE, Knoppix
Posts: 532
Rep:
|
my non-xeon p4 does "smp" nicely
1 P4 showing up as 2 CPUs
|
|
|
01-25-2005, 07:54 PM
|
#6
|
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: 
|
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.
|
|
|
01-25-2005, 08:09 PM
|
#7
|
Member
Registered: Jun 2004
Location: Lawrence, KS
Distribution: Slackware
Posts: 315
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 02:15 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|