Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Mini HowTo: Making a streamlined, fast & stable Gentoo B
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Nutterpc
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2004
Posts: 83

PostPosted: Wed Jul 28, 2004 5:41 pm    Post subject: Mini HowTo: Making a streamlined, fast & stable Gentoo B Reply with quote

This is probably something I never thought I'd get to...... 8O

Normally having done Tweaking/Optimisation Guides for Windows for many years, never did I think I would be able to write my very first one for Gentoo :D

Well, its been about 6months or thereabouts, so here goes *drumroll*

Our 1st Step: Follow the Handbook largely until you get to the point of creating your make.conf, and as this seems to be a hot subject, yes, the CFLAGS subject. One piece of advice I could say is as follows: if it works, don't f**k with it. If it works, but you want more, then read manuals.....

For the AMD K7 persons out there, I present you this link:
http://www.amd.com/us-en/assets/content_type/ white_papers_and_tech_docs/22007.pdf

For the AMD64/Opteron people, the following link:
http://www.amd.com/us-en/assets/content_type/ white_papers_and_tech_docs/25112.PDF

And last, but not least, the Intel users out there :)
http://www.intel.com/design/pentium4/manuals/248966.htm

The above links are only for those interested in reading. I've got all 3, read thru almost all of the AMD K7 manual, and applied some of what it has to mention. The results for me are certainly noticeable. But again, if you decide to choose this, YMMV

Our 2nd Step: Now we should be almost at the point of starting Stage1 bootstrap :), so here comes the fun. Its tedious for some, yet relaxing for others, watching code roll by on the screen. For me its the latter 8)

Our 3rd Step: All going well, you should have now completed stage1 bootstrap, and be ready to proceed onto stage2. Grab a pen & paper, as what we are going to do here is as follows:

emerge -pv system | less

What this will do is work out for our system what it is that we need, and what other "USE" flags there are associated with that given program/library. Going through, write down on a piece of paper what USE flags you know you don't want, for example -kde -gnome......something like that :wink:

Once you have all these flags together, its time to commit them to our make.conf, before we proceed to stage2 bootstrap. Now we just hit emerge system, kick back & relax, this is going to take a while.

Our 4th Step: Now comes the fun.......Kernel Configuration :twisted:

This seems to be a touchy subject for some I suppose, who have never really given it a go, rolling your own kernel. Its certainly a learning curve, what might seem very steep, but isn't actually as bad as you might think, and quite good fun, trying to see what sorta size kernel you can make :D

In the Kernel Camp, there seem to be a few different sort of people:

1) Optimisers - Those who strive to peel away at the kernel, bit by bit, to see exactly what they can get out of it.

2) Stabilisers - Those who know about what hardware they have, and what they will need, but don't care for extra speed, as long as it works, that's all that matters to them.

3) Security Freaks - These people will try to make a kernel so watertight, that its tighter than a ....... (you should know that bit :wink: ), ensuring almost nothing can get through at all

4) The Beginner - Fresh into Gentoo or Linux in general, these people choose generally to take the easy route, having a kernel premade for them (genkernel), taking the headache out of having to roll their own


Soon as I get some time to do it, since there's going to be a fair bit involved in doing so, I'll try to do a picture based guide for those of you out there that might want to see it, on making a small kernel

And generally when I define small.......for me its below 800kB for a 2.4 kernel, or 1024kB or below for a 2.6 kernel

Our 5th Step: After configuring the kernel, continue to follow the handbook till the end. Don't worry, this will all soon be done, and a clean Gentoo install is ready for us & waiting on the reboot :D


Seems like hard work at first, doesn't it? Do it a few times, it becomes easier, and the time it takes to do an install gets lower. Now that you should have gotten yourself to the point of rebooting into your install, here's where the longest part (even moreso than the install, IMO) takes place......installing all the software/drivers you'll need

I generally tend to leave installing excess drivers/libraries during install, waiting till I'm rebooted into my new Gentoo install, before proceeding on doing extra software installations.

Extra things I'll try to add to this as I get more time to do so, are items like udev, nptl and whatever other goodies I can think of to write about :)

I hope, for this small amount of a guide, that it can be useful for someone, if not a few people.

Have fun

Nutterpc
_________________
If it isn't broke, you ain't tweaked it right
Registered Linux User 353232
Back to top
View user's profile Send private message
MighMoS
Guru
Guru


Joined: 24 Apr 2003
Posts: 416
Location: @ ~

PostPosted: Thu Jul 29, 2004 5:23 am    Post subject: Reply with quote

Your top two AMD links have a space in them, which prevents them from resolving correctly...
_________________
jabber: MighMoS@jabber.org

localhost # export HOME=`which heart`
Back to top
View user's profile Send private message
bennettp
Guru
Guru


Joined: 22 Feb 2004
Posts: 335
Location: on my back and tumbling

PostPosted: Thu Jul 29, 2004 4:56 pm    Post subject: Re: Mini HowTo: Making a streamlined, fast & stable Gent Reply with quote

Nutterpc wrote:
For the AMD K7 persons out there, I present you this link:
http://www.amd.com/us-en/assets/content_type/ white_papers_and_tech_docs/22007.pdf

For the AMD64/Opteron people, the following link:
http://www.amd.com/us-en/assets/content_type/ white_papers_and_tech_docs/25112.PDF

And for those of you (like me ;)) too lazy to do this yourself:

K7: http://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/22007.pdf
AMD64: http://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/25112.PDF
Back to top
View user's profile Send private message
Nutterpc
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2004
Posts: 83

PostPosted: Fri Jul 30, 2004 12:33 pm    Post subject: Reply with quote

hehehe, soory bout that bit, didn't actually see that gap :oops:

Tis okay tho, thanks bennettp for correcting it :D

In probably the next few days I'll get to finishing doing a bit more of it, might add some more stuff to it, so if there's something you'd like to see me try to add onto it, gimme a hoy and I'll see what I can do :)

*Taps away at keyboard........*
_________________
If it isn't broke, you ain't tweaked it right
Registered Linux User 353232
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks 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