Kernel Sizes

I doubt they are applied by Redhat as sometimes the problem "Segmentation Fault" occurs, I'm pretty sure that RH doesnt want these errors and therefore doesnt add these options into the GCC config.

Shak
 
Originally posted by Shak
Theres a difference there though, because of the optomisations applied by Gentoo.

Optomisations that are used are things like this:

Code:
# Pentium Pro/Pentium II/Pentium III+/Pentium 4/Athlon optimized (but binaries
# will run on any x86 system)
#CHOST="i686-pc-linux-gnu"
#CFLAGS="-mcpu=i686 -O3 -pipe"
#CXXFLAGS="-mcpu=i686 -O3 -pipe"

# Pentium Pro/Pentium II/Pentium III+/Pentium 4/Athlon exclusive (binaries
# will use the P6 instruction set and only run on P6+ systems)
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=i686 -O3 -pipe"
CXXFLAGS="-march=i686 -O3 -pipe"

This would account for some of the speed difference.

Shak

You will find a nice speed increase, with no loss of stability with the use of -fomit-frame-pointer

There are loads more optimisations to be had, but you do risk the loss of stability, check the gentoo forums, and also the GCC documentation :) I used to use no optimisations at all until I got hold of gentoo, then I flicked through the GCC documentation to find loads more stuff you can do!!!....maybe this accounts for why I'm single.....sitting down and reading the GCC documentation of an evening!! :D

-Gavin
 
But Mr Sprockets sir, is that not a GCC 3.2 flag? I be running GCC 2.95.3.

I'll have to have a look at the GCC 3.2 flags for when I do my upgrade (over Xmas)

Shak
 
Originally posted by Mpemba Effect
Everythings proberbly built in as modules :)

Code:
Module                  Size  Used by    Tainted: P  
airo_cs                 4192   0 (unused)
airo                   70528   1 [airo_cs]
ds                      8352   2 [airo_cs]
i82365                 15072   2
pcmcia_core            48480   0 [airo_cs ds i82365]
autofs                 11940   0 (autoclean) (unused)
usb-ohci               20160   0 (unused)
usbcore                71168   1 [usb-ohci]
ext3                   64448   2
jbd                    47608   2 [ext3]

Not that many :o
 
FWIW my desktop Gentoo system gives

root@caveman boot # du -sch bzImage
1.2M bzImage
1.2M total
root@caveman boot # lsmod
Module Size Used by Tainted: P
NVdriver 1065984 10 (autoclean)

I don't really use modules - I compile everything in but I'm pretty strict about what I compile in.

I have parallel printer, USB, ext3, ide-scsi, tulip and SBLive and that's pretty much it. My NFS / Samba box has a 974K kernel with no modules.
 
Originally posted by Lucifer
i kinda realised i have no idea what options to choose at make menuconfig :(

You need to look at the current configuration, that is the .config file in you're other kernel sources and choose the hardware that you have, if there is some hardware there that you dont have de-select it.

You need to know the hardware and then just select which bits you need :p

Shak
 
i'm doing a test run on my desktop maching before i attack the server, i just made educated guesses for most of the options, reading the help bits, lets see if it boots :)
 
Originally posted by Lucifer
i'm doing a test run on my desktop maching before i attack the server, i just made educated guesses for most of the options, reading the help bits, lets see if it boots :)

Thats the way everyone does it on the first go I think mate,

If the kernel panics, then take a look where in the loading it does or where there is an error. That way you can tell what you got wrong

Shak
 
it didn't panic :) it booted, but i broke network support :( and got a lot of errors during boot
also, i have to change the path in menu.lst from /boot/bzImage (as in your tutorial) to just /bzImage, i dunno why. /boot/bzImage just gave me a file not found error. where can i find a log of all the boot errors?
 
Back
Top Bottom