[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Why compiling.



Am Mittwoch, 11. Juli 2012 schrieb Ralf Mardorf:
> On Tue, 2012-07-10 at 08:54 -0700, Mike McClain wrote:
> > Howdy,
> > 
> > On Tue, Jul 10, 2012 at 05:03:12PM +0500, Muhammad Yousuf Khan wrote:
> > > why people do compiling. i have heard many time that people are
> > > compiling kernel on debian.
> > > what is the reason for this? i am using debian for almost 1.5 year
> > > and have been using it on different platform in CLI mode. but no
> > > need of compiling in this time window.
> > 
> > The kernel provided when you install Linux, Debian included, has to
> > work on nearly every system out there so it includes drivers for
> > nearly piece of hardware that can be installed in a PC.
> > 
> > I always compile a kernel with only the hardware I have in my
> > computer. This gives me a smaller memory footprint and a smaller
> > disk footprint.
> > 
> > It's all a matter of what you want.
> 
> Those smaller footprints usually aren't needed for modern computers,
> since we've usually got more than enough disc space and RAM. OTOH we
> perhaps change some hardware from time to time and then we need
> different modules. Perhaps a visitor has some hardware, that should
> work on our computers. It's a dangerous balancing act. I wouldn't
> remove too much.

My somewhat trimmed down self-compiled kernel builds in about 10 minutes 
here. The standard ones would take a bit longer.

martin@merkaba:~> ls -lh /boot/{vm,init}*
-rw-r--r-- 1 root root  14M Jul  3 16:39 /boot/initrd.img-3.2.0-3-amd64
-rw-r--r-- 1 root root  14M Jul  3 16:39 /boot/initrd.img-3.4-trunk-amd64
-rw-r--r-- 1 root root 8,8M Jul  3 16:39 /boot/initrd.img-3.5.0-rc4-tp520
-rw-r--r-- 1 root root 8,7M Jul 10 10:34 /boot/initrd.img-3.5.0-rc5-tp520
-rw-r--r-- 1 root root 8,7M Jul 10 19:12 /boot/initrd.img-3.5.0-rc6-tp520+
-rw-r--r-- 1 root root 2,7M Jun 28 13:23 /boot/vmlinuz-3.2.0-3-amd64
-rw-r--r-- 1 root root 2,8M Jun 26 20:19 /boot/vmlinuz-3.4-trunk-amd64
-rw-r--r-- 1 root root 3,4M Jun 26 14:07 /boot/vmlinuz-3.5.0-rc4-tp520
-rw-r--r-- 1 root root 3,4M Jul  5 10:18 /boot/vmlinuz-3.5.0-rc5-tp520
-rw-r--r-- 1 root root 3,4M Jul 10 19:10 /boot/vmlinuz-3.5.0-rc6-tp520+

So thats convenient for me.

I do not try too hard to remove stuff from the kernel, but for some stuff 
its just so obvious that I will not use it on a laptop that I risk having 
to 10 minute recompile or boot into a distro kernel in that rare case.

Heck the kernel image is even larger. I think I put some stuff in it that 
does not absolutely need to be in there.

-- 
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA  B82F 991B EAAC A599 84C7


Reply to: