LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 07-26-2004, 10:13 AM   #1
KaptinKABOOM
Member
 
Registered: Jun 2004
Location: Morgantown, WV
Distribution: Slackware 10.0
Posts: 39

Rep: Reputation: 15
SMP Slackware problem


I cannot find the line "MAKE=make" in the Makefile in the kernel source to change it to compile my SMP kernel.....I am kinda confused.. should I just add a line that says "MAKE=make -j3"?
 
Old 07-26-2004, 11:08 AM   #2
MunCH
Member
 
Registered: Feb 2004
Location: Australia
Distribution: Red Hat 9, Slackware
Posts: 79

Rep: Reputation: 15
now I'm confused, why are you trying to edit your make file manually, wouldnt it be easier to open your kernel config file with say "make xconfig" changing what you need saving and then doing your compile?

MunCH
 
Old 07-26-2004, 06:50 PM   #3
KaptinKABOOM
Member
 
Registered: Jun 2004
Location: Morgantown, WV
Distribution: Slackware 10.0
Posts: 39

Original Poster
Rep: Reputation: 15
No I am not trying to manually edit the file, I am only trying to compile the Kernel Which I have already done the menu configuration for.

When compiling a SMP Kernel It seems that you have to compile it like the following:

Code:
make -j2 "MAKE=make -j2" bzImage
or zImage if you are makin one of them nifty "bootable from a floppy" kernels

The original guide I read said you should modify the makefile to change MAKE="make" to MAKE="make -j2"

From what I can gather -j2 means that it can run 2 jobs at once.... so you can use jN where n is = to the number of prcessors ... But I have not gotten it to run in SMP mode yet.

I compiled a Kernel with those options, everything runs fine BUT I have yet to make Slackware recognise the dual CPUS....
 
Old 07-26-2004, 07:07 PM   #4
rotvogel
Member
 
Registered: Oct 2003
Posts: 534

Rep: Reputation: 30
SMP is in the kernel configuration. The -j <integer> option is an option for make and has no effect on the kernel , only on the build proces of the kernel. So you can specify the -j3 option on the commandline as in :
Code:
make -j3 bzImage
Or from the man help:
Code:
-j jobs
Specifies  the  number  of  jobs  (commands) to run simultaneously.  If there is more than 
one -j option, the last one is effective.  If the -j option is given without an argument, make 
will  not  limit the number of jobs that can run simultaneously.
No need to edit Makefiles
 
Old 07-27-2004, 01:08 AM   #5
MunCH
Member
 
Registered: Feb 2004
Location: Australia
Distribution: Red Hat 9, Slackware
Posts: 79

Rep: Reputation: 15
hmmm OK the only options Iam aware of for smp support are

PROCESSOR TYPE AND FEATURES
-enable symmetric multi processing

CHARACTER DEVICES
-enhanced realtime clock support

I have these options enabled in the xconfig menu, there is also Intel IA32 CPU microcode support but I'm not sure what that does, I have compiled a couple of times run lilo rebooted and booted into the new kernel with only one processor, no idea what I have done wrong so I just make another bzImage. Now I'm booting into kernel 2.6.7 with dual xeon 2.8's hyperthreading and 4Gb RAM and this puppy just flies, maybe you missed something in your config file, thats what I think happened with my stuff ups, oh well no pnes perfect, good luck with it

MunCH
 
Old 07-27-2004, 10:07 AM   #6
KaptinKABOOM
Member
 
Registered: Jun 2004
Location: Morgantown, WV
Distribution: Slackware 10.0
Posts: 39

Original Poster
Rep: Reputation: 15
I did enable Enhanced realtime Clock Support and SMP for 2 processors......

IA32 Microcode is information in the processor that can be updated... form what I know its ONLY on Intel processors and I am decently certian that it is avaible on everything upwards of a pentium classic and pent pro (in other words Pentium II and beyond)

That has nothing to do with my problem, The Rpoblem is that It only is recognising one Cpu (They are Athlon 2400+ MP's) when I do a
Code:
cat /proc/cpuinfo
I thought the kernel might even have to be Compild differently to make the SMP work with a newly compiled kernel, which is why I thought the
Code:
 make -j2
command was necessary I figured it would build all the modules diferently enabling SMP by allowing 2 jobs to be run from each at once in the kernel..... I dunno I only have small amounts of programing knowledge so I do not exactly know what its supposed to do.. but I read that I needed to do it.

"no idea what I have done wrong so I just make another bzImage." --- What EXACTLY do you mean by this? you just remade the SAME bzImage using the same configuration you used before? .... ??

this maks no sense? did you just use someone elses kernel? how did you get SMP running? what step did you do wrong?

and no nothing in my configuration files is messed up ... everything is correct as far as I know of the optios (yeah both of the things you mentioned are enabled)
 
Old 07-27-2004, 10:34 AM   #7
KaptinKABOOM
Member
 
Registered: Jun 2004
Location: Morgantown, WV
Distribution: Slackware 10.0
Posts: 39

Original Poster
Rep: Reputation: 15
I just realized the mistake I made in hthinking that
Code:
make -j2
was for making the kernel.... Its actually for running the copilation of the kernel on both processors.. of which I only have one running heh.
 
  


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
SMP in Slackware 8.0 TotalDefiance Linux - Hardware 1 11-21-2004 10:23 PM
Slackware 10 SMP swinchen Slackware 1 09-13-2004 10:17 AM
Slackware 10 Athlon SMP problem Tyan Mobo KaptinKABOOM Slackware 1 07-19-2004 12:47 PM
9.1 Slackware SMP.S? jss Slackware 4 11-30-2003 09:58 AM
SMP on slackware? andy_lee Linux - Hardware 3 01-17-2003 04:22 AM

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

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