LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Dual CPU's and Linux Question (https://www.linuxquestions.org/questions/linux-hardware-18/dual-cpus-and-linux-question-86319/)

Dirt 08-27-2003 01:00 PM

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

tangle 08-27-2003 01:04 PM

You have to use the smp kernel. If not installed you will need to install the rpm. Then you should recompile it.

Dirt 08-27-2003 01:45 PM

How do I know if im running the smp kernal or not?

tarballedtux 08-27-2003 09:12 PM

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

Dirt 08-29-2003 02:14 AM

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? :newbie:

joel112 08-29-2003 05:03 AM

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

Dirt 08-29-2003 07:37 PM

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

tarballedtux 08-29-2003 07:49 PM

Yeah, after typing "make menuconfig"

Under "Processor Type and Features"

Select "Symmetric Multi-Processing" or SMP


--tarballedtux


All times are GMT -5. The time now is 02:40 PM.