From owner-freebsd-hackers Thu Apr 1 19:25:36 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from shell.futuresouth.com (shell.futuresouth.com [198.78.58.28]) by hub.freebsd.org (Postfix) with ESMTP id CDBF714CE4 for ; Thu, 1 Apr 1999 19:25:29 -0800 (PST) (envelope-from fullermd@futuresouth.com) Received: (from fullermd@localhost) by shell.futuresouth.com (8.9.3/8.9.3) id VAA09994; Thu, 1 Apr 1999 21:24:56 -0600 (CST) Date: Thu, 1 Apr 1999 21:24:56 -0600 From: "Matthew D. Fuller" To: Greg Lehey Cc: FreeBSD Hackers Subject: Re: Debug kernel by default (was: System size with -g) Message-ID: <19990401212456.J11572@futuresouth.com> References: <19990331003535.E17547@futuresouth.com> <19990331165139.W413@lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: <19990331165139.W413@lemis.com>; from Greg Lehey on Wed, Mar 31, 1999 at 04:51:39PM +0930 X-OS: FreeBSD Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Mar 31, 1999 at 04:51:39PM +0930, a little birdie told me that Greg Lehey remarked > > Here are some comparative figures for building a kernel on my main > machine (AMD K6-2/333, 160 MB memory): > > normal debug > Make all 4:30 5:0 > Kernel size 1.8 MB 9 MB > Directory size 5.5 MB 24 MB Well, to return to my original question about the base system... The kernel seems to be about 4.5x as big with debugging symbols. If we assume (perhaps a flawed assumption) that an approximately 5x ratio will hold throughout the system... 48 dev 669 etc 680 lkm 2068 root 6088 sbin 3357 bin 1784 stand I'm guessing /modules will be about the same as /lkm, so we're talking about somewhere in the realm of perhaps 15 megs in /. Be generous and call it 30 for safety. If everything is 5x bigger, that's 150 megs to hold it with -g (in reality less, because -g won't affect the size of text files in /etc, /dev files, all the extra stuff I have in /root, etc). So, if I left a 150-200 meg / partition (assume /var and /tmp, as well as /usr are seperate), would that be generally big enough to hold the full system with -g? /usr is another story of course, but if these proportions hold for /, I'd guess they'll hold for /usr and I can work from there. --- *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* | Matthew Fuller http://www.over-yonder.net/ | * fullermd@futuresouth.com fullermd@over-yonder.net * | UNIX Systems Administrator Specializing in FreeBSD | * FutureSouth Communications ISPHelp ISP Consulting * | "The only reason I'm burning my candle at both ends, | * is because I haven't figured out how to light the * | middle yet" | *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message