From owner-freebsd-current Sun Jan 5 9:30:37 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F307E37B405 for ; Sun, 5 Jan 2003 09:30:35 -0800 (PST) Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id CFD6643ED1 for ; Sun, 5 Jan 2003 09:30:34 -0800 (PST) (envelope-from bde@zeta.org.au) Received: from katana.zip.com.au (katana.zip.com.au [61.8.7.246]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id EAA17511; Mon, 6 Jan 2003 04:30:19 +1100 Date: Mon, 6 Jan 2003 04:30:34 +1100 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: Alexander Leidinger Cc: Andy Farkas , Subject: Re: kernel compile bloat In-Reply-To: <20030105154232.48bc4879.Alexander@Leidinger.net> Message-ID: <20030106042136.F590-100000@gamplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, 5 Jan 2003, Alexander Leidinger wrote: > On Sun, 5 Jan 2003 22:14:26 +1000 (EST) > Andy Farkas 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