Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
how big is your kernel?
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Off the Wall
View previous topic :: View next topic  
Author Message
juniper
l33t
l33t


Joined: 22 Oct 2004
Posts: 759
Location: EU

PostPosted: Fri Oct 26, 2012 10:37 am    Post subject: how big is your kernel? Reply with quote

ok. I have *cough* ubuntu running on a machine. the kernel seems rather bloated.

here are some sizes.

Code:

ls -lh *3.2.0-32*
-rw-r--r-- 1 root root 774K Sep 26 23:14 abi-3.2.0-32-generic
-rw-r--r-- 1 root root 138K Sep 26 23:14 config-3.2.0-32-generic
-rw-r--r-- 1 root root  21M Oct 12 16:37 initrd.img-3.2.0-32-generic
-rw------- 1 root root 2.8M Sep 26 23:14 System.map-3.2.0-32-generic
-rw------- 1 root root 4.8M Sep 26 23:14 vmlinuz-3.2.0-32-generic


so, all the components associated with one kernel are approximately 30 MB. On my last gentoo system, it was under 2MB I think.

what's it up to now on a gentoo system? of course, you compile your own kernel.
Back to top
View user's profile Send private message
aidanjt
Veteran
Veteran


Joined: 20 Feb 2005
Posts: 1102
Location: Rep. of Ireland

PostPosted: Fri Oct 26, 2012 11:03 am    Post subject: Reply with quote

Code:
aidan@aidan-laptop ~ $ du -sh /boot/*-3.3.8-gentoo /lib/modules/3.3.8-gentoo
73K     /boot/config-3.3.8-gentoo
1.5M    /boot/System.map-3.3.8-gentoo
2.9M    /boot/vmlinuz-3.3.8-gentoo
1.8M    /lib/modules/3.3.8-gentoo


It's understandable that their vmlinuz and module directory in particular is much bigger though, they have to cover as many hardware and user cases as possible. What gets me is how horrifically slow and buggy unity is.
_________________
juniper wrote:
you experience political reality dilation when travelling at american political speeds. it's in einstein's formulas. it's not their fault.
Back to top
View user's profile Send private message
juniper
l33t
l33t


Joined: 22 Oct 2004
Posts: 759
Location: EU

PostPosted: Fri Oct 26, 2012 11:09 am    Post subject: Reply with quote

aidanjt wrote:
Code:
aidan@aidan-laptop ~ $ du -sh /boot/*-3.3.8-gentoo /lib/modules/3.3.8-gentoo
73K     /boot/config-3.3.8-gentoo
1.5M    /boot/System.map-3.3.8-gentoo
2.9M    /boot/vmlinuz-3.3.8-gentoo
1.8M    /lib/modules/3.3.8-gentoo


It's understandable that their vmlinuz and module directory in particular is much bigger though, they have to cover as many hardware and user cases as possible. What gets me is how horrifically slow and buggy unity is.


i use gnome 3.

but how big is yours (talking about the kernel of course)?
Back to top
View user's profile Send private message
aidanjt
Veteran
Veteran


Joined: 20 Feb 2005
Posts: 1102
Location: Rep. of Ireland

PostPosted: Fri Oct 26, 2012 11:18 am    Post subject: Reply with quote

juniper wrote:
i use gnome 3.

My sympathies. ;)

juniper wrote:
but how big is yours (talking about the kernel of course)?

I already listed it above. :)
_________________
juniper wrote:
you experience political reality dilation when travelling at american political speeds. it's in einstein's formulas. it's not their fault.
Back to top
View user's profile Send private message
MustrumR
n00b
n00b


Joined: 15 Nov 2011
Posts: 57
Location: Right here

PostPosted: Fri Oct 26, 2012 12:12 pm    Post subject: Reply with quote

Mine has a lot of modules
Code:

2.1M   /boot/vmlinuz-3.7.0-rc2
11M   /lib/modules/3.7.0-rc2
Back to top
View user's profile Send private message
fb0x
n00b
n00b


Joined: 13 Sep 2012
Posts: 11

PostPosted: Fri Oct 26, 2012 12:16 pm    Post subject: Reply with quote

With ck and BFQ patch

Code:
[~]--» ll /boot/ | grep -i linux                     
-rw-r--r-- 1 root root 4.0M Oct 25 15:26 linux-3.6.3
Back to top
View user's profile Send private message
juniper
l33t
l33t


Joined: 22 Oct 2004
Posts: 759
Location: EU

PostPosted: Fri Oct 26, 2012 12:47 pm    Post subject: Reply with quote

aidanjt wrote:
juniper wrote:
i use gnome 3.

My sympathies. ;)

juniper wrote:
but how big is yours (talking about the kernel of course)?

I already listed it above. :)


oops. i thought you were quoting me.

well, yours is way smaller. that must affect my boot time, although it seems to boot pretty snappily. I can of course compile my own kernel, but ubuntu updates it so often that I don't really want to have to do it by hand all the time. they should automate that procedure, but that might be hard (taking some existing config file and compiling all new kernel with it).
Back to top
View user's profile Send private message
genstorm
Advocate
Advocate


Joined: 05 Apr 2007
Posts: 2489
Location: Austria

PostPosted: Fri Oct 26, 2012 1:01 pm    Post subject: Reply with quote

Code:
3,4M    /boot/kernel-3.6.3-ownage
5,5M    /lib/modules/3.6.3-ownage

(gzip)

Size isn't everything though. It seems that SSD users should rather go for LZO compression which makes the image 10% bigger than standard gzip, but decompression is the fastest.
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic


Last edited by genstorm on Fri Oct 26, 2012 1:37 pm; edited 1 time in total
Back to top
View user's profile Send private message
Dr.Willy
Guru
Guru


Joined: 15 Jul 2007
Posts: 353
Location: NRW, Germany

PostPosted: Fri Oct 26, 2012 1:30 pm    Post subject: Reply with quote

Code:
root@xps ~ # du -sh /boot/*3.5.0* /lib/modules/3.5.0 
3.5M    /boot/3.5.0_bzImage
2.0M    /boot/3.5.0_System.map
888K    /lib/modules/3.5.0

(XZ compression)
Back to top
View user's profile Send private message
aidanjt
Veteran
Veteran


Joined: 20 Feb 2005
Posts: 1102
Location: Rep. of Ireland

PostPosted: Fri Oct 26, 2012 1:43 pm    Post subject: Reply with quote

juniper wrote:
well, yours is way smaller. that must affect my boot time, although it seems to boot pretty snappily. I can of course compile my own kernel, but ubuntu updates it so often that I don't really want to have to do it by hand all the time. they should automate that procedure, but that might be hard (taking some existing config file and compiling all new kernel with it).

I do use XZ to compress it further than it's already fairly well pruned .config. But most of my boot time is really on waiting for OpenRC to bring up GDM. Upstart was developed to get to that point as soon as it can and it works well in that respect. I'm not really too bothered with boot time though, it's not something I need to do often, I just leave my laptop suspended when I'm not using it, instaon when I open the lid. Gentoo does seem to have considerably more fluid interaction though.
_________________
juniper wrote:
you experience political reality dilation when travelling at american political speeds. it's in einstein's formulas. it's not their fault.
Back to top
View user's profile Send private message
Clad in Sky
l33t
l33t


Joined: 04 May 2007
Posts: 778
Location: Germany

PostPosted: Fri Oct 26, 2012 2:27 pm    Post subject: Reply with quote

Code:

2.7M kernel-2.6.38-gentoo-r6
18M /lib/modules/2.6.38-gentoo-r6/

lzm
16m of which are in /video - i wonder why.
_________________
Kali Ma
Now it's autumn of the aeons
Dance with your sword
Now it's time for the harvest
Back to top
View user's profile Send private message
ichbinsisyphos
Guru
Guru


Joined: 08 Dec 2006
Posts: 547

PostPosted: Fri Oct 26, 2012 4:18 pm    Post subject: Reply with quote

Code:
sisyphos ~ # du -sh /boot/kernel-gentoo-3.6.2-swap /lib/modules/3.6.2-gentoo/
3,2M   /boot/kernel-gentoo-3.6.2-swap
337K   /lib/modules/3.6.2-gentoo/
Back to top
View user's profile Send private message
notageek
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jun 2008
Posts: 120
Location: Bangalore, India

PostPosted: Fri Oct 26, 2012 4:23 pm    Post subject: Reply with quote

Code:
ll -h /boot/vmlinuz-$(uname -r)
-rw-r--r-- 1 root root 3.6M Apr  1  2012 /boot/vmlinuz-3.2.12-gentoo-1


But

Code:
du -sh /lib/modules/$(uname -r)
649M   /lib/modules/3.2.12-gentoo-1

_________________
There is no guarantee a stupid Dalai Lama won’t come next
Back to top
View user's profile Send private message
aCOSwt
Moderator
Moderator


Joined: 19 Oct 2007
Posts: 2537
Location: Hilbert space

PostPosted: Sat Oct 27, 2012 8:10 pm    Post subject: Reply with quote

Code:
acoswt@PrimaPratica ~ $ size /usr/src/linux/vmlinux
   text    data     bss     dec     hex filename
5675889  560248  491520 6727657  66a7e9 /usr/src/linux/vmlinux

_________________
Back to top
View user's profile Send private message
energyman76b
Advocate
Advocate


Joined: 26 Mar 2003
Posts: 2031
Location: Germany

PostPosted: Sat Oct 27, 2012 8:37 pm    Post subject: Reply with quote

Clad in Sky wrote:
Code:

2.7M kernel-2.6.38-gentoo-r6
18M /lib/modules/2.6.38-gentoo-r6/

lzm
16m of which are in /video - i wonder why.


firmwares? oh, binary blob! Nvidia user?

-rw-r--r-- 1 root root 3,3M 13. Okt 22:18 vmlinuz-3.4.14
du -h /lib/modules/3.4.14/kernel
9,9M /lib/modules/3.4.14/kernel
_________________
AidanJT wrote:

Libertardian denial of reality is wholly unimpressive and unconvincing, and simply serves to demonstrate what a bunch of delusional fools they all are.

Satan's got perfectly toned abs and rocks a c-cup.
Back to top
View user's profile Send private message
Bones McCracker
Veteran
Veteran


Joined: 14 Mar 2006
Posts: 1570
Location: U.S.A.

PostPosted: Sun Oct 28, 2012 3:25 am    Post subject: Reply with quote

Hah, you lusers! Mine's only 24 bytes. Oh wait... that's a symlink.
_________________
"The accumulation of all power, legislative, executive, and judiciary in the same hands...may justly be pronounced the very definition of tyranny."
--James Madison, Federalist 46
Back to top
View user's profile Send private message
Clad in Sky
l33t
l33t


Joined: 04 May 2007
Posts: 778
Location: Germany

PostPosted: Sun Oct 28, 2012 6:23 am    Post subject: Reply with quote

energyman76b wrote:

Nvidia user?

Yes. Thought that might be the cause.
_________________
Kali Ma
Now it's autumn of the aeons
Dance with your sword
Now it's time for the harvest
Back to top
View user's profile Send private message
energyman76b
Advocate
Advocate


Joined: 26 Mar 2003
Posts: 2031
Location: Germany

PostPosted: Sun Oct 28, 2012 8:34 am    Post subject: Reply with quote

Clad in Sky wrote:
energyman76b wrote:

Nvidia user?

Yes. Thought that might be the cause.


fglrx ~6mb
_________________
AidanJT wrote:

Libertardian denial of reality is wholly unimpressive and unconvincing, and simply serves to demonstrate what a bunch of delusional fools they all are.

Satan's got perfectly toned abs and rocks a c-cup.
Back to top
View user's profile Send private message
aCOSwt
Moderator
Moderator


Joined: 19 Oct 2007
Posts: 2537
Location: Hilbert space

PostPosted: Mon Oct 29, 2012 9:15 am    Post subject: Reply with quote

Somewhat not that much related to the actual size of the kernel, could anyone around please post the output of :
Code:
ls -ls /usr/src/linux | grep vmlinux

and
Code:
stat /usr/src/linux/vmlinux* | grep Size

_________________
Back to top
View user's profile Send private message
aidanjt
Veteran
Veteran


Joined: 20 Feb 2005
Posts: 1102
Location: Rep. of Ireland

PostPosted: Mon Oct 29, 2012 11:05 am    Post subject: Reply with quote

aCOSwt wrote:
Somewhat not that much related to the actual size of the kernel, could anyone around please post the output of...

Done:
Code:
aidan@aidan-laptop /usr/src/linux $ ls -lh vmlinux
-rwxr-xr-x 1 root root 8.5M Oct 21 13:12 vmlinux
aidan@aidan-laptop /usr/src/linux $ stat vmlinux | grep Size
  Size: 8908888      Blocks: 17408      IO Block: 4096   regular file

_________________
juniper wrote:
you experience political reality dilation when travelling at american political speeds. it's in einstein's formulas. it's not their fault.
Back to top
View user's profile Send private message
aCOSwt
Moderator
Moderator


Joined: 19 Oct 2007
Posts: 2537
Location: Hilbert space

PostPosted: Mon Oct 29, 2012 11:20 am    Post subject: Reply with quote

aidanjt wrote:
aCOSwt wrote:
Somewhat not that much related to the actual size of the kernel, could anyone around please post the output of...

Done:
Code:
aidan@aidan-laptop /usr/src/linux $ ls -lh vmlinux
-rwxr-xr-x 1 root root 8.5M Oct 21 13:12 vmlinux
aidan@aidan-laptop /usr/src/linux $ stat vmlinux | grep Size
  Size: 8908888      Blocks: 17408      IO Block: 4096   regular file

Thank you.
By the way, I was interested in the output of ls -ls and in vmlinux.o too.

This being said what your system answers highlights one of the strange things I wanted to confirm :
Why does your system need 17.408 blocks of 4.096 bytes each, that is to say, 71.303.168 bytes in order to keep 8.908.888 bytes only ?
_________________
Back to top
View user's profile Send private message
aidanjt
Veteran
Veteran


Joined: 20 Feb 2005
Posts: 1102
Location: Rep. of Ireland

PostPosted: Mon Oct 29, 2012 1:29 pm    Post subject: Reply with quote

aCOSwt wrote:
By the way, I was interested in the output of ls -ls and in vmlinux.o too.

Oops, sorry:
Code:
aidan@aidan-laptop /usr/src/linux $ ls -ls vmlinux
 8704 -rwxr-xr-x 1 root root  8908888 Oct 21 13:12 vmlinux
aidan@aidan-laptop /usr/src/linux $ stat vmlinux* | grep Size
  Size: 8908888      Blocks: 17408      IO Block: 4096   regular file
  Size: 10997822     Blocks: 21488      IO Block: 4096   regular file


aCOSwt wrote:
This being said what your system answers highlights one of the strange things I wanted to confirm :
Why does your system need 17.408 blocks of 4.096 bytes each, that is to say, 71.303.168 bytes in order to keep 8.908.888 bytes only ?

It's ext4. Not exactly renowned for its storage efficiency. I'm not bothered though, it's a 320GB drive which only carries the OS and discardable user settings so I'd rather have decent all-round performance than space efficiency.
_________________
juniper wrote:
you experience political reality dilation when travelling at american political speeds. it's in einstein's formulas. it's not their fault.
Back to top
View user's profile Send private message
eccerr0r
Advocate
Advocate


Joined: 01 Jul 2004
Posts: 4119
Location: USA

PostPosted: Mon Oct 29, 2012 2:56 pm    Post subject: Reply with quote

A lot of the time it's just due to what hardware is in the machine. For some reason my laptop's image is huge (x86_64)

-rw-r--r-- 1 root root 3491808 Oct 26 09:44 bzImage-3.7-rc1

Now my x86 server is considerably smaller

-rw-r--r-- 1 root root 1924384 Sep 20 11:09 kernel-3.3.8-gentoo

And my x86 Geode GX1 I have a more tailored kernel

-rw-r--r-- 1 root root 1369680 Jul 10 03:37 kernel-3.2.12-gentoo

I don't recall what compression I used for each but the compiled-in drivers probably makes a bigger difference...
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed to be advocating?
Back to top
View user's profile Send private message
danomac
l33t
l33t


Joined: 06 Nov 2004
Posts: 818
Location: Vancouver, BC

PostPosted: Mon Oct 29, 2012 3:17 pm    Post subject: Reply with quote

Code:

-rw-r--r-- 1 root root 2.1M Dec  8  2011 kernel-2.6.31-gentoo-r10

152K    /lib/modules/2.6.31-gentoo-r10


Most drivers are built into the kernel. I should update, but it's working fine, so I leave it. :P
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3215

PostPosted: Mon Oct 29, 2012 3:57 pm    Post subject: Reply with quote

Code:
~» /usr/src/linux
/usr/src/linux» ls -lh vmlinux
-rwxr-xr-x 1 root root 15M Oct 20 19:26 vmlinux
/usr/src/linux» stat vmlinux | grep Size
  Size: 15379882     Blocks: 16944      IO Block: 4096   regular file

_________________
emerge --quiet redefined | E17 vids: I, II | Now using kde4 :-/
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Off the Wall All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum