LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 05-04-2008, 03:57 PM   #1
newtovanilla
Member
 
Registered: Apr 2008
Posts: 267

Rep: Reputation: 30
Question Installation of kernel from distribution


I have a newbie to Linux question. I think that the forum can explain it. When I install Linux with a Linux distribution, it loads Linux and it does a hardware scan on my machine and it loads the modules that it needs to boot up. What I do not understand and what does not make sense is why can't it then load the kernel that is best for my machine instead of this generic kernel that runs so slow?

1) I think that the distribution can make 100 different kernels or can make 10 different kernels and depending on my hardware can select the one, or allow the user to select one from a list of compatible kernels by showing the size of the kernel and the included stuff. This way when you install Linux from the distribution, it would be so much faster.

2) I have read about modules and how you can install modules that you need to the kernel. You can also uninstall modules that you do not need. I do not understand why the kernel that you use in Linux from the distribution can not be a simple and skinny kernel that you then load whatever modules that only your hardware needs. Then it would be so much faster.

3) I envision a distribution as having a menu item that lets you select what you want in the kernel and then selecting it. At least it should have use a) default fat kernel, b) skinny kernel with needed modules.

_____________________________________________
What if ALL machines came with your choice of Linux?

My mom and dad said that "Life is not logical".

When life gets you down, don't worry, give it the Penguin.
 
Old 05-04-2008, 04:14 PM   #2
maverik
LQ Newbie
 
Registered: May 2008
Location: Russia
Distribution: Slackware
Posts: 8

Rep: Reputation: 0
Quote:
Originally Posted by newtovanilla View Post
I have a newbie to Linux question. I think that the forum can explain it. When I install Linux with a Linux distribution, it loads Linux and it does a hardware scan on my machine and it loads the modules that it needs to boot up. What I do not understand and what does not make sense is why can't it then load the kernel that is best for my machine instead of this generic kernel that runs so slow?

1) I think that the distribution can make 100 different kernels or can make 10 different kernels and depending on my hardware can select the one, or allow the user to select one from a list of compatible kernels by showing the size of the kernel and the included stuff. This way when you install Linux from the distribution, it would be so much faster.
Do you think it is a good idea to support millions of different kernels according to millions of possible variations of hardware components. And what size of distribution we will have in this case?

Quote:
2) I have read about modules and how you can install modules that you need to the kernel. You can also uninstall modules that you do not need. I do not understand why the kernel that you use in Linux from the distribution can not be a simple and skinny kernel that you then load whatever modules that only your hardware needs. Then it would be so much faster.
What's the problem. Recompile the kernel: add modules that you need and delete that you don't need.

Quote:
3) I envision a distribution as having a menu item that lets you select what you want in the kernel and then selecting it. At least it should have use a) default fat kernel, b) skinny kernel with needed modules.
Code:
make xconfig.
And many distributions now allows you to choose kernels (e.g. generic-kernel, huge-kernel and so one)

Last edited by maverik; 05-04-2008 at 04:17 PM.
 
Old 05-04-2008, 04:18 PM   #3
newtovanilla
Member
 
Registered: Apr 2008
Posts: 267

Original Poster
Rep: Reputation: 30
Quote:
"Do you think it is a good idea to support millions of different kernels"
I am not talking about millions of kernels. Just 100 or 10 or 2. With modules. The one fat one and one skinny one = 2. The highest 8 common plus fat one plus skinny one = 10. The 98 most common plus fat one plus skinny one = 100.

If someone help me, I do it.
 
Old 05-04-2008, 04:21 PM   #4
maverik
LQ Newbie
 
Registered: May 2008
Location: Russia
Distribution: Slackware
Posts: 8

Rep: Reputation: 0
Quote:
Originally Posted by newtovanilla View Post
I am not talking about millions of kernels. Just 100 or 10 or 2. With modules. The one fat one and one skinny one = 2. The highest 8 common plus fat one plus skinny one = 10. The 98 most common plus fat one plus skinny one = 100.

If someone help me, I do it.
But what's the problem to rebuild kernel under your needs? It is more flexible, I suppose.
 
Old 05-04-2008, 04:25 PM   #5
newtovanilla
Member
 
Registered: Apr 2008
Posts: 267

Original Poster
Rep: Reputation: 30
Quote:
But what's the problem to rebuild kernel under your needs? It is more flexible, I suppose.
Building the kernel is difficult. You have to figure out how to configure the hardware. When you install with a distribution installation of Linux, then you load Linux and it does a hardware scan. It finds the modules you need, so why can't it select the kernel you need or a compatible kernel from severel pre-built ones?

You can still build a kernel even if the distribution has option to use skinny kernel for your hardware with modules.
 
Old 05-17-2008, 12:02 PM   #6
JoAnne Abbott
LQ Newbie
 
Registered: Mar 2008
Posts: 25

Rep: Reputation: 16
Quote:
Originally Posted by newtovanilla View Post
I have a newbie to Linux question. I think that the forum can explain it. When I install Linux with a Linux distribution, it loads Linux and it does a hardware scan on my machine and it loads the modules that it needs to boot up. What I do not understand and what does not make sense is why can't it then load the kernel that is best for my machine instead of this generic kernel that runs so slow?

1) I think that the distribution can make 100 different kernels or can make 10 different kernels and depending on my hardware can select the one, or allow the user to select one from a list of compatible kernels by showing the size of the kernel and the included stuff. This way when you install Linux from the distribution, it would be so much faster.

2) I have read about modules and how you can install modules that you need to the kernel. You can also uninstall modules that you do not need. I do not understand why the kernel that you use in Linux from the distribution can not be a simple and skinny kernel that you then load whatever modules that only your hardware needs. Then it would be so much faster.

3) I envision a distribution as having a menu item that lets you select what you want in the kernel and then selecting it. At least it should have use a) default fat kernel, b) skinny kernel with needed modules.
IMHO This would require HOURS to install the distribution and still require modifications
 
Old 05-17-2008, 05:05 PM   #7
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Let's say that an average kernel with lots of options is 40mb. Let's further say that most people will have, at most, 3 kernels on their system. That's 120mb which isn't eating up too much space. Now you are saying there should be 100 kernels - that's 4000mb or almost 4Gb. If you have a small hard drive (and let's remember that a lot of people use Linux to revive an old PC or laptop) that's an awful lot of space.

And then let's think of the poor sods who have to package and keep updated this 4Gbs of kernels - and then think of the poor sod trying to download their OS on a slow connection and remember that instead of grabbing a 700mb CD, they would have to download a DVDs worth of data just to get a kernel.

Not really practical is it? And there will always be a need for more kernels because of differing requirements, differing hardware and that one piece of hardware that only works in Windows 95 and requires special drivers written by Tibetan monks.

Far easier and far more efficient: we all recompile our own kernels as necessary.
 
Old 05-17-2008, 05:33 PM   #8
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
@XavierP
Out of curiosity, what units standard you are using? It is an international forum and to avoid ambiguity SI should be preferred, I think? In SI m as prefix means milli - one thousandth. Plural and singular are written the same, no s. That is 10 kB is ten kilobytes, 100 km is hundred kilometers, etc. I went to school in Europe and we had SI in fifth and sixth grade. Sorry, but not distinguishing between lower- and upper-case seems terribly illiterate to me.
Everybody interested in correct prefixes please visit http://en.wikipedia.org/wiki/SI
 
Old 05-18-2008, 03:42 AM   #9
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Since we are talking computing, SI doesn't necessarily apply - http://en.wikipedia.org/wiki/Megabyte and http://en.wikipedia.org/wiki/Gigabyte I would also venture to say that whether I type MB, Mb or mb it is still clearly understandable that I mean megabyte because of the context I say it in.
 
Old 05-18-2008, 06:28 AM   #10
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Wouldn't SI be better though? I've seen a thread here where someone complained his network speed is xyz mbps. The first question from a helper was whether this is megabytes or megabits per second. There is a standard to avoid such a confusion, why not use it.
 
Old 05-18-2008, 09:53 AM   #11
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Because I never have done and because the vast majority of the people I encounter don't either? Most people will say "megs" or "gigs", in my experience, so why confuse either them or me by changing things?

Now if I were in a position or role where that sort of thing really mattered it would be different.....
 
Old 05-18-2008, 10:12 AM   #12
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Quote:
Originally Posted by XavierP View Post
Because I never have done and because the vast majority of the people I encounter don't either? Most people will say "megs" or "gigs", in my experience, so why confuse either them or me by changing things?
There seem to be some big gaps in eduction system - mostly in English-speaking countries, because of Imperial measurement is still used. Vast majority of people who you encounter do not use correct units because they do not know them and they make up their own. Are you serious saying teaching them does not make sense? Changing from anarchy to organization is not the way to go? Mathematics and physics are beautiful sciences, don't you think?
Quote:
Now if I were in a position or role where that sort of thing really mattered it would be different.....
I think you are in such a position here at LQ.

Argh, I feel I need a vacation from LQ, I'm getting too involved. Do your thing in your way, none of my business. Sorry for chiming in with this.
 
Old 05-18-2008, 12:28 PM   #13
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
No, it's a useful discussion. Teaching them obviously makes sense, however, when I was taught computing, networks were called MUDs and BBSs and the idea of gigabit LANs was science fiction. Also, my education path rendered the correct terminology irrelevant and I find that I can make myself understood with the terms I use.
 
  


Reply

Tags
installation, kernel



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
distribution installation freezed smartdragonfly Linux - Software 2 01-12-2007 06:44 AM
How can I write Installation scripts for my LFS-5.1.1 distribution alihamza Linux From Scratch 2 09-13-2005 03:11 PM
Computers hangs during installation of any distribution. scweston Linux - Newbie 10 07-21-2005 07:44 AM
installation of any distribution javroch Linux - Hardware 11 04-19-2005 06:16 PM
How to update packages within Fedora Distribution before installation Raskolnikow Linux - Software 2 04-04-2004 06:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

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