From owner-freebsd-doc Mon Jul 10 14:10:10 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 09C0D37B515 for ; Mon, 10 Jul 2000 14:10:05 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id OAA06164; Mon, 10 Jul 2000 14:10:04 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Date: Mon, 10 Jul 2000 14:10:04 -0700 (PDT) Message-Id: <200007102110.OAA06164@freefall.freebsd.org> To: freebsd-doc@freebsd.org Cc: From: Ben Smithurst Subject: Re: docs/19648: handbook mentions stripping kernel.debug, but this is done for you Reply-To: Ben Smithurst Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR docs/19648; it has been noted by GNATS. From: Ben Smithurst To: jblaine@mitre.org Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: docs/19648: handbook mentions stripping kernel.debug, but this is done for you Date: Mon, 10 Jul 2000 21:21:54 +0100 --WplhKdTI2c8ulnbP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable jblaine@mitre.org wrote: > Remove the following paragraph from the appropriate handbook section: > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > When the kernel has been built make a copy of it, say kernel.debug, > and then run strip -g on the original. Install the original as > normal. You may also install the unstripped kernel, but symbol table > lookup time for some programs will drastically increase, and since the > whole kernel is loaded entirely at boot time and cannot be swapped out > later, several megabytes of physical memory will be wasted. > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Then people with FreeBSD 3.x or earlier will lose that advice... How about something like this instead: --- chapter.sgml 2000/06/14 00:47:36 1.24 +++ chapter.sgml 2000/07/10 20:19:07 @@ -48,7 +48,10 @@ releases. =20 - When the kernel has been built make a copy of it, say + If you are using any version of FreeBSD older than 4.0-RELEASE, + you should install a stripped copy of the kernel, rather than the + significantly larger debug copy. + When the kernel has been built, make a copy of it, say kernel.debug, and then run strip -g on the original. Install the original as normal. You may also install the unstripped kernel, but symbol table lookup time= for Is the bit about wasting space still even true? I thought with ELF this situation had improved a bit. Anyone know? --=20 Ben Smithurst / ben@FreeBSD.org / PGP: 0x99392F7D --WplhKdTI2c8ulnbP Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 5.0i for non-commercial use MessageID: ZCSnMwlYjEoiBfaTeicypkOsiYblncsm iQCVAwUBOWowYSsPVtiZOS99AQEFGAP+K5y9kT4mxDC6emURh5rIltKkmx0wkVah R5q6ezQPd1ut1pwzR8ymsIYWJ0ng9QteHblmZ92UqzepooEmCFK2BxBzrZFGADFB Tyc53IbPTKb4u4lF/3a88ro3G7SH6+5xb6HzNZ9xCchtDTICiROfXC5RqkIyaf8S HGtRgFAqUNM= =u7Y5 -----END PGP SIGNATURE----- --WplhKdTI2c8ulnbP-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message