Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Jan 2003 20:34:19 +0100
From:      David Holm <david@realityrift.com>
To:        Joe Laughlin <joe@removethis.rainbowsheep.net>
Cc:        current@FreeBSD.ORG
Subject:   Re: upgrading to CURRENT from STABLE
Message-ID:  <20030109203419.50e4f60b.david@realityrift.com>
In-Reply-To: <3E1DCBFF.9080306@removethis.rainbowsheep.net>
References:  <3E1DCBFF.9080306@removethis.rainbowsheep.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Comment (or remove) these lines in your kernel config:
makeoptions     DEBUG=-g
options         DDB
options         INVARIANTS
options         INVARIANT_SUPPORT
options         WITNESS
options         WITNESS_SKIPSPIN

You should also add the following to /etc/make.conf:
NOPROFILE=true

You can find info on how to set maximum optimizations with gcc 3.2 here:
http://www.freehackers.org/gentoo/gccflags/flag_gcc3opt.html

(Originally written for gentoo linux, but should work with FreeBSD too). A warning though, NEVER
compile world and your kernel using all these flags unless you are prepared to reinstall. My
system failed once simply because I used CFLAGS = "-O3 -pipe" instead of "-O2 -pipe".
You will probably be able to compile most ports with these flags though, back when I ran gentoo
I was able to compile 99% of all applications with these. 

//David Holm

On Thu, 09 Jan 2003 11:22:39 -0800
Joe Laughlin <joe@removethis.rainbowsheep.net> wrote:

> In the UPDATING file, the following is noted:
> 
>          FreeBSD 5.0-CURRENT has many debugging features turned on, in
>          both the kernel and userland.  These features attempt to detect
>          incorrect use of system primitives, and encourage loud failure
>          through extra sanity checking and fail stop semantics.  They
>          also substantially impact system performance.  If you want to
>          do performance measurement, benchmarking, and optimization,
>          you'll want to turn them off.
> 
> How do I turn them off?
> 
> Thanks,
> Joe
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-current" in the body of the message
> 

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030109203419.50e4f60b.david>