From owner-freebsd-hackers Fri Apr 5 14:18:21 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from resnet.uoregon.edu (resnet.uoregon.edu [128.223.122.47]) by hub.freebsd.org (Postfix) with ESMTP id 84FE737B417 for ; Fri, 5 Apr 2002 14:18:15 -0800 (PST) Received: from localhost (dwhite@localhost) by resnet.uoregon.edu (8.11.3/8.10.1) with ESMTP id g35MIcO36550; Fri, 5 Apr 2002 14:18:39 -0800 (PST) Date: Fri, 5 Apr 2002 14:18:38 -0800 (PST) From: Doug White To: Alessandro de Manzano Cc: Alfred Perlstein , Subject: Re: Is a debug kernel slower than a non-debug one ? In-Reply-To: <20020405220831.B14188@libero.sunshine.ale> Message-ID: <20020405141702.V36072-100000@resnet.uoregon.edu> X-All-Your-Base: are belong to us MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, 5 Apr 2002, Alessandro de Manzano wrote: > On Fri, Apr 05, 2002 at 12:00:05PM -0800, Alfred Perlstein wrote: > > Wow, thanks for the super-fast answer! :)) > > > > > on my production servers' kernel so in the very rare case of crash I'll > > > got a crash dump ( I'ld use also options DDB_UNATTENDED) and could > > > immediately have a backtrace report. > > > > > > ..Am I crazy ? :-)) > > > > I don't think you'll notice a difference for most stuff, this is how > > does the "-g" option (GCC option I guess) disable the "-O" optimizing > option ? > If "-g" simply attach the symbols and similar debug info to the > executable I guess the kernel should not be slower, but I don't know > GCC very well... Note that the kernel binary with debugging symbols is left in /sys/compile/MYKERNEL/kernel.debug while the actual kernel is stripped before installation into /kernel. If the debugging kernel was actually loaded it would be gigantic :) This is all detailed in the Handbook section on kernel debugging, btw. Doug White | FreeBSD: The Power to Serve dwhite@resnet.uoregon.edu | www.FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message