From owner-freebsd-doc Mon Jul 17 19:30: 6 2000 Delivered-To: freebsd-doc@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 92D5A37B875 for ; Mon, 17 Jul 2000 19:30:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id TAA00211; Mon, 17 Jul 2000 19:30:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from merlin.prod.itd.earthlink.net (merlin.prod.itd.earthlink.net [207.217.120.156]) by hub.freebsd.org (Postfix) with ESMTP id EAEBA37B876 for ; Mon, 17 Jul 2000 19:24:44 -0700 (PDT) (envelope-from eogren@earthlink.net) Received: from rod.darktech.org (ip249.cambridge2.ma.pub-ip.psi.net [38.32.112.249]) by merlin.prod.itd.earthlink.net (8.9.3-EL_1_3/8.9.3) with ESMTP id TAA04757 for ; Mon, 17 Jul 2000 19:24:41 -0700 (PDT) Received: (from eogren@localhost) by rod.darktech.org (8.10.1/8.10.1) id e6I2OMk46774; Mon, 17 Jul 2000 22:24:22 -0400 (EDT) Message-Id: <200007180224.e6I2OMk46774@rod.darktech.org> Date: Mon, 17 Jul 2000 22:24:22 -0400 (EDT) From: eogren@earthlink.net Reply-To: eogren@earthlink.net To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: docs/19997: [PATCH] Addition of info about debug kernels to the FAQ Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 19997 >Category: docs >Synopsis: [PATCH] Addition of info about debug kernels to the FAQ >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Mon Jul 17 19:30:01 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Eric Ogren >Release: FreeBSD 4.0-STABLE i386 >Organization: >Environment: Doc repository supped approximately 1/2 an hour ago (7/17/2000, 22:00 EDT) >Description: There have been a couple more "why is my kernel so huge??" questions on the mailing lists recently, so I thought adding an entry to the FAQ about debug kernels would be a good idea. I stuck in the Kernel Configuration section; I'm not sure if it's better there or under System Administration. I seem to remember this being batted around -doc a couple of days ago by somebody else (Ben Smithurst maybe?), but I deleted all of that email, and I can't see any other entries having to do with debug kernels in the FAQ, so... >How-To-Repeat: n/a >How-To-Repeat: >Fix: Index: book.sgml =================================================================== RCS file: /usr/local/doctree/doc/en_US.ISO_8859-1/books/faq/book.sgml,v retrieving revision 1.72 diff -u -r1.72 book.sgml --- book.sgml 2000/07/16 20:39:43 1.72 +++ book.sgml 2000/07/18 02:19:05 @@ -4100,6 +4100,33 @@ +Why is my kernel so big (over 10MB)? + +Chances are, you compiled your kernel in debug +mode. Kernels built in debug mode contain many symbols that +are used for debugging, thus greatly increasing the size of the +kernel. Note that if you running a FreeBSD 3.0 or later system, there +will be little or no performance decrease from running a debug +kernel, and it is useful to keep one around in case of a system +panic. +However, if you are running low on disk space, or you simply +don't want to run a debug kernel, make sure that: + + You do not have a line in your kernel configuration file + that reads makeoptions DEBUG=-g, + and + + You are not running config with the + option. + + +Both of the above situations will cause your kernel to be built +in debug mode. As long as you make sure you follow the steps above, +you can build your kernel normally, and you should notice a fairly +large size decrease; most kernels tend to be around 1.5MB to 2MB. + + + Interrupt conflicts with multi-port serial code. Q. When I compile a kernel with multi-port serial code, it >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message