Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Jul 2004 09:59:46 +0930
From:      Greg 'groggy' Lehey <grog@FreeBSD.org>
To:        Daniel Eriksson <daniel_k_eriksson@telia.com>
Cc:        FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: Debugging a production server?
Message-ID:  <20040701002946.GO36115@wantadilla.lemis.com>
In-Reply-To: <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAA0VcX9IoJqUaXPS8MjT1PdsKAAAAQAAAAJkcByfBAjk2f8+QUveIeaAEAAAAA@telia.com>
References:  <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAA0VcX9IoJqUaXPS8MjT1PdsKAAAAQAAAAJkcByfBAjk2f8+QUveIeaAEAAAAA@telia.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help

--FilwpOHBrTVNlmJ3
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Thursday,  1 July 2004 at  2:14:20 +0200, Daniel Eriksson wrote:
>
> What can I do to optimize my debugging ability on a production server (where
> no slowdown during normal operation is acceptable)? Will compiling the
> kernel with debug symbols and DDB cause any performance degradation?

No.  The symbols don't get loaded.  ddb will cause extreme performance
degradation if you enter the debugger, of course, but that's obvious.

> Any other options I should consider?

Nothing occurs to me offhand.  A lot depends on the kind of debugging
you want to do.  Not everything requires kernel options.

> The goal is to be able to do some simple investigation myself and
> write fully detailed PRs.

If you've been experiencing particular kinds of problems, it might be
worth mentioning them here.

> Also, how clever is the core dumping code? Will it be able to handle
> swap spread out over two discs (as long as total size is larger than
> my RAM)?

No.

> If not, what about a situation where there's three swap areas, but
> only one of them is bigger than the RAM?

That's fine.  Dump to the big partition.

Greg
--
Note: I discard all HTML mail unseen.
Finger grog@FreeBSD.org for PGP public key.
See complete headers for address and phone numbers.

--FilwpOHBrTVNlmJ3
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (FreeBSD)

iD8DBQFA41r6IubykFB6QiMRAm/lAJ9H9J1yab411nWR4cpR/lHYJGlecACfXsbv
Z6AEUi8ZIZAyGYmu+wA0ERw=
=NleL
-----END PGP SIGNATURE-----

--FilwpOHBrTVNlmJ3--



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20040701002946.GO36115>