LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 07-31-2004, 11:21 AM   #1
Zaskar
Member
 
Registered: Feb 2004
Location: NY
Distribution: Debian (Testing)
Posts: 219

Rep: Reputation: 30
Dual processor support


heya guys im installing Debian on a Dual P3, im guessing it doesnt auto detect its a dual and will install a normal kernal by default.

Whats the easiest way to make it supported for a dual processor? (i seem to have trouble with compiling kernals, i always mess something up when making a newer vesion upgrade at the end when it asks for lilo config options >< )

-Krause
 
Old 07-31-2004, 11:34 AM   #2
SonJelfn
Member
 
Registered: Aug 2003
Location: Sendai, Japan
Distribution: Slackware, Slackware64, Debian
Posts: 63

Rep: Reputation: 17
You only have to make sure that you enable SMP (Symmetric Multiprocessing) in the kernel config of your current working kernel. That should let you detect both processors. That option is in the same menu as the one where you pick the type of processor you will be using. Good luck.
 
Old 07-31-2004, 11:42 AM   #3
Zaskar
Member
 
Registered: Feb 2004
Location: NY
Distribution: Debian (Testing)
Posts: 219

Original Poster
Rep: Reputation: 30
great

will i be able to edit that without the need to recompile it?
 
Old 07-31-2004, 01:14 PM   #4
SonJelfn
Member
 
Registered: Aug 2003
Location: Sendai, Japan
Distribution: Slackware, Slackware64, Debian
Posts: 63

Rep: Reputation: 17
Unfortunately you cant get this option without recompiling the kernel. I'm sorry I forgot to mention that in my first post. Fortunately though, only this option is needed to see both processors so with a simple kernel recompile you should be able to pull it off.
 
Old 07-31-2004, 01:36 PM   #5
zuralin
Member
 
Registered: Sep 2003
Distribution: Debian testing/unstable
Posts: 229

Rep: Reputation: 32
apt-cache search kernel-image smp

some prebuilt kernels with smp support enabled. apt-get install one of those
 
Old 07-31-2004, 01:43 PM   #6
Zaskar
Member
 
Registered: Feb 2004
Location: NY
Distribution: Debian (Testing)
Posts: 219

Original Poster
Rep: Reputation: 30
ill do that, then ill get one of my other old spare comps to mess around with the kernel building the manual wy with debian till i figure it out

ty man

-Krause
 
Old 07-31-2004, 01:48 PM   #7
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Re: Dual processor support

Quote:
Originally posted by Zaskar
heya guys im installing Debian on a Dual P3, im guessing it doesnt auto detect its a dual and will install a normal kernal by default.

Whats the easiest way to make it supported for a dual processor? (i seem to have trouble with compiling kernals, i always mess something up when making a newer vesion upgrade at the end when it asks for lilo config options >< )

-Krause
apt-get install kernel-image-?.?.??-?-686-smp then open /etc/lilo.conf for editing and make sure that you have a line for the initrd in the section for the new kernel it should look similar to this when it is right.

Code:
# Boot up Linux by default.
#
default=Linux

image=/vmlinuz
        label=Linux
        initrd=/boot/initrd.img-2.4.18-586tsc
        read-only
#       restricted
#       alias=1

image=/vmlinuz.old
        label=LinuxOLD
        read-only
        optional
#       restricted
#       alias=2
Or you could just use initrd=/initrd.img in the section which should be a symbolic link to the /boot/initrd.img-?.?.??-?-686-smp that you installed for example what the link looks like for my firewall.

Code:
DoopeyTux:/home/stephen# ls -l /initrd.img
lrwxrwxrwx    1 root     root           30 Apr  7 18:18 /initrd.img -> /boot/initrd.img-2.4.18-586tsc

To find the images available to you assuming you have Woody installed like on my firewall use this.

Code:
DoopeyTux:/home/stephen# apt-cache search kernel image smp
kernel-image-2.4.16-686-smp - Linux kernel image 2.4.16 on PPro/Celeron/PII/PIII SMP.
kernel-image-2.4.18-686-smp - Linux kernel image 2.4.18 on PPro/Celeron/PII/PIII/PIV SMP.
kernel-image-2.4.18-1-686-smp - Linux kernel image 2.4.18 on PPro/Celeron/PII/PIII/PIV SMP.
So it looks like you would want be installing kernel-image-2.4.18-1-686-smp. When apt is installing the kernel say ok to the fact you will have to edit lilo to put in the initrd line then no to the question of the boot floppy and yes to using the existing lilo configuration to write to the disk now edit the lilo.conf make the change necessary for the initrd line save the file and exit and don't forget to run the command /sbin/lilo -v to write the changes to the disk now reboot and you should have both processors used.
 
Old 07-31-2004, 01:55 PM   #8
Zaskar
Member
 
Registered: Feb 2004
Location: NY
Distribution: Debian (Testing)
Posts: 219

Original Poster
Rep: Reputation: 30
awsome ill try that tonight

quick question with that. whow do i know what they were compiled with, nvidia drivers dont like it when u compile them with a different (like a newer one) compilet type.

like when i installed woody then upgradded to sarge i couldnt install the nvidia drivers cause i uptaded all the c++, g++ ets. i had to re install and install the nvidia drivers, then upgrade ><

thanks guys

-Krause
 
Old 07-31-2004, 02:22 PM   #9
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally posted by Zaskar
awsome ill try that tonight

quick question with that. whow do i know what they were compiled with, nvidia drivers dont like it when u compile them with a different (like a newer one) compilet type.

like when i installed woody then upgradded to sarge i couldnt install the nvidia drivers cause i uptaded all the c++, g++ ets. i had to re install and install the nvidia drivers, then upgrade ><

thanks guys

-Krause
You could use in the console window before you try to compile and install export IGNORE_CC_MISMATCH=1 to ignore the mismatch or export CC=/usr/bin/gcc-2.95 to have the 2.95 version used for the compile. To tell which version your kernel was compiled with (it is going to be 2.95 unless you compiled it yourself) use dmesg | more and the compiler version will be included in the first line similar to this.

Code:
Linux version 2.6.7-ck5 (root@HappyTux) (gcc version 3.3.4 (Debian)) #1 Wed Jul
7 23:54:42 ADT 2004
 
Old 07-31-2004, 02:32 PM   #10
Zaskar
Member
 
Registered: Feb 2004
Location: NY
Distribution: Debian (Testing)
Posts: 219

Original Poster
Rep: Reputation: 30
haha thats great man thanks

im learning more every day :P im getting there ><

-Krause
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Which Kernel version support dual processor? r_akarach Debian 1 12-21-2004 08:25 PM
Installing Linux on a dual processor machine (only one processor detected) rocordial Linux - Hardware 1 11-27-2004 02:16 AM
Dual Processor Support linnewbietoo Linux - Software 3 07-24-2004 06:40 AM
4 processor listings in cpuinfo on dual processor system. atticboy1 Linux - Hardware 2 02-08-2004 06:35 PM
? Dual processor support Mandrake 9.1 kgound Linux - Software 2 07-23-2003 12:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 08:30 PM.

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