From owner-freebsd-current Tue Feb 25 7:45:26 2003 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 2950337B401 for ; Tue, 25 Feb 2003 07:45:25 -0800 (PST) Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7A1E643F3F for ; Tue, 25 Feb 2003 07:45:24 -0800 (PST) (envelope-from des@ofug.org) Received: by flood.ping.uio.no (Postfix, from userid 2602) id 12B425309; Tue, 25 Feb 2003 16:45:23 +0100 (CET) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: Christoph Kukulies Cc: freebsd-current@freebsd.org Subject: Re: performance / /usr/src/UPDATING From: Dag-Erling Smorgrav Date: Tue, 25 Feb 2003 16:45:22 +0100 In-Reply-To: <200302241212.NAA26305@accms33.physik.rwth-aachen.de> (Christoph Kukulies's message of "Mon, 24 Feb 2003 13:12:51 +0100") Message-ID: User-Agent: Gnus/5.090014 (Oort Gnus v0.14) Emacs/21.2 (i386--freebsd) References: <200302241212.NAA26305@accms33.physik.rwth-aachen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Christoph Kukulies writes: > In /usr/src/UPDATING I read that -current is always compiled > withlots of debugging flags on etc. > > Can this be switched off with a single switch in the Makefile? Not a single switch, but there isn't a whole lot to do. Mainly, you want to turn the J malloc option off by doing # ln -fs j /etc/malloc.conf This should improve userland performance quite a bit, and you don't even need to rebuild - it takes effect immediately (for programs started after the change). As for the kernel, assuming your config is based on GENERIC, you'll want to remove (or comment out) the WITNESS options, and possibly also the INVARIANTS options. Note that if you do get in trouble, the lack of these (especially INVARIANTS) will make debugging much harder. DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message