Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SMP Question
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
DRosenthal
n00b
n00b


Joined: 09 Oct 2002
Posts: 17

PostPosted: Mon Nov 04, 2002 3:10 pm    Post subject: SMP Question Reply with quote

I have searched the forums and not found the info I was looking for. I did find info I didn't know I needed (edit the /etc/make.globals file for SMP compiling) but I still have a question. Sorry if my search missed it.

What I need to know is, do I have to do anything special for the 2.4 kernel to recognize multiple processors or will it detect them and compile SMP into the kernel if I just set that switch (-j3) in /etc/make.globals? A Giga-byte GA-6BXD motherboard with dual 500 MHz P3's, 256 MB of RAM, and an 80 Gig IDE HD, is the system I am going to be installing Gentoo on.
Many thanks in advance!!

David
Back to top
View user's profile Send private message
securiteaze
Tux's lil' helper
Tux's lil' helper


Joined: 24 Oct 2002
Posts: 77
Location: Tulsa,Oklahoma

PostPosted: Mon Nov 04, 2002 6:04 pm    Post subject: Reply with quote

Usually I add the following line to /etc/make.conf
Code:
MAKEOPTS="-j3"


Make sure you compiled smp support in you kernel.

Processor type and features
[*] Symmetric multi-processing support
_________________
Blah..
Back to top
View user's profile Send private message
phong
Bodhisattva
Bodhisattva


Joined: 16 Jul 2002
Posts: 778
Location: Michigan - 15 & Ryan

PostPosted: Mon Nov 04, 2002 6:38 pm    Post subject: Reply with quote

You have to explicitly configure your kernel for SMP support - no part of the kernel compilation uses settings in make.conf or make.globals. Also note, you should never, ever edit make.globals - always put changes in make.conf.
_________________
"An empty head is not really empty; it is stuffed with rubbish. Hence the difficulty of forcing anything into an empty head."
-- Eric Hoffer
Back to top
View user's profile Send private message
DRosenthal
n00b
n00b


Joined: 09 Oct 2002
Posts: 17

PostPosted: Mon Nov 04, 2002 8:28 pm    Post subject: Reply with quote

Many thanks for the replys. I'm still pretty new to Linux in general and Gentoo in specific.

Could you please tell what step of the install (assuming a stage 1 tarball) that I would edit /etc/make.conf ?
Thanks again!

David
Back to top
View user's profile Send private message
phong
Bodhisattva
Bodhisattva


Joined: 16 Jul 2002
Posts: 778
Location: Michigan - 15 & Ryan

PostPosted: Mon Nov 04, 2002 8:43 pm    Post subject: Reply with quote

It's step 11.
The Installation Instructions wrote:
Now that you have a working copy of the Portage tree, people using stage1 to install will need to bootstrap their Gentoo Linux system as follows. First edit the file /etc/make.conf. In this file, you should set your USE flags, which specify optional functionality that you would like to be built into packages; generally, the defaults (an empty or unset USE variable) are fine. More information on USE flags can be found here.

You also should set appropriate CHOST, CFLAGS and CXXFLAGS settings for the kind of system that you are creating (commented examples can be found further down in the file.) Your best friend is man gcc to figure out what additional CFLAGS and CXXFLAGS are available. Search for 'Optimization'.

_________________
"An empty head is not really empty; it is stuffed with rubbish. Hence the difficulty of forcing anything into an empty head."
-- Eric Hoffer
Back to top
View user's profile Send private message
DRosenthal
n00b
n00b


Joined: 09 Oct 2002
Posts: 17

PostPosted: Tue Nov 05, 2002 6:26 pm    Post subject: Reply with quote

Thanks again for all the good info. I had stopped reading the install guide at step 10 (where my CD-less install of Gentoo cratered).

I guess my next question is should I install 1.2 or 1.4? Or more accurately, is there any reason (e.g. stability) not to install 1.4? Personal reasons for building a Gentoo box are that I am building a test server to study for my SAIR/GNU Linux certification. I have taken test 1, Install and Config, now I'm getting ready for tests 2 & 3, System Administration, and Networking. I intend to use this server in my home network (NIS, YP, Samba, etc.), but that's a secondary goal. I must have a server I can practice on, and I don't have the time to be constantly repairing stuff I'm not trying to study at the moment.
Thanks again,

David
Back to top
View user's profile Send private message
masseya
Bodhisattva
Bodhisattva


Joined: 17 Apr 2002
Posts: 2602
Location: Baltimore, MD

PostPosted: Tue Nov 05, 2002 8:53 pm    Post subject: Reply with quote

This is a debate that many have waged. :) The short answer is that there have been more problems with 1.4rc1 because of GCC 3 than with the old more established GCC 2.95. This "more problems" is highly relative. I haven't really encounted any problems with 1.4rc1 in terms of stability. Please note that I am not using SMP and I haven't really read a lot of dicussion about GCC 3 and SMP systems.

The longer and more painful answers are About Gentoo 1.4... and Would u install GENTOO as a SERVER?

There may not be a whole lot of information in those for SMP issues, but there's a good deal of speculation about stability issues in 1.4 vs. 1.2.
_________________
if i never try anything, i never learn anything..
if i never take a risk, i stay where i am..
Back to top
View user's profile Send private message
DRosenthal
n00b
n00b


Joined: 09 Oct 2002
Posts: 17

PostPosted: Tue Nov 05, 2002 9:52 pm    Post subject: Reply with quote

Thanks again for pointers to relevant threads and good info. Just a few more questions before I'm ready to actually install then.

I notice that the install document is listed as being for 1.4. Since I've decided to install 1.2, am I going to need to change anything, or is there a link you can give me to the 1.2 install document? Are the USE flags the same between 1.2 and 1.4?
Thanks,

David
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Tue Nov 05, 2002 10:14 pm    Post subject: Reply with quote

USE flags are constantly being added, but it's not a compiler version-specific thing. IOW, even if you choose to install GCC 2.95 (Gentoo 1.2), you can still use any of the latest and greatest USE flags supported by ebuilds you install. The 1.2 install guide is here.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
nE0
Tux's lil' helper
Tux's lil' helper


Joined: 08 Aug 2002
Posts: 146
Location: The Netherlands, Breda

PostPosted: Wed Nov 06, 2002 7:48 am    Post subject: Reply with quote

securiteaze wrote:
Usually I add the following line to /etc/make.conf
Code:
MAKEOPTS="-j3"


Make sure you compiled smp support in you kernel.

Processor type and features
[*] Symmetric multi-processing support


This will only tell make to start multiple (3) chunks of code to compile. This might speed up the compilation.
Usaualy , this will work on any New system (IE: With a PIV or a Athlon XP) as wel on a SMP system. But, in order to let your system use smp, it has to be compiled into the kernel.

I have also foud that a higher setting is not always smart, where sometimes you will fail at some dependency. Part 1 is ready tot start anaother, wil it needes part to completed.
_________________
All things considerring! I'm considerring to...never mind!
Back to top
View user's profile Send private message
DRosenthal
n00b
n00b


Joined: 09 Oct 2002
Posts: 17

PostPosted: Wed Nov 13, 2002 4:00 am    Post subject: Reply with quote

rac wrote:
USE flags are constantly being added, but it's not a compiler version-specific thing. IOW, even if you choose to install GCC 2.95 (Gentoo 1.2), you can still use any of the latest and greatest USE flags supported by ebuilds you install. The 1.2 install guide is here.


I'm getting a 404 when I try to follow that link, is 1.2 dead and should just go with 1.4 now?
Thanks

David
Back to top
View user's profile Send private message
masseya
Bodhisattva
Bodhisattva


Joined: 17 Apr 2002
Posts: 2602
Location: Baltimore, MD

PostPosted: Wed Nov 13, 2002 4:22 am    Post subject: Reply with quote

The gentoo web developers are upgrading quite a few things at the same time. This is why the link is now dead. Hopefully, they will have everything straight soon. In all honesty, I don't see a whole lot of reason to not go with 1.4. The install guide for 1.4 is very straightforward. If you want more information on the USE flags there's a doc on that too.

That being said. If you really want to install 1.2 please don't think that a lack of a document has to stop you. There are many people on the forums who have done this install many times and several (including myself) have printed copies with notes on them. :) Feel free to ask questions. The overall process is pretty similar.
_________________
if i never try anything, i never learn anything..
if i never take a risk, i stay where i am..
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum