Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 09 Dec 2006 14:49:18 -0800
From:      Doug Barton <dougb@FreeBSD.org>
To:        David Stanford <dthomas53@gmail.com>
Cc:        freebsd-current@freebsd.org, davidn@datalinktech.com.au
Subject:   Re: Am I an Idiot?
Message-ID:  <457B3D6E.5080207@FreeBSD.org>
In-Reply-To: <f2c91f770612091423h51a7bd7du2b79e801ea4662f4@mail.gmail.com>
References:  <4579EB08.8080704@intersonic.se>	<457A3B9B.5000304@datalinktech.com.au>	<f2c91f770612091238v747a82fdy2908da9276c20801@mail.gmail.com>	<457B352A.1040202@datalinktech.com.au> <f2c91f770612091423h51a7bd7du2b79e801ea4662f4@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
David Stanford wrote:
> On 12/9/06, David Nugent <davidn@datalinktech.com.au> wrote:
>>
>> David Stanford wrote:
>> > This is a somewhat OT question, but what needs to be done to turn off
>> > the on-by-default debugging features when running -CURRENT?
>> Don't use WITNESS, INVARIANTS and associated options in your kernel
>> configuration. These enable the debugging features.
>>
> 
> It was my assumption to simply remove this entire section to disable
> debugging:
> 
> =====================
> # Debugging for use in -current

These don't really hurt performance

> options         KDB                     # Enable kernel debugger support.
> options         DDB                     # Support DDB.

This one isn't necessary if you're not debugging remotely in any case

> options         GDB                     # Support remote GDB.

These do hurt performance

> options         INVARIANTS              # Enable calls of extra sanity
> checking
> options         INVARIANT_SUPPORT       # Extra sanity checks of internal
> structures, required by INVARIANTS
> options         WITNESS                 # Enable checks to detect deadlocks
> and cycles
> options         WITNESS_SKIPSPIN        # Don't run witness on spinlocks

hth,

Doug

-- 

    This .signature sanitized for your protection




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?457B3D6E.5080207>