From owner-freebsd-stable@FreeBSD.ORG Sat Dec 30 18:26:12 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5099716A407; Sat, 30 Dec 2006 18:26:12 +0000 (UTC) (envelope-from freebsd@orchid.homeunix.org) Received: from orchid.homeunix.org (aum95.neoplus.adsl.tpnet.pl [83.27.20.95]) by mx1.freebsd.org (Postfix) with ESMTP id 72CE013C428; Sat, 30 Dec 2006 18:26:10 +0000 (UTC) (envelope-from freebsd@orchid.homeunix.org) Received: from blackacidevil.orchid.homeunix.org (blackacidevil.orchid.homeunix.org [192.168.1.66]) (authenticated bits=0) by orchid.homeunix.org (8.13.6/8.13.6) with ESMTP id kBUIQ1c5020977 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 30 Dec 2006 19:26:09 +0100 (CET) (envelope-from freebsd@orchid.homeunix.org) Message-ID: <4596AF32.2060205@orchid.homeunix.org> Date: Sat, 30 Dec 2006 19:25:54 +0100 From: Karol Kwiatkowski User-Agent: Thunderbird 2.0b1 (X11/20061222) MIME-Version: 1.0 To: Robert Watson References: <20061230035722.L39715@thebighonker.lerctr.org> <20061230151933.P18740@fledge.watson.org> <20061230093730.I47579@thebighonker.lerctr.org> <20061230160353.K18740@fledge.watson.org> <45969487.1020806@orchid.homeunix.org> <20061230170358.K50974@fledge.watson.org> In-Reply-To: <20061230170358.K50974@fledge.watson.org> X-Enigmail-Version: 0.94.1.0 OpenPGP: id=06E09309; url=http://www.orchid.homeunix.org/carlos/gpg/0x06E09309.asc Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enigA094C546C94B362D604F63F9" X-Virus-Scanned: ClamAV 0.88.7/2396/Sat Dec 30 12:57:43 2006 on orchid.homeunix.org X-Virus-Status: Clean Cc: freebsd-stable@freebsd.org Subject: debugging kernel options (was: Re: 6.2-PRE: Fatal Trap?) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd@orchid.homeunix.org List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Dec 2006 18:26:12 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigA094C546C94B362D604F63F9 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Robert Watson wrote: >> P.S. out of curiosity - now that I have configured kernel with DDB and= >> KDB options, is there any performance penalty of running such kernel? >=20 > No, it shouldn't really have any effect on performance. The one thing > to watch out for is that your system will no longer reboot automaticall= y > on a panic, as it will drop to the debugger, by default. You can chang= e > this by setting debug.debugger_on_panic to 0, in which case you will > likely want to set debug.trace_on_panic to 1 so it prints a stack trace= > before rebooting (which is often sufficient, combined with the trap > frame and panic message to debug the problem). >=20 > Right now these are sysctls, not tunables, but you can change the > default using options KDB_UNATTENDED (which flips the default to not > entering the debugger and rebooting) and options KDB_TRACE (which cause= s > a trace to be printed on panic by default). Probably they should also > be tunables so that loader.conf entries will work. Great explanation, thank you. I turned on debugging on my desktop computer which, apart from normal every day use, is 'testing' STABLE by running it :) I'm perfectly fine with the defaults, at least for now. Cheers and thanks again, Karol --=20 Karol Kwiatkowski OpenPGP: http://www.orchid.homeunix.org/carlos/gpg/0x06E09309.asc --------------enigA094C546C94B362D604F63F9 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFlq85ezeoPAwGIYsRCBUOAJsFI/lbuQvWutIJ8g+Zd2hXrtf6jgCgkb5f XuD4X9BBFiBC4lA7wj+Wodk= =ZUn6 -----END PGP SIGNATURE----- --------------enigA094C546C94B362D604F63F9--