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 |
Code:
cat /proc/cpuinfo |
AltF4,
As the heading states, /proc/cpuinfo shows that I have 4 CPU's, even though I don't. Thanks, -Kristijan |
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.
|
my non-xeon p4 does "smp" nicely
1 P4 showing up as 2 CPUs |
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. |
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:21 AM. |