Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
05-23-2006, 10:30 AM
|
#1
|
Member
Registered: Feb 2006
Distribution: Slackware 10.2, (2.6.16.16), FC 5
Posts: 109
Rep:
|
Question regarding kernel size difference between 2.4.x and 2.6.x
As I mentioned in another thread, I did my first kernel compile recently. I used the source for 2.6.16.16 and all went well b/c of the excellent documentation I had.
The 2.4 kernel in my 10.2 Slack install is about 1.4MB. When I upgraded to the generic 2.6.13 from disc 2, that one was about 1.6MB or so. Finally, my custom compiled kernel using the 2.6.16.16 source is right at about 1.95MB.
I googled the topic and found info that said the 2.6 kernel increased the size by 10 to 30%. The one I compiled seems to boot faster, and it seems to be just as fast during normal operation.
I'm just wondering if that kind of kernel size increase is what everyone here is typically seeing with 2.6.
|
|
|
05-23-2006, 11:56 AM
|
#2
|
Member
Registered: Oct 2003
Location: Kuala Lumpur, Malaysia
Distribution: Slackware 13.37 current
Posts: 770
Rep:
|
The kernel size is not so critical these days when an entry level pc has 256MB of ram.
Even generic could easily be cut down by dropping the unused ide controllers.
2.6 will be some 20% bigger than 2.4 as it has a much larger pool of supported hardware and a lot more complex code managing memory, processes and locking.
|
|
|
05-28-2006, 06:31 PM
|
#3
|
HCL Maintainer
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,941
Rep:
|
I find that my custom kernels are sometimes smaller than the default Slackware kernels:
My workstation, where I have it trimmed to the bone:
Code:
mingdao@silas:~$ ls -lh /boot/
-rw-r--r-- 1 root root 1.2M 2006-03-24 08:07 vmlinuz-2.6.16
-rw-r--r-- 1 root root 1.2M 2006-05-08 07:29 vmlinuz-2.6.16.14
-rw-r--r-- 1 root root 1.2M 2006-05-22 19:32 vmlinuz-2.6.16.17
-rw-r--r-- 1 root root 1.2M 2006-05-24 08:35 vmlinuz-2.6.16.18
-rw-r--r-- 1 root root 1.2M 2006-04-10 15:02 vmlinuz-2.6.16.2-1
-rw-r--r-- 1 root root 1.3M 2006-03-13 09:49 vmlinuz-ide-2.4.32
My wife's PC, which is fully functional, but not so trimmed:
Code:
anna@peter:~$ ls -lh /boot
-rw-r--r-- 1 root root 1.4M 2006-05-22 18:51 vmlinuz-2.6.16.17
-rw-r--r-- 1 root root 1.4M 2006-04-23 21:04 vmlinuz-2.6.16.9
-rw-r--r-- 1 root root 1.3M 2006-03-13 09:49 vmlinuz-ide-2.4.32
My laptop, road-ready for many obstacles:
Code:
mingdao@titus:~$ ls -lh /boot/
-rw-r--r-- 1 root root 1.2M 2006-02-18 13:21 vmlinuz-2.6.15.4
-rw-r--r-- 1 root root 1.2M 2006-03-26 14:16 vmlinuz-2.6.16
-rw-r--r-- 1 root root 1.2M 2006-05-22 19:15 vmlinuz-2.6.16.17
-rw-r--r-- 1 root root 1.2M 2006-05-24 09:07 vmlinuz-2.6.16.18
-rw-r--r-- 1 root root 1.3M 2006-03-13 09:49 vmlinuz-ide-2.4.32
On a customer's PC, with hardware new to me:
Code:
dave@matthews:~$ ls -lh /boot/
-rw-r--r-- 1 root root 1.3M 2006-05-15 18:37 vmlinuz-2.6.16.16
-rw-r--r-- 1 root root 1.3M 2006-05-22 10:47 vmlinuz-2.6.16.17
-rw-r--r-- 1 root root 1.3M 2006-03-13 09:49 vmlinuz-ide-2.4.32
The 2.6 kernels compile faster, boot faster, and run faster.
|
|
|
05-28-2006, 08:01 PM
|
#4
|
Senior Member
Registered: Sep 2004
Distribution: slackware
Posts: 4,700
|
Quote:
Originally Posted by Chinaman
I find that my custom kernels are sometimes smaller than the default Slackware kernels
|
Mine always are.
I guess Pat tries to build kernels which will work on the widest possible selection of hardware.
In the 2.4 days, I could compile a custom kernel half the size of Pat's. The last 2.4 kernel I ran (2.4.21) was approximately 700Kb.
With 2.6 I can't get them smaller than 1.1M. I haven't done as much experimenting with 2.6 as I did with 2.4, so there may be something I'm missing.
Quote:
Originally Posted by Chinaman
The 2.6 kernels compile faster, boot faster, and run faster.
|
You're not wrong. In my experience to date, 2.6 is superior to 2.4 in everything except module handling. For example: To get module unloading with 2.6, you need to choose an option which makes the kernel larger and more complex. Also, there are certain modules which won't auto-load the way they did under 2.4. I don't know why. Other than that, 2.6 is stable, fast & feature packed.
Last edited by rkelsen; 05-28-2006 at 08:09 PM.
|
|
|
05-28-2006, 08:33 PM
|
#5
|
Member
Registered: May 2004
Location: South Carolina
Distribution: Slackware 11.0
Posts: 606
Rep:
|
Size doesn't matter. At all.
Any PC made after 1993 or so would be able to support any linux kernel, even with practically everything (within reason) built in with no performance hit.
You'll see probably no speed increase at all with a smaller kernel unless you are on very ancient hardware.
In other words, if your PC is fast enough to compile a kernel within 3 days of time, you won't notice anything from a smaller kernel, and if it does take you more than 3 days to compile a kernel, you probably wouldn't find it worth it to do it anyway.
(although changing the kernel options back to more 'sane' defaults, such as 1000hz, preemption, and optimizing for your processor make a HUGE performance difference, but the kernel will be bigger too, but it won't make any real difference.)
|
|
|
All times are GMT -5. The time now is 02:24 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|