From owner-freebsd-hackers Fri Apr 5 12: 8:43 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.dada.it (mail4.dada.it [195.110.96.56]) by hub.freebsd.org (Postfix) with SMTP id C017537B416 for ; Fri, 5 Apr 2002 12:08:37 -0800 (PST) Received: (qmail 19762 invoked from network); 5 Apr 2002 20:08:30 -0000 Received: from unknown (HELO libero.sunshine.ale) (195.110.114.252) by mail.dada.it with SMTP; 5 Apr 2002 20:08:30 -0000 Received: by libero.sunshine.ale (Postfix, from userid 1001) id 7E4EA5F7E; Fri, 5 Apr 2002 22:08:31 +0200 (CEST) Date: Fri, 5 Apr 2002 22:08:31 +0200 From: Alessandro de Manzano To: Alfred Perlstein Cc: hackers@freebsd.org Subject: Re: Is a debug kernel slower than a non-debug one ? Message-ID: <20020405220831.B14188@libero.sunshine.ale> Reply-To: Alessandro de Manzano References: <20020405215712.A14188@libero.sunshine.ale> <20020405200005.GY93885@elvis.mu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020405200005.GY93885@elvis.mu.org>; from bright@mu.org on Fri, Apr 05, 2002 at 12:00:05PM -0800 X-Operating-System: FreeBSD 4.5-STABLE 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, 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... > I ran my production boxes for quite a while when I was doing admin > work. It helped a _lot_ if a problem happened. Exactly my intentions... Actually till now I had just one crash and for hardware reasons, but better safe than sorry... :-) Thanks again! -- bye! Ale ale@unixmania.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message