From owner-freebsd-hackers Fri Apr 5 12:31: 8 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by hub.freebsd.org (Postfix) with ESMTP id 571D637B41F for ; Fri, 5 Apr 2002 12:31:04 -0800 (PST) Received: by elvis.mu.org (Postfix, from userid 1192) id 1ED08AE24F; Fri, 5 Apr 2002 12:31:04 -0800 (PST) Date: Fri, 5 Apr 2002 12:31:04 -0800 From: Alfred Perlstein To: Alessandro de Manzano Cc: hackers@freebsd.org Subject: Re: Is a debug kernel slower than a non-debug one ? Message-ID: <20020405203104.GZ93885@elvis.mu.org> References: <20020405215712.A14188@libero.sunshine.ale> <20020405200005.GY93885@elvis.mu.org> <20020405220831.B14188@libero.sunshine.ale> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020405220831.B14188@libero.sunshine.ale> User-Agent: Mutt/1.3.27i 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 * Alessandro de Manzano [020405 12:08] 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... no it shouldn't however higher levels of optimization may obfuscate the tracebacks you get because of the way the compiler reorders code. -- -Alfred Perlstein [alfred@freebsd.org] 'Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom.' Tax deductible donations for FreeBSD: http://www.freebsdfoundation.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message