LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 09-12-2002, 09:48 PM   #1
te_conway
Member
 
Registered: Apr 2001
Location: MA
Distribution: redhat 7.2
Posts: 182

Rep: Reputation: 30
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
 
Old 09-13-2002, 01:32 AM   #2
zLinuxz
Senior Member
 
Registered: Feb 2002
Location: Shanghai, CHINA
Distribution: RH 5.0,5.1 6.0,6.1 7.0,7.1,7.2,7.3.,8.0,9.0, RH Enterprise, Fedora C1, C2
Posts: 1,216

Rep: Reputation: 45
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.

Last edited by zLinuxz; 09-13-2002 at 01:34 AM.
 
Old 09-13-2002, 07:05 AM   #3
te_conway
Member
 
Registered: Apr 2001
Location: MA
Distribution: redhat 7.2
Posts: 182

Original Poster
Rep: Reputation: 30
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
 
Old 09-13-2002, 11:33 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
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.

Last edited by unSpawn; 09-13-2002 at 11:34 AM.
 
Old 09-13-2002, 12:05 PM   #5
te_conway
Member
 
Registered: Apr 2001
Location: MA
Distribution: redhat 7.2
Posts: 182

Original Poster
Rep: Reputation: 30
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
 
Old 09-13-2002, 12:57 PM   #6
zLinuxz
Senior Member
 
Registered: Feb 2002
Location: Shanghai, CHINA
Distribution: RH 5.0,5.1 6.0,6.1 7.0,7.1,7.2,7.3.,8.0,9.0, RH Enterprise, Fedora C1, C2
Posts: 1,216

Rep: Reputation: 45
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,

not that hard uh? , good luck.

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

Last edited by zLinuxz; 09-13-2002 at 12:59 PM.
 
Old 09-13-2002, 02:12 PM   #7
te_conway
Member
 
Registered: Apr 2001
Location: MA
Distribution: redhat 7.2
Posts: 182

Original Poster
Rep: Reputation: 30
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
 
Old 09-13-2002, 05:38 PM   #8
zLinuxz
Senior Member
 
Registered: Feb 2002
Location: Shanghai, CHINA
Distribution: RH 5.0,5.1 6.0,6.1 7.0,7.1,7.2,7.3.,8.0,9.0, RH Enterprise, Fedora C1, C2
Posts: 1,216

Rep: Reputation: 45
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.
 
Old 09-13-2002, 05:48 PM   #9
te_conway
Member
 
Registered: Apr 2001
Location: MA
Distribution: redhat 7.2
Posts: 182

Original Poster
Rep: Reputation: 30
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.
 
Old 09-14-2002, 02:50 AM   #10
zLinuxz
Senior Member
 
Registered: Feb 2002
Location: Shanghai, CHINA
Distribution: RH 5.0,5.1 6.0,6.1 7.0,7.1,7.2,7.3.,8.0,9.0, RH Enterprise, Fedora C1, C2
Posts: 1,216

Rep: Reputation: 45
kewl,
 
Old 09-14-2002, 10:35 AM   #11
te_conway
Member
 
Registered: Apr 2001
Location: MA
Distribution: redhat 7.2
Posts: 182

Original Poster
Rep: Reputation: 30
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
 
Old 09-14-2002, 01:17 PM   #12
te_conway
Member
 
Registered: Apr 2001
Location: MA
Distribution: redhat 7.2
Posts: 182

Original Poster
Rep: Reputation: 30
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
 
Old 09-14-2002, 02:11 PM   #13
zLinuxz
Senior Member
 
Registered: Feb 2002
Location: Shanghai, CHINA
Distribution: RH 5.0,5.1 6.0,6.1 7.0,7.1,7.2,7.3.,8.0,9.0, RH Enterprise, Fedora C1, C2
Posts: 1,216

Rep: Reputation: 45
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.
 
Old 09-14-2002, 05:13 PM   #14
te_conway
Member
 
Registered: Apr 2001
Location: MA
Distribution: redhat 7.2
Posts: 182

Original Poster
Rep: Reputation: 30
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
 
Old 09-14-2002, 10:28 PM   #15
zLinuxz
Senior Member
 
Registered: Feb 2002
Location: Shanghai, CHINA
Distribution: RH 5.0,5.1 6.0,6.1 7.0,7.1,7.2,7.3.,8.0,9.0, RH Enterprise, Fedora C1, C2
Posts: 1,216

Rep: Reputation: 45
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.
 
  


Reply



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
kernel 2.6.11 smp x64 compile not working meangene72 Fedora 0 11-26-2005 02:42 AM
Got SMP and ataraid working in Slack 10! jonthelam Slackware 0 09-02-2004 01:18 PM
SMP working? GATTACA VectorLinux 4 12-15-2003 09:38 AM
processor working using SMP or simple kernel??? farhan Linux - General 1 03-14-2003 05:32 PM
SMP kernel stopped working thedeud Linux - Hardware 0 03-06-2003 05:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration