LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


View Poll Results: What is the Size of your Kernel
Less than 256Kb 0 0%
256Kb - 512Kb 0 0%
513Kb - 768Kb 3 10.71%
769Kb - 1Mb 6 21.43%
1.1Mb - 1.5Mb 8 28.57%
1.6Mb - 2Mb 5 17.86%
2.1Mb - 2.5Mb 0 0%
More than 2.6Mb 6 21.43%
Voters: 28. You may not vote on this poll

Reply
  Search this Thread
Old 02-15-2004, 04:07 PM   #1
LST
LQ Newbie
 
Registered: Dec 2003
Location: Daventry, United Kingdom
Distribution: Slackware + Raspberry Pi OS
Posts: 23

Rep: Reputation: 19
Lightbulb Linux Kernel Size


I am interested to see what the sizes are of other Linux Users' Kernels in comparison with other people and my own.

My Kernel size is 948Kb
 
Old 02-15-2004, 04:37 PM   #2
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
mine (not includeing System.map is 762084 bytes, i dont have usb suport, i use alsa modules pcmcia-cs modules (these are also not included), so i dont have a big kernel as i havent compiled what i probly wont/never will need to use for a laptop
 
Old 02-15-2004, 04:45 PM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
You should include the kernel version as the later 2.6.x versions are significantly larger than the previous kernels.

I currently run 2.4.24 on all my machines except 2.6.0 and 2.6.1 on two different machines.

My 2.6.x's are between 1.5 - 2.0 megs and my 2.4.24 are around 1.2 megs. I remember getting 2.4.19 down to about 800kb average.
 
Old 02-15-2004, 04:53 PM   #4
LST
LQ Newbie
 
Registered: Dec 2003
Location: Daventry, United Kingdom
Distribution: Slackware + Raspberry Pi OS
Posts: 23

Original Poster
Rep: Reputation: 19
Yes - I am running Linux 2.6.2 on my Laptop which I use in school - About a week ago it was a massive 1.8Mb which is far too large, so I spent some time looking at the bits I need and don't need and then taking bit's out (It's supprising how many unneccerary things I compiled into the Kernel!). I am rather pleased because I now how a Kernel which I have reduced in size by about 48% and it also supports all my hardware!
 
Old 02-15-2004, 06:04 PM   #5
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
Mandrake 9.1 kernel 2.4.21-0.13mdk. Is 1.2Mb
 
Old 02-15-2004, 06:23 PM   #6
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
Well up until around 2.4.15 I used to keep mine under 800k. Not anymore.

Code:
-rw-r--r--  1 root root 1014998 Nov 28 23:30 vmlinuz-2.4.23
-rw-r--r--  1 root root 1015071 Jan  5 08:30 vmlinuz-2.4.24
-rw-r--r--  1 root root 1233205 Dec 18 20:30 vmlinuz-2.6.0
-rw-r--r--  1 root root 1380435 Jan  9 10:30 vmlinuz-2.6.1
-rw-r--r--  1 root root 1338058 Feb  5 14:50 vmlinuz-2.6.2
-rw-r--r--  1 root root 1331149 Feb 10 19:31 vmlinuz-2.6.3-rc1
-rw-r--r--  1 root root 1342503 Feb 12 17:49 vmlinuz-2.6.3-rc2
 
Old 02-16-2004, 06:22 AM   #7
UltimaGuy
Member
 
Registered: Aug 2003
Location: Chennai, India
Distribution: PCLinuxOS .92, FC4
Posts: 840

Rep: Reputation: 32
I use 2.4.20 and mine is around 700K . Not tried the 2.6 one though .
 
Old 02-17-2004, 05:40 PM   #8
LST
LQ Newbie
 
Registered: Dec 2003
Location: Daventry, United Kingdom
Distribution: Slackware + Raspberry Pi OS
Posts: 23

Original Poster
Rep: Reputation: 19
So - Who else want's to post their kernel size and possibly version?
 
Old 02-17-2004, 05:57 PM   #9
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 48
1.4mb - 2.6.2
920kb - 2.4.24
 
Old 02-17-2004, 06:04 PM   #10
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
main box :
2.6.2 - 1.6mb
web server :
2.4.20 - 1.1mb
 
Old 06-07-2022, 08:42 AM   #11
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Red face

Interesting how this has grown over the years. Here's a recent Fedora kernel:

Code:
ls -l /boot/vmlinuz-5.16.18-100.fc34.x86_64 
-rwxr-xr-x. 1 root root 11312336 Mar 28 11:02 /boot/vmlinuz-5.16.18-100.fc34.x86_64
size /boot/vmlinuz-5.16.18-100.fc34.x86_64 
    text   data	    bss	     dec	    hex	filename
11306432      0	      0	11306432	 ac85c0	/boot/vmlinuz-5.16.18-100.fc34.x86_64
 
Old 06-07-2022, 11:08 AM   #12
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,572
Blog Entries: 19

Rep: Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451
LFS 5.8.1 (hand built) 6.0 M.
Slackware generic 5.15.39 7.2 M.
 
Old 06-07-2022, 01:20 PM   #13
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,487

Rep: Reputation: Disabled
Regular Devuan kernel

vmlinuz-5.10.0-8-amd64

6.5*MiB (6,821,216 bytes)



...& just for interest

initrd.img-5.10.0-8-amd64

51.4*MiB (53,851,562 bytes)

Last edited by fatmac; 06-07-2022 at 01:22 PM.
 
Old 06-07-2022, 02:27 PM   #14
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,137
Blog Entries: 6

Rep: Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826
Not up to date.

Arch
Code:
__ls -l --block-size=M /boot/initramfs-linux.img
-rw------- 1 root root 9M Mar 14 08:14 /boot/initramfs-linux.img

__ls -l --block-size=M /boot/vmlinuz-linux
-rw-r--r-- 1 root root 10M Mar 14 08:14 /boot/vmlinuz-linux

__ls -l --block-size=M /boot/initramfs-linux-fallback.img
-rw------- 1 root root 33M Mar 14 08:14 /boot/initramfs-linux-fallback.img

pacman -Si linux
Name            : linux
Version         : 5.16.14.arch1-1
Description     : The Linux kernel and modules
Architecture    : x86_64

Depends On      : coreutils  kmod  initramfs

Download Size   : 155.22 MiB
Installed Size  : 160.52 MiB
 
Old 06-07-2022, 08:42 PM   #15
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,321
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
Given that this thread is over a decade and a half old, I think it's safe to say that the kernel has increased in size a wee bit over the years.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Configuring and compiling kernel to reduce the size of linux near to 54 MB RohitChawla Fedora 3 12-10-2004 07:46 AM
Kernel size ghight Linux - Software 2 10-22-2004 02:56 PM
how to know size of kernel govindabkari Linux - Software 3 08-25-2004 02:43 AM
How do i increase the size of the linux fifo's currently set to 4K in 2.6 kernel ? ayb Programming 2 06-25-2004 07:55 AM
2.6.6 Kernel size plan9 Slackware 1 06-08-2004 01:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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