Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Apr 1999 21:24:56 -0600
From:      "Matthew D. Fuller" <fullermd@futuresouth.com>
To:        Greg Lehey <grog@lemis.com>
Cc:        FreeBSD Hackers <hackers@FreeBSD.ORG>
Subject:   Re: Debug kernel by default (was: System size with -g)
Message-ID:  <19990401212456.J11572@futuresouth.com>
In-Reply-To: <19990331165139.W413@lemis.com>; from Greg Lehey on Wed, Mar 31, 1999 at 04:51:39PM %2B0930
References:  <19990331003535.E17547@futuresouth.com> <19990331165139.W413@lemis.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




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