LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-27-2003, 02:00 PM   #1
Dirt
Member
 
Registered: Feb 2002
Location: St. Louis
Distribution: Red Hat 8.0
Posts: 30

Rep: Reputation: 15
Dual CPU's and Linux Question


Hey All -

Im super noobie! Just a quick question. Im running a webserver on a dual cpu machine (motherboard) but the board only has one CPU (pentium 4 Xenon 2.4 GHz) on it. I just purchased a second CPU to add to the motherboard.

Now, can I just throw that in and turn it on with no problems or will I have to re-compile the kernal or re-install it or something?

Thanks,
Dirt
 
Old 08-27-2003, 02:04 PM   #2
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,756

Rep: Reputation: 71
You have to use the smp kernel. If not installed you will need to install the rpm. Then you should recompile it.
 
Old 08-27-2003, 02:45 PM   #3
Dirt
Member
 
Registered: Feb 2002
Location: St. Louis
Distribution: Red Hat 8.0
Posts: 30

Original Poster
Rep: Reputation: 15
How do I know if im running the smp kernal or not?
 
Old 08-27-2003, 10:12 PM   #4
tarballedtux
Member
 
Registered: Aug 2001
Location: Off the coast of Madadascar
Posts: 498

Rep: Reputation: 30
If its RedHat then type "uname -a" if you see something like smp-kernel or just smp then your should be ok. Maybe double the BIOS config? Otherwise you'll have to either get a new kernl RPM from RedHat or recompile your kernel from source.

--tarballedtux
 
Old 08-29-2003, 03:14 AM   #5
Dirt
Member
 
Registered: Feb 2002
Location: St. Louis
Distribution: Red Hat 8.0
Posts: 30

Original Poster
Rep: Reputation: 15
ok, Im still waiting on the second cpu to be delivered. I would think that I have to put the cpu in before I can check to see if it is set up for smp. I have read on here that...the "uname -a" command doesnt say anything about smp.
Quote:
since kernel 2.4.17+ the smp option is enabled by default
I am running kernel 2.4.18, so im hoping that I can just throw it in and not have to recompile the kernel. I have tried running the Red Hat smp-kernel rpm and all it does is throw a bunch of "Patch" files in my / directory. What do I do after that? Is that where its supposed to go?

I tried to recompile and I got a bunch of errors after "make modules" any ideas??? Heres what I did.

make menuconfig
* selected smp option with space bar *
make clean
make dep
make bzImage
make modules

Code:
/usr/src/linux-2.4.18-14/include/linux/poll.h:33: parse error before numeric constant
/usr/src/linux-2.4.18-14/include/linux/poll.h:33: `poll_freewait_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.18-14/include/linux/poll.h:33: warning: function declaration
isn't a prototype
In file included from paep.c:85:
paep.h:64:1: warning: "MODVERSIONS" redefined
<command line>:1:1: warning: this is the location of the previous definition
paep.c: In function `aep_read_procmem':
paep.c:184: invalid suffix on integer constant
paep.c:184: called object is not a function
paep.c:187: invalid suffix on integer constant
paep.c:187: called object is not a function
paep.c:190: invalid suffix on integer constant
paep.c:190: called object is not a function
paep.c:191: invalid suffix on integer constant
paep.c:191: called object is not a function
paep.c:192: invalid suffix on integer constant
paep.c:192: called object is not a function
paep.c:193: invalid suffix on integer constant
paep.c:193: called object is not a function
paep.c:194: invalid suffix on integer constant
paep.c:194: called object is not a function
paep.c:195: invalid suffix on integer constant
paep.c:195: called object is not a function
paep.c:197: invalid suffix on integer constant
paep.c:197: called object is not a function
paep.c:203: invalid suffix on integer constant
paep.c: In function `aep_remove_one_device':
paep.c:1124: `f20dabd8' undeclared (first use in this function)
paep.c:1124: called object is not a function
paep.c:1129: invalid suffix on integer constant
paep.c:1129: warning: null format string
paep.c:1129: called object is not a function
paep.c:1139: invalid suffix on integer constant
paep.c:1139: called object is not a function
paep.c:1148: invalid suffix on integer constant
paep.c:1148: called object is not a function
paep.c:1153: invalid suffix on integer constant
paep.c:1153: called object is not a function
paep.c:1158: invalid suffix on integer constant
paep.c:1158: called object is not a function
make[3]: *** [paep.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.4.18-14/drivers/addon/aep'
make[2]: *** [_modsubdir_aep] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.18-14/drivers/addon'
make[1]: *** [_modsubdir_addon] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.18-14/drivers'
make: *** [_mod_drivers] Error 2
and thats not all of it. It all wouldnt fit....any ideas?

Last edited by Dirt; 08-29-2003 at 03:23 AM.
 
Old 08-29-2003, 06:03 AM   #6
joel112
Member
 
Registered: Apr 2003
Distribution: Debian
Posts: 169

Rep: Reputation: 30
you might be better to start from source, get the latest kernel from www.kernel.org 2.4.22 at this point in time,

extract to /usr/src then in the extracted dir, just do make menuconfig fill in what you want... then make && make install && make modules && make modules_install, copt the bzImage from arch/i386/boot/ to /boot update lilo or grub etc and reboot, and just tweak till exrything works...

alternatively search the rmpfind db for a smp kernel rpm
 
Old 08-29-2003, 08:37 PM   #7
Dirt
Member
 
Registered: Feb 2002
Location: St. Louis
Distribution: Red Hat 8.0
Posts: 30

Original Poster
Rep: Reputation: 15
I found my problem, I had to do a

$make mrproper

It compiled fine after that.

I have one more question. Is there a specific kernel for smp? I keep hearing "download the smp kernel" Can I just activate it in my make menuconfig? Or am I missing something somewhere?

Dirt
 
Old 08-29-2003, 08:49 PM   #8
tarballedtux
Member
 
Registered: Aug 2001
Location: Off the coast of Madadascar
Posts: 498

Rep: Reputation: 30
Yeah, after typing "make menuconfig"

Under "Processor Type and Features"

Select "Symmetric Multi-Processing" or SMP


--tarballedtux
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
no of CPU's in a Linux server palanisaravanan Linux - Hardware 2 11-11-2005 05:34 AM
Dual CPU's FreeBSD 4.9 penguinz *BSD 1 02-11-2004 01:42 PM
Benchmarking tool for cpu's under linux????? damned Linux - Software 2 09-01-2003 08:52 AM
CPU's on Linux zakl Linux - Hardware 1 06-12-2003 03:54 AM
Dual CPU's and the Thunderbird ReverseLogic General 4 02-02-2002 06:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:20 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