LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 10-09-2002, 10:38 AM   #1
dexter_modem
Member
 
Registered: Oct 2002
Location: Chicago
Distribution: slackware > redhat
Posts: 69

Rep: Reputation: 15
dual processors


i just got slackware 8.1 installed last night and i think it only say one of my processors!!

here is a cat of /proc/cpuinfo

root@babylon:/# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 7
model name : Pentium III (Katmai)
stepping : 3
cpu MHz : 501.148
cache size : 512 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 mmx fxsr sse
bogomips : 999.42

What did i do wrong durring the installation?!?! right now i am downloading slackware-current. i will try that tonite. any help is greatly appreciated.

 
Old 10-09-2002, 10:57 AM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 66
You need to recompile your kernel and make sure you enable SMP. I am not sure if the base Slackware kernels include that or not.

Check out the below site for instructions on compiling a kernel. While your at it you should probably get the newest kernel from www.kernel.org too.
http://www.tldp.org/HOWTO/Kernel-HOWTO.html#toc
 
Old 10-09-2002, 02:13 PM   #3
dexter_modem
Member
 
Registered: Oct 2002
Location: Chicago
Distribution: slackware > redhat
Posts: 69

Original Poster
Rep: Reputation: 15
uh oh this looks like its going to be a pain in my neck...
 
Old 10-09-2002, 03:00 PM   #4
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 66
It really isn't that hard to do, and it is something anyone who wants to understand linux really should do anyway.

I'll give you the basic steps I usually use....

One, extract linux-version.tar.gz to my home directory, move folder to /usr/src/linux-version. You have to be root to do this btw...

cd /usr/src/linux-version
make menuconfig
go through and pick all the options you want, you have a choice of saying yes, no, or compiling things as modules. Read the help on each option for more information. The options that are really important to not forget are things like ReiserFS if you use it, ext3 if you use it, ect.

make bzImage
This makes the image of you new kernel and puts it in /usr/src/linux-version/arch/i386/boot/ if you are running on something other then x86 change the i386 as neccesary.

make modues
builds all your modules

make modules_install
installs all your modules

now mv bzImage to /boot/bzImage-version

edit lilo.conf and add a new option to the boot menu for your /boot/bzImage-version kernel.

run lilo

reboot....

The reason why you add a new option is you don't want to overwrite your good kernel only to find you made a mistake and the new kernel won't boot.

Oh, and make sure you check off SMP under the general options on menuconfig.

If you have any questions drop me an e-mail or reply here.

John

oh... btw, once it all works change the dynamic link /usr/src/linux to point to your new /usr/src/linux-version directory. You do this by rm /usr/src/linux and then doing ln -s /usr/src/linux-version /usr/src/linux. That way when you compile any new kernel modules they link against the correct kernel source... kinda important if you ask me.

Last edited by jtshaw; 10-09-2002 at 03:02 PM.
 
Old 10-09-2002, 04:42 PM   #5
pesho_p
Member
 
Registered: Oct 2002
Location: 42 42' N, 23 19' E
Distribution: Slackware 8.1
Posts: 77

Rep: Reputation: 15
Yes - Slackware doesn't support SMP out of the box so you _must_ to compile your own kernel. It's not as hard as it seems. You need more practice and all will be fine

0. Download latest stable kernel sources from http://www.kernel.org
1. cd /usr/src
2. tar -zxvf <path_to_downloaded_kernel>/linux-2.4.19.tar.gz (or -jxvf if *.tar.bz2)
3. ln -sf linux-2.4.19/ linux
4. cd linux/
5. make menuconfig (choose appropriate options for your system, SMP support is one of them for example )
6. make dep clean bzImage OR make dep clean; make -j 3 bzImage
7. make modules modules_install OR make -j 3 modules; make modules_install (only if you have answered with <m> instead of <y> and <n> somewhere in menuconfig)
8. cp arch/i386/boot/bzImage /boot/vmlinuz-smp-2.4.19
9. cp System.map /boot/System.map-smp-2.4.19
10. cp .config /boot/config-smp-2.4.19 (generally it's a good idea to have a copy from your .config file)
11. cd /boot
12. ln -sf System.map-smp-2.4.19 System.map
13. ln -sf config-smp-2.4.19 config
14. vi /etc/lilo.conf (add instance to your new kernel here, for example:

boot=/dev/hda1
prompt
timeout=50
change-rules
reset
vga=normal
default=Linux_SMP
image=/boot/vmlinuz <-- Slackware 2.4.18 bare.i
root=/dev/hda1
label=Linux_UP
read-only
image=/boot/vmlinuz-smp-2.4.19 <-- Your self-made kernel :-)
root=/dev/hda1
label=Linux_SMP
read-only

)

15. lilo
16. shutdown -r now


Now you must see something like this:

Quote:
Linux version 2.4.19 (root@darkstar) (gcc version 2.95.3 20010315 (release)) #1 SMP Wed Oct 9
18:15:25 EEST 2002
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 000000000bff0000 (usable)
BIOS-e820: 000000000bff0000 - 000000000bff3000 (ACPI NVS)
BIOS-e820: 000000000bff3000 - 000000000c000000 (ACPI data)
BIOS-e820: 00000000fec00000 - 00000000fec01000 (reserved)
BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
191MB LOWMEM available.
found SMP MP-table at 000f5ae0
hm, page 000f5000 reserved twice.
hm, page 000f6000 reserved twice.
hm, page 000f1000 reserved twice.
hm, page 000f2000 reserved twice.
Advanced speculative caching feature not present
On node 0 totalpages: 49136
zone(0): 4096 pages.
zone(1): 45040 pages.
zone(2): 0 pages.
Intel MultiProcessor Specification v1.4
Virtual Wire compatibility mode.
OEM ID: OEM00000 Product ID: PROD00000000 APIC at: 0xFEE00000
Processor #0 Pentium(tm) Pro APIC version 17
Processor #1 Pentium(tm) Pro APIC version 17
I/O APIC #2 Version 17 at 0xFEC00000.
Processors: 2
Kernel command line: auto BOOT_IMAGE=Linux_SMP ro root=303
video=matrox:vesa:0x118,init,sgram
Initializing CPU#0
Detected 501.148 MHz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 999.42 BogoMIPS
Memory: 190592k/196544k available (2153k kernel code, 5564k reserved, 631k data, 184k init, 0k highmem)
...
(this is from my beloved Abit BP6 with 2 x 500MHz Celeron)


Below you can see the advantage of SMP:

make -j 3 bzImage: 13m 49.747s (UP kernel)
make -j 3 bzImage: 7m 20.457s (SMP kernel)

or 829.747s / 440.457s ~ 1.9
 
Old 10-09-2002, 05:22 PM   #6
dexter_modem
Member
 
Registered: Oct 2002
Location: Chicago
Distribution: slackware > redhat
Posts: 69

Original Poster
Rep: Reputation: 15
well now it seems easier.. thanks for all the help guys... i'll let you know how it goes..
 
Old 10-10-2002, 01:02 PM   #7
dexter_modem
Member
 
Registered: Oct 2002
Location: Chicago
Distribution: slackware > redhat
Posts: 69

Original Poster
Rep: Reputation: 15
Hey i finally got it to work!!! and man is it way faster.. now it is an asus 2 x 500MHz PIII

Thanks for all the help!

I am brand new to slackware, I used to be a redhat user. I wanted to try something new and so far improved. So far I have learned that I have a lot to learn. And its probibly good for me.
 
  


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
dual processors dot_txt Linux - Hardware 1 11-29-2005 07:47 PM
Dual Processors rcu316 Linux - Hardware 2 03-24-2005 11:08 PM
Dual processors canyon289 Linux - Hardware 4 09-24-2004 12:17 AM
DUAL MP Processors tubinator Linux - Hardware 4 10-17-2003 03:10 PM
dual processors? ocularbob Linux - Hardware 15 05-13-2003 01:38 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration