LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-24-2002, 11:54 AM   #1
StamfordRob
Member
 
Registered: Jan 2002
Location: Stamford CT
Posts: 97

Rep: Reputation: 15
why recompile for speed??


all....
i was reading a post in the 'installation' lists and it mentioned that they should recompile their kernel for more speed.. what did this mean?? not the recompile but what could you add to the kernel that will tweak it that much..

r
 
Old 01-24-2002, 12:32 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
the kernel contains a lot of junk basically. When you release a shrink wrapped box with a system inside it, that system needs to work on as many machines as possible in order for it to be useful. consequently there are lots of things compiled into the kernel that are not needed, and when the kernel is bigger, it naturally uses more memory and is slower and can affect the performance of your system. For instance i have no scsi devices, so i ave no scsi drivers in my kernel. and lots of other things like that.

my own kernel isn't tiny, BUT:

-rw-r--r-- 1 root root 1058833 Nov 9 00:35 vmlinuz-2.4.13-6mdk
-rw-r--r-- 1 root root 778629 Dec 27 13:13 vmlinuz-2.4.17

you can see the difference in size is noticeable.
 
Old 01-24-2002, 05:50 PM   #3
isajera
Senior Member
 
Registered: Jun 2001
Posts: 1,635

Rep: Reputation: 45
the main thing for recompiling a kernel is to add processor optimizations and get rid of junk - it's not really what you can add, it's what you can take out of the kernel that speeds it up. a smaller kernel is faster and more stable than a large kernel.
 
Old 01-27-2002, 06:06 AM   #4
ugge
Senior Member
 
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
Most linux distributions come with a kernel compiled to be backward compatible with intel 486.
By doing so the newer processor instructions implemented in newer processors won't be used.
 
Old 01-28-2002, 03:25 PM   #5
StamfordRob
Member
 
Registered: Jan 2002
Location: Stamford CT
Posts: 97

Original Poster
Rep: Reputation: 15
where can i find more info on this?? i guess to start where can i find a compiler..
 
Old 01-28-2002, 03:34 PM   #6
TacKat
Member
 
Registered: Jan 2002
Distribution: LFS
Posts: 90

Rep: Reputation: 15
You will probably already have a compiler installed, or if not your distro will have a way of installing it through whatever package system they use. Look for "gcc". While you're getting that, you might want to install the kernel source as well. The source for the version you are using will be available in your distro somehow, or if you feel like upgrading, go check out http://www.kernel.org.
 
Old 01-28-2002, 04:12 PM   #7
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
I read some of the post and run Kernel Configurator in Mandrake Linux 8.1. It gave me a text file. What are the steps to compile a kernel. I read the Kernel How to's and I still don't understand it. Can someone summarize the steps or the command lines that I need to type.
 
Old 01-28-2002, 04:50 PM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
what IS this kernel config program ppl keep talking about?? just read the relevant bits of the howto at linuxdoc.org for standard kernel info, the quick guide makes perfect sense i think

make xconfig
make dep
make bzImage
make modules
make modules_install
 
Old 01-28-2002, 06:56 PM   #9
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Kernel Configurator is found in KDE. It is an X window software so it is a little slow.

Buildkernel program for us newbies:
http://users.dhp.com/~whisper/buildkernel/

I haven't got to the part on installing BuildKernel.
 
  


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
PCI bus speed and video card speed juanbobo General 0 08-01-2005 01:13 PM
K3b indicated speed higher than speed of DVD+R Frank_Drebin Slackware 3 11-13-2004 10:10 AM
Gnome Update, Mouse Speed, Overall System Speed funaroma Linux - Newbie 2 08-04-2004 10:13 PM
cdrecord - trying to use high speed medium on low speed writer captain-cat Linux - Hardware 2 07-12-2004 06:27 PM
Is there a tool to monitor Internet connection speed and also network speed? xleft4dexy Linux - Networking 4 10-14-2003 10:29 PM


All times are GMT -5. The time now is 10:23 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration