From owner-freebsd-current@FreeBSD.ORG Thu Aug 26 23:47:43 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8EC0B16A4CE; Thu, 26 Aug 2004 23:47:43 +0000 (GMT) Received: from sage.thought.org (dsl231-043-140.sea1.dsl.speakeasy.net [216.231.43.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id E0BED43D1D; Thu, 26 Aug 2004 23:47:42 +0000 (GMT) (envelope-from kline@tao.thought.org) Received: from thought.org (tao [10.0.0.247]) by sage.thought.org (8.12.10/8.12.10) with ESMTP id i7QNla98074946; Thu, 26 Aug 2004 16:47:38 -0700 (PDT) (envelope-from kline@tao.thought.org) Received: from tao.thought.org (localhost [127.0.0.1]) by thought.org (8.12.11/8.12.11) with ESMTP id i7QNlXNo026442; Thu, 26 Aug 2004 16:47:34 -0700 (PDT) (envelope-from kline@tao.thought.org) Received: (from kline@localhost) by tao.thought.org (8.12.11/8.12.11/Submit) id i7QNlNuK026437; Thu, 26 Aug 2004 16:47:23 -0700 (PDT) (envelope-from kline) Date: Thu, 26 Aug 2004 16:47:23 -0700 From: Gary Kline To: Giorgos Keramidas Message-ID: <20040826234722.GB26330@thought.org> References: <412D10E7.8020704@makeworld.com> <20040826000715.GD89034@thought.org> <20040826203313.GA531@gothmog.gr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040826203313.GA531@gothmog.gr> X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: Observing 18 years of service to the Unix community User-Agent: Mutt/1.5.6i X-Mailman-Approved-At: Fri, 27 Aug 2004 11:58:54 +0000 cc: Gary Kline cc: freebsd-current@freebsd.org cc: freebsd-questions@freebsd.org Subject: Re: 5.3-Beta1: So far, so goo. Day 5. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Aug 2004 23:47:43 -0000 On Thu, Aug 26, 2004 at 11:33:13PM +0300, Giorgos Keramidas wrote: > 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 > %%% I'll hack KERNCONF; thanks for the howto's and wherefor's:) But not until there is a 5.3-STABLE! ...Catchind deadlocks and not checking on spinlocks is likely wise, though. > > 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. > I'l cn run my own test suites to see; you're probably right abut the speed gain, but it'll be a worthy test of gcc/g++. gary -- Gary Kline kline@thought.org www.thought.org Public service Unix