Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Jan 2003 04:30:34 +1100 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        Alexander Leidinger <Alexander@Leidinger.net>
Cc:        Andy Farkas <andyf@speednet.com.au>, <freebsd-current@FreeBSD.ORG>
Subject:   Re: kernel compile bloat
Message-ID:  <20030106042136.F590-100000@gamplex.bde.org>
In-Reply-To: <20030105154232.48bc4879.Alexander@Leidinger.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 5 Jan 2003, Alexander Leidinger wrote:

> On Sun, 5 Jan 2003 22:14:26 +1000 (EST)
> Andy Farkas <andyf@speednet.com.au> wrote:
>
> >
> > Why does compiling a kernel (make buildkernel KERNCONF=GENERIC) take
> > 7 times as much space on 5.0-current than it does on 4.7-stable?
> >
> > On a 4.7-stable box, /usr/obj/usr/src/sys totals 34 MB.
> >
> > On a 5.0-current box, /usr/obj/usr/src/sys totals 270 MB!
> >
> > (for each box, I rm /usr/obj/*, make buildworld, then make buildkernel
> > KERNCONF=GENERIC)
>
> Because debug symbols are enabled in 5.0 for kernel compiles (the
> installed kernel is without debug symbols, but in your kernel build
> directory should also be a much larger kernel.debug).

It also builds modules.  Normal bloat for -current is a measly factor of
2 or so.

My kernel compile directory has size 340MB, but it has 9 kernels
including GENERIC and LINT and copies of *.o in all of them.  My normal
kernel takes 12MB including 4M for a copy of *.o; GENERIC takes 135MB
including 50MB for the copy.  This is with modules avoided as far as
possible; building modules would more than double the size of everything.

Bruce


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030106042136.F590-100000>