From owner-freebsd-questions Mon Sep 13 22:17:58 1999 Delivered-To: freebsd-questions@freebsd.org Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (Postfix) with ESMTP id 4525D15101 for ; Mon, 13 Sep 1999 22:17:51 -0700 (PDT) (envelope-from grog@freebie.lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id OAA18436; Tue, 14 Sep 1999 14:47:43 +0930 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.3/8.9.0) id OAA26712; Tue, 14 Sep 1999 14:47:40 +0930 (CST) Date: Tue, 14 Sep 1999 14:47:40 +0930 From: Greg Lehey To: Rob Hurle Cc: freebsd-questions@FreeBSD.ORG, TrouBle Subject: Re: 2.2.8 -> 3.2 kernel config Message-ID: <19990914144740.J10106@freebie.lemis.com> References: <37DEEF5B.4B04D26@hackfurby.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: ; from Rob Hurle on Tue, Sep 14, 1999 at 02:31:04PM +1000 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tuesday, 14 September 1999 at 14:31:04 +1000, Rob Hurle wrote: > Thanks TrouBle, and thanks for your config file: > >> Something is definatley wrong there, cause here are my kernel sizes >> attached is my config also >> >> -r-xr-xr-x 1 root wheel 2767508 Aug 30 09:33 kernel >> -rwxr-xr-x 1 root wheel 2610543 Aug 16 07:46 kernel.GENERIC >> -r-xr-xr-x 1 root wheel 2867436 Aug 16 21:11 kernel.prev > > These kernels of yours are much more reasonable than mine: > >>> that is, a file of 11.0MB! Where does the nice little 2.3MB kernel come >>> from, and how can I make one with my bits in it? Thanks. > > I compiled up your config file, and I get: > > freebsd [14:18] /usr/src/sys/compile/TEST1 #ll kernel > -rwxr-xr-x 1 root wheel 13578629 Sep 14 14:18 kernel > > 13.6MB! Not looking good. Any more ideas would be welcome. I missed the beginning of this, but this looks like you have a debug kernel (-g option to config). This is good, not bad, since it enables you analyse things if you are unlucky enough to have a panic. If you're running short of space, you should do this in the kernel build directory: cp -p kernel kernel.debug strip -g kernel make install If you're using an older version of FreeBSD (2.X), you'll need "strip -d" instead of "strip -g". In 4.X, "make install" will do this for you. Greg -- When replying to this message, please copy the original recipients. For more information, see http://www.lemis.com/questions.html See complete headers for address, home page and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message