From owner-freebsd-current Tue Jan 28 11: 0: 5 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 AFC5C37B405 for ; Tue, 28 Jan 2003 11:00:03 -0800 (PST) Received: from mailout08.sul.t-online.com (mailout08.sul.t-online.com [194.25.134.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4B00C43E4A for ; Tue, 28 Jan 2003 11:00:02 -0800 (PST) (envelope-from D.Rock@t-online.de) Received: from fwd01.sul.t-online.de by mailout08.sul.t-online.com with smtp id 18daxg-0006u4-02; Tue, 28 Jan 2003 19:59:56 +0100 Received: from dialin.t-online.de (340029380333-0001@[80.128.206.53]) by fmrl01.sul.t-online.com with esmtp id 18daxF-1r95jUC; Tue, 28 Jan 2003 19:59:29 +0100 Received: from t-online.de (doom [172.23.7.254]) by dialin.t-online.de (8.11.6+Sun/8.11.6/Rock) with ESMTP id h0SIkMQ28520; Tue, 28 Jan 2003 19:46:23 +0100 (CET) Message-ID: <3E36CFFE.9080401@t-online.de> Date: Tue, 28 Jan 2003 19:46:22 +0100 From: "D. Rock" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.2.1) Gecko/20021130 X-Accept-Language: de-at, de, en-us, en MIME-Version: 1.0 To: Dan Nelson Cc: Rahul Siddharthan , Kenneth Culver , Atte Peltomaki , freebsd-current@FreeBSD.ORG Subject: Re: Performance problems with 5.0-RELEASE References: <20030123123522.C9068-100000@alpha.yumyumyum.org> <20030123181628.GA2185@papagena.rockefeller.edu> <20030123185657.GB54656@dan.emsphone.com> In-Reply-To: <20030123185657.GB54656@dan.emsphone.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Sender: 340029380333-0001@t-dialin.net 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 Dan Nelson schrieb: > In the last episode (Jan 23), Rahul Siddharthan said: > >>Kenneth Culver wrote: >> >>>Did you by any chance build your own kernel? If so did you leave >>>things like this in: >>> >>>options INVARIANTS #Enable calls of extra sanity >>>options INVARIANT_SUPPORT #Extra sanity checks of internal >>>options WITNESS #Enable checks to detect deadlocks >>>options WITNESS_SKIPSPIN #Don't run witness on spinlocks >> >>I'd like to add that even with these removed, I was experiencing >>terrible performance in building ports, etc (anything involving heavy >>filesystem activity or memory usage). Setting up an /etc/malloc.conf >>fixed this (this is also briefly noted in UPDATING). Specifically I >>use (don't know whether it's optimal, but it works): >> >># ls -l /etc/malloc.conf >>lrwxr-xr-x 1 root wheel 4 Jan 23 11:52 /etc/malloc.conf -> HR< > > > H and < should only make a difference if you are low on memory. R is on > by default in 5.0 anyway, due to A and J being on by default. Setting > malloc.conf to "aj" makes it work like it does in 4.*. > Ahh, thanks for the info. Just a notice. With malloc.conf pointing to "aj" I got a speedup of over 85% for a specific test program for Perl 5.8.0: To reproduce: cd /usr/ports/lang/perl make cd work/perl-5.8.0 time ./perl t/op/pat.t Results: no /etc/malloc.conf 125 seconds user time /etc/malloc.conf -> aj 18 seconds user time on an AMD K6-2 300. I'd say this is a significant difference... Daniel To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message