PDA

View Full Version : Detecting a second CPU? FC2 64


tribedude
2005-05-14, 12:56 AM CDT
I am a Linux n00b.

I have a server here with 2 246 opterons in it running Fedora Core 2 64. Is there a way to see if both CPUs are working? In TOP I only see a general number for "CPU(s)", which isn't specific enough....

I checked the kernel startup logfile and it looks like both are identified - sort of - but with a warning message:

...
Processor #0 15:5 APIC version 16
ACPI: LAPIC (acpi_id[0x02] lapic_id[0x01] enabled)
Processor #1 15:5 APIC version 16
WARNING: NR_CPUS limit of 1 reached. Processor ignored.
ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 2, version 17, address 0xfec00000, GSI 0-23
ACPI: IOAPIC (id[0x03] address[0xfebff000] gsi_base[24])
....

Is the second processor working? How can I check it's performance to be sure?

DaveRun
2005-05-14, 04:56 AM CDT
I'm pretty new myself but there are a couple ways of doing this that I know of. First, ensure that you are using the smp kernels which support multiple CPUs. You can use the log viewer and viewing the kernel startup log will show you if Linux is recognising all of your installed CPUs, and thirdly using the Gnome system monitor on the resource monitor page you can see some of the detailes about the load on each processor. There are probably many other ways to do all of this with much more detail, etc but this is quick and simple.

From the bottom of your post it appears that you are not running the smp kernel, check your /boot directory to see if you have any of these. If not try installing it via yum. Your grub.conf file may be defaulting to the single processor version of the kernel. I find on my systems the boot menu goes by too quick, so I have edited the /boot/grub/grub.conf file to have timeout=15 and commented out the hidemenu option. With the menu you will be able to select which kernel to boot with.

Dave

AndyGreen
2005-05-14, 05:01 AM CDT
cat /proc/cpuinfo

will list the CPUs that the kernel knows about (starting from CPU#0).

Run

top

and press

1

to toggle between CPU global usage summary and per-CPU.

--edit

oh, and /proc/version will have your kernel version including SMP if that is what it is.

tribedude
2005-05-14, 11:09 AM CDT
Thanks guys!