From owner-freebsd-questions@FreeBSD.ORG Thu Aug 26 20:34:55 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 309B216A4CE; Thu, 26 Aug 2004 20:34:55 +0000 (GMT) Received: from aiolos.otenet.gr (aiolos.otenet.gr [195.170.0.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id C139F43D1D; Thu, 26 Aug 2004 20:34:52 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.gr (patr530-a166.otenet.gr [212.205.215.166]) i7QKYmqD002160; Thu, 26 Aug 2004 23:34:49 +0300 Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.13.1/8.13.1) with ESMTP id i7QKXEoA034523; Thu, 26 Aug 2004 23:33:14 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.13.1/8.13.1/Submit) id i7QKXDOm034510; Thu, 26 Aug 2004 23:33:13 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Thu, 26 Aug 2004 23:33:13 +0300 From: Giorgos Keramidas To: Gary Kline Message-ID: <20040826203313.GA531@gothmog.gr> References: <412D10E7.8020704@makeworld.com> <20040826000715.GD89034@thought.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040826000715.GD89034@thought.org> Phone: +30-2610-312145 Mobile: +30-6944-116520 cc: freebsd-current@freebsd.org cc: freebsd-questions@freebsd.org Subject: Re: 5.3-Beta1: So far, so goo. Day 5. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Aug 2004 20:34:55 -0000 On 2004-08-25 17:07, Gary Kline wrote: > > But Q1: how exactly, does one get rid of the debugging stuff? You can disable most of the debugging stuff with: # /bin/rm -fr /etc/malloc.conf # ln -s ajr /etc/malloc.conf and then commenting our or deleting the following options from your kernel config file: %%% makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols options KDB # Enable kernel debugger support. options DDB # Support DDB. options GDB # Support remote GDB. 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 for speed %%% Disabling all of these is certainly going to yield a faster system. > And Q2, now that we've got gcc-3.4, would it help to use a higher > opyimization? say, "-O3"? .... I'm not sure if the speed gain is significant and worth the risk. I still use the same make.conf settings, shown below: NO_CPU_CFLAGS= true # Don't add -march= to CFLAGS automatically NO_CPU_COPTFLAGS=true # Don't add -march= to COPTFLAGS automatically and I have commented out the CFLAGS and COPTFLAGS, the same way I did a year ago and two years ago, etc.