LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   SMP not working (https://www.linuxquestions.org/questions/linux-general-1/smp-not-working-30244/)

te_conway 09-12-2002 09:48 PM

SMP not working
 
I have a proliant 1600 with 2 PIII 500Mhz cpus. I did a clean install of redhat 7.2 with both cpu's installed and working properly. Both smp and standard kernels exist but the default is the smp (in lilo.conf) and that is what is displayed after booting but only 1 cpu shows in /proc/cpuinfo.

I don't see any error messages. I'm stumped.
(2.4.7-10smp kernel)

thanks

zLinuxz 09-13-2002 01:32 AM

how do you know only 1 cpu shows??

If you have two cpu's running, the first CPU will be CPU0, and the second CPU will be CPU1
that is how it will show up in the information.
Also you might want to thry and download Gkrellm. This will let you keep track of all the activity in each individual CPU. Plus you'll be able to keep track of many other things!



Oh, and by the way. I recommend you upgrade ASAP to kernel 2.4.19!!!, the kernel you have is extremely buggy!

On the new kernels the SMP is selected automatically. There aren't any more SMP separate kernels. It's all together now.

te_conway 09-13-2002 07:05 AM

Only cpu0 shows in /proc/cpuinfo so I assume only one processor is being used. It also seems sluggish compared to my 2 x ppro 200mhz which should be significantly slower.

What's the easiest way to upgrade he kernel w/o completely reinstalling linux? I've only compiled a kernel once and that was a long time ago.

What I meant about smp kernels is redhat does create 2 kernels in case it has a problem with smp it'll boot from the non-smp kernel. Both are in my /boot directory.

thanks, tom

unSpawn 09-13-2002 11:33 AM

Configure your up2date at RH's site or ftp the rpm from a local mirror. Btw, are you sure you don't have "nosmp" in your lilo append= line? That's the reason you don't need non-SMP kernels, just boot your SMP one with "nosmp (+noapic)" to loose one CPU.

*Personally I don't like updating kernels automagically.

te_conway 09-13-2002 12:05 PM

I don't have "nosmp" in lilo. I've read proliants have an apic bios setting for multi processors that may need to be set, esp since I flashed the bios and added a 2nd cpu. I'll try that first, I'll try setting "noapic" in lilo if that doesn't work. I've read some boards require it.

If I can get it to work I'll still bring down the latest redhat kernel which appears to be 2.4.9-34 for 7.2 since my version apparantly is a security nightmare.

thanks

zLinuxz 09-13-2002 12:57 PM

is that really the latest kernel in the up2date redhat site??
damn...

I really suggest you download 2.4.19 and install it. It's quite simple

Just download the 2.4.19 kernel to your /usr/src folder

Then just do tar -zxf Linux-2.4.19.tar.gz

Then go inside the forlder which will be Linux-2.4.19

Then type make menuconfig

Configure your system. Save and Exit.

type then:

make clean && make dep && make bzImage && make modules && make modules_install

click enter...and wait for several minutes...depends on your cpu speed.

Then go into the Arch foler, then into the i386, then into the boot

You will see your bzImage there. Type this command

mv bzImage vmlinuz-2.4.19

then type this other command:

mv vmlinuz-2.4.19 /boot

then go to Lilo, replicate whatever you have for your current kernel, except change the name of the kernel to vmlinuz-2.4.19

save, exit, RUN lilo /sbin/./lilo

voila!, reboot and select your new kernel, :D

not that hard uh? ;), good luck.

oh yeah, get your kernel at www.kernel.org
:)

te_conway 09-13-2002 02:12 PM

Yes! It sounds easy, I'll give it a try this weekend.

*** in your instructions...
Then go into the Arch foler, then into the i386, then into the boot


This is a folder \arch\i386\boot ????

thanks

zLinuxz 09-13-2002 05:38 PM

inside the Linux-2.4.19

/usr/src/linux-2.4.19/arch/i386/boot/

because when the compiling is done, you are left in the /usr/src/linux-2.4.19 folder...so just go into three more folders.

te_conway 09-13-2002 05:48 PM

I just got smp working, a bios setting not visible to me until I downloaded the latest Compaq configuration utility.
APIC Mode from "Disabled" to "Full Table-Mapped Mode ".

I'm downloading the new kernel now. I'll let you know how I make out.

Thanks again.

zLinuxz 09-14-2002 02:50 AM

kewl, :D

te_conway 09-14-2002 10:35 AM

zLinuxz,

I'm not having too much luck. I did a minimal install so when I ran make menuconfig it failed (gcc & ncurses). I installed gcc and it's dependencies, ncurses is installed in /usr/lib per rpm -q but it still says ncurses is not found (I added /usr/lib to my path but it didn't help)

I ran make config instead but I have no idea how I should answer all the questions?

I just hit <enter> on the processor line and it picked my PIII by default which is correct. If I hit enter will it autodetect or default on all entries? I can say no to the obvious (laptop suppot, etc)

Thanks, Tom

te_conway 09-14-2002 01:17 PM

OK, got menuconfig working (ncurses-devel missing)

Built kernel w/o any extra specs since I wasn't sure and I assumed the basics would be OK

I had 1 problem with the instructions, lilo /sbin/./lilo does nothing. I ran lilo alone, modified lilo.conf as below (what happened to the initrd?) and rebooted.

Got a kernel panic on root file system. I assume the lilo command had something to do with it. Any help appreciated


image=/boot/vmlinuz-2.4.19
label=linux
read-only
root=/dev/ida/c0d0p3

image=/boot/vmlinuz-2.4.7-10smp
label=linux-old
initrd=/boot/initrd-2.4.7-10smp.img
read-only
root=/dev/ida/c0d0p3

zLinuxz 09-14-2002 02:11 PM

Quote:

Originally posted by te_conway
I had 1 problem with the instructions, lilo /sbin/./lilo does nothing. I ran lilo alone, modified lilo.conf as below (what happened to the initrd?) and rebooted.

weird, usually you can just type as root /sbin/./lilo
and lilo will get ran so that it updates your new configuration.

Now...you say you got a kernel panic.
Don't forget to enable the file system support in the kernel configuration. Ext3 and/or Ext2 which ever you have.
Is your hardrive Scsi or Ide? that may matter too.

your lilo.conf setup looks good.
the only weird part I see is the last line.... root=/dev/ida/c0d0p3

what kind of hardrive is that?

menuconfig has help menus to explain to you what each option is for. So you just need to spend some time with it, and everything should work out ok. :)

te_conway 09-14-2002 05:13 PM

Forget the lilo, typo on my part.

root=/dev/ida/c0d0p3 is my compaq raid

I enable ext3 and compaq smart array support, then rebuilt and it booted fine but I still have one major issue.

My ethernet card 'eth0' doesn't come up, (lo comes up though).
"ifconfig eth0 up" tells me the device doesn't exist!
In /etc/syscinfig/hwconfig it detects my onboard lan and uses tlan as the driver which is correct.

Any ideas?

Also I get an error on boot/shutdown. "micrprobe can't find module char-major-10-135" which appears to have something to do with the clock.

lastly, about the initrd module in lilo: is it not required or should I build another image?

Thanks
-Tom

zLinuxz 09-14-2002 10:28 PM

Not required to build a module for the initrd.

I'm not sure how to fix that error you get at the end in regard to the clock....I get it too but the pc runs fine and the time is ok as well...so I'm not sure what it means.(Hope someone else can help with that one)

What kind of ethernet card do you have?...you need the model and with that you'll be able to enable it in the kernel under Network Devices.


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