LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Linux Kernel Size (https://www.linuxquestions.org/questions/linux-general-1/linux-kernel-size-146465/)

LST 02-15-2004 04:07 PM

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

SciYro 02-15-2004 04:37 PM

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

trickykid 02-15-2004 04:45 PM

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.

LST 02-15-2004 04:53 PM

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!

Thymox 02-15-2004 06:04 PM

Mandrake 9.1 kernel 2.4.21-0.13mdk. Is 1.2Mb

/bin/bash 02-15-2004 06:23 PM

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


UltimaGuy 02-16-2004 06:22 AM

I use 2.4.20 and mine is around 700K . Not tried the 2.6 one though :).

LST 02-17-2004 05:40 PM

So - Who else want's to post their kernel size and possibly version?

synaptical 02-17-2004 05:57 PM

1.4mb - 2.6.2
920kb - 2.4.24

DrOzz 02-17-2004 06:04 PM

main box :
2.6.2 - 1.6mb
web server :
2.4.20 - 1.1mb

smallpond 06-07-2022 08:42 AM

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


hazel 06-07-2022 11:08 AM

LFS 5.8.1 (hand built) 6.0 M.
Slackware generic 5.15.39 7.2 M.

fatmac 06-07-2022 01:20 PM

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)

teckk 06-07-2022 02:27 PM

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


frankbell 06-07-2022 08:42 PM

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.


All times are GMT -5. The time now is 01:33 PM.