Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Any more trimming I can do to my kernel image?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
ImageJPEG
n00b
n00b


Joined: 03 Feb 2013
Posts: 20
Location: North West Iowa

PostPosted: Mon Feb 04, 2013 1:22 am    Post subject: Any more trimming I can do to my kernel image? Reply with quote

Currently my kernel is 3,875,512 bytes. I'm using LZO compression (for fast decompression) and have selected "optimized for size" option.

I've tried to find as many things possible to compile as modules, make it as slim as possible. My current list of auto loaded modules are:

Code:
vboxvideo
ntfs
vfat
msdos
fat
ext3
jbd
isofs
nfs
lockd
sunrpc
brd
cn
usb_storage
uhci_hcd
loop
fuse
hid_generic
ohci_hcd
ehci_hcd
snd_intel8x0
snd_ac97_codec
ac97_bus
snd_pcm
snd_page_alloc
snd_timer
snd
soundcore
e1000
vboxguest
rtc_cmos
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9676
Location: almost Mile High in the USA

PostPosted: Mon Feb 04, 2013 5:31 am    Post subject: Reply with quote

What are you trying to accomplish here? Is your bzImage 3.8MB or your uncompressed vmlinuz.o image size 3.8MB?
Linux has bloated a lot over the years... ACPI I think is a big blob of code and for modern machines it can't be omitted...
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Bones McCracker
Veteran
Veteran


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

PostPosted: Mon Feb 04, 2013 5:31 am    Post subject: Reply with quote

I don't think you're going to get a worthwhile answer to that question without providing a lot more information. Kernel configuration and size depend on many factors (the architecture, what you're using the machine for, what hardware you've got, the kernel version and what patches have been applied, whether your customizing for one machine or building a kernel that must be able to run on many, what your optimization goals are their relative importance (e.g., boot time, performance, security, etc.).

My kernel on the machine I'm using right now is 2,671,344 B (gentoo-sources-3.7.4, LZO compression), and I build things in by default, unless I have a specific reason it should be a module (e.g., removable hardware).
_________________
patrix_neo wrote:
The human thought: I cannot win.
The ratbrain in me : I can only go forward and that's it.
Back to top
View user's profile Send private message
ImageJPEG
n00b
n00b


Joined: 03 Feb 2013
Posts: 20
Location: North West Iowa

PostPosted: Mon Feb 04, 2013 6:53 am    Post subject: Reply with quote

Nothing really to accomplish. Just trying to play around with it a bit. I'm using Gentoo in a VirtualBox on a MacBook Pro if that helps. I guess I'm just trying to compile a kernel that only needs drivers to prevent it from kernel panicing and load the rest from modules.

I'm using gentoo-sources 3.6.11 right now with all the patches that came when I merged it. My goals would probably be boot time and performance.

Oh, and the size is the size of my bzImage.
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2678

PostPosted: Mon Feb 04, 2013 7:10 am    Post subject: Reply with quote

Did you start with a kernel seed?

Also, building fewer modules will decrease boot time because the kernel does not need to load them. Modules are best for things you either need to load firmware for or don't need normally. They really don't do much else. So parring done is all well and good, but modules probably aren't your silver bullet.
_________________
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
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