LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 11-27-2005, 04:37 PM   #1
jstaffon
LQ Newbie
 
Registered: Nov 2005
Location: Idaho
Distribution: Mandrake/Mandriva
Posts: 5

Rep: Reputation: 0
Need a lean-mean kernel!!


I'll apologized upfront if this is a stupid idea! I just installed Mandrake 10.2 or I guess it's called LE 2005. In any case, I loaded everything from networking and servers to the development packages. Originally I was going to try and get MythTV installed but got side tracked installing Galleon and other HME apps to talk to my TiVo. Everything is working just fine but I had the idea to create a more streamlined kernel that has only the networking packages installed so that I can boot up with the "production" kernel or with the bigger "development" kernel if I want to build and install more apps. Does that make sense or am I barking up the wrong tree? Can someone tell me how I go about building a streamlined kernel? Also, is my approach sound?

Thanks in advance,
Jeff.
 
Old 11-27-2005, 05:47 PM   #2
iggep
Member
 
Registered: Sep 2005
Location: Virginia Beach, VA
Posts: 48

Rep: Reputation: 15
Take a look at http://doc.mandrivalinux.com/Mandrak...-chapter.html. Should answer all your questions.
 
Old 11-27-2005, 09:41 PM   #3
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
Quote:
Everything is working just fine but I had the idea to create a more streamlined kernel that has only the networking packages installed so that I can boot up with the "production" kernel or with the bigger "development" kernel if I want to build and install more apps
The kernel doesn't determine what packages are installed - the same packages will be installed no matter which kernel you boot up on your machine. Also the same services and programs will startup with the machine.

Quote:
Does that make sense or am I barking up the wrong tree? Can someone tell me how I go about building a streamlined kernel? Also, is my approach sound?
It makes sense because distros like Mandriva, which try to be all things to all people, compile almost everything into the default kernel. That means that there are probably a lot of features in your kernel that you might not need or use and there may even be some drivers in there for hardware which you don't have (although most drivers are compiled as modules). If you follow the instructions iggep posted and pick and choose what's in your kernel you can probably get a bit of a speed increase.

Of course instead of recompiling the kernel it might be easier to just disable things like kat and any services that you don't need.

Last edited by tkedwards; 11-27-2005 at 09:55 PM.
 
Old 11-27-2005, 09:52 PM   #4
jstaffon
LQ Newbie
 
Registered: Nov 2005
Location: Idaho
Distribution: Mandrake/Mandriva
Posts: 5

Original Poster
Rep: Reputation: 0
iggep....I tried the link in your reply (thanks by the way) and it's broken. I went to Mandriva's homepage and snooped around. Can you resend the link?

Thanks.
Jeff.
 
Old 11-27-2005, 09:52 PM   #5
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,610
Blog Entries: 4

Rep: Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905
You need to keep in your mind a sharp and clear distinction between "what is the kernel" and "what is not."

"The kernel" is the hardware-control program. If you can see it and touch it, then the kernel controls it. But the word "control" means exactly what it says: it gives the computer, and the applications that run on it, the ability to use the device. It does not tell them, in any way whatever, what to do with it.

"The kernel" includes not only the resident portion, that is compiled directly into it, but also kernel modules that are loaded dynamically and may be unloaded again. Many distros include a rather-obscene number of modules but most of them are never loaded, so they don't take up any memory.

Reading your post again, I believe that most of the ideas you're coming up with, while they may be very-good ones, actually have nothing to do with "the kernel."

One thing that you can do is to use the Linux concept of "runlevels" to set up different configurations in which different sets of daemons, or services, are loaded when the machine starts up...
 
Old 11-27-2005, 10:22 PM   #6
jstaffon
LQ Newbie
 
Registered: Nov 2005
Location: Idaho
Distribution: Mandrake/Mandriva
Posts: 5

Original Poster
Rep: Reputation: 0
Interesting discussion....I appreciate you taking the time to touch on a couple things I've lost sight of... My Linux experience stems from about 10 years of Unix system administration (SunOS and Solaris) beginning about 20 years ago. When Linux first came out, it was intriguing to say the least but a real pain to install and configure. It's just been recently that I've decided to get back into it... As in many areas, dynamically linked resources are more common today than they were 20 years ago. It sounds like I might be better off controlling performance through the services that I have running. Regarding the kernel however, do you think I can get a reasonable performance increase by creating a new kernel that only knows about hardware I have and use on my system? I'm mostly using Samba to mount photos and music folders from my Windows XP server, running a network printer, an ftp service, and running HME applications to talk to my TiVo.

Thanks again,
Jeff.
 
Old 11-28-2005, 12:27 AM   #7
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
Quote:
do you think I can get a reasonable performance increase by creating a new kernel that only knows about hardware I have and use on my system
You'd get a very marginal performance increase, and then mostly during boot up, not when the system is loaded and actually running. My suggestion is don't bother but it's up to you. If you want some more OMG H4X0R suggestions for improving performance may I point you to the Gentoo Linux forums? They think they're pretty good over there
 
  


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
lean and mean distro wjacobusse Linux - General 2 04-06-2005 07:30 AM
Lean Distro? jetfire Linux - Distributions 7 03-10-2005 04:41 PM
Easiest way to lean ffmpeg akihandyman Linux - Newbie 1 07-14-2004 04:03 PM
looking for a lean system bosewicht Linux - Newbie 7 11-23-2003 08:26 AM
looking for a lean distribution infamous41md Linux - Newbie 18 05-29-2003 01:43 PM

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

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