Gentoo Archives: gentoo-user

From: "Stefan G. Weichinger" <lists@×××××.at>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: Testing new kernels - saving dumps / strip down kernel options
Date: Fri, 11 Jan 2013 06:57:50
Message-Id: 50EFB781.1010209@xunil.at
In Reply to: [gentoo-user] Re: Testing new kernels - saving dumps / strip down kernel options by nunojsilva@ist.utl.pt (Nuno J. Silva)
1 Am 10.01.2013 10:38, schrieb Nuno J. Silva:
2
3 > Even then, if you do that and tune the config several times, you'll
4 > likely end up with a lighter kernel. Just drop anything you don't need
5 > from the device drivers.
6 >
7 >> "make allnoconfig" as a start?
8 >
9 > That is probably much better than the config from the install dvd, yes,
10 > in fact most of the work coming from an "Add-It-All" config is that you
11 > have to disable many, many entries.
12
13 I tried with a .config from the live cd, just to see where it gets me.
14 Disabled loads of stuff, enabled options I need for my hardware and for
15 running KVM here.
16
17 This cut my .config from ~76k down to 71k already, and the kernel itself
18 got smaller as well:
19
20 # the backup from old .config
21
22 2,5M 10. Jan 11:52 initramfs-genkernel-x86_64-3.7.1-gentoo
23 3,3M 10. Jan 11:52 kernel-genkernel-x86_64-3.7.1-gentoo
24 2,0M 10. Jan 11:52 System.map-genkernel-x86_64-3.7.1-gentoo
25
26 # the new one
27
28 2,5M 10. Jan 13:53 initramfs-genkernel-x86_64-3.7.1-gentoo
29 2,7M 10. Jan 13:52 kernel-genkernel-x86_64-3.7.1-gentoo
30 2,1M 10. Jan 13:52 System.map-genkernel-x86_64-3.7.1-gentoo
31
32 nice so far, without much work to do.
33
34 Everything works so far, so ok ...
35
36 I might try the allnoconfig-approach as well, sure!
37
38 Stefan