From owner-freebsd-hackers Thu Mar 7 7:36:53 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mailg.telia.com (mailg.telia.com [194.22.194.26]) by hub.freebsd.org (Postfix) with ESMTP id AE64337B4B5 for ; Thu, 7 Mar 2002 07:36:18 -0800 (PST) Received: from d1o913.telia.com (d1o913.telia.com [195.252.44.241]) by mailg.telia.com (8.11.6/8.11.6) with ESMTP id g27FaHq04534 for ; Thu, 7 Mar 2002 16:36:17 +0100 (CET) Received: from falcon.midgard.homeip.net (h217n1fls20o913.telia.com [212.181.162.217]) by d1o913.telia.com (8.8.8/8.8.8) with SMTP id QAA07393 for ; Thu, 7 Mar 2002 16:36:16 +0100 (CET) Received: (qmail 4173 invoked by uid 1001); 7 Mar 2002 15:36:15 -0000 Date: Thu, 7 Mar 2002 16:36:15 +0100 From: Erik Trulsson To: Peter Pentchev Cc: mitko@rila.bg, freebsd-hackers@FreeBSD.ORG, gclarkii@vsservices.com Subject: Re: Swapping performance Message-ID: <20020307153615.GB1942@student.uu.se> Mail-Followup-To: Peter Pentchev , mitko@rila.bg, freebsd-hackers@FreeBSD.ORG, gclarkii@vsservices.com References: <20020307090707.GC26621@elvis.mu.org> <20020307142759.0d95d467.mitko@rila.bg> <20020307080906.367be8df.gclarkii@vsservices.com> <20020307164724.D377@straylight.oblivion.bg> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020307164724.D377@straylight.oblivion.bg> User-Agent: Mutt/1.3.27i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Mar 07, 2002 at 04:47:24PM +0200, Peter Pentchev wrote: > On Thu, Mar 07, 2002 at 08:09:06AM -0600, GB Clark wrote: > > On Thu, 7 Mar 2002 14:27:59 +0200 > > Dimitar Peikov wrote: > > > > > On Thu, 7 Mar 2002 04:01:58 -0800 (PST) > > > Julian Elischer wrote: > > > > > > > he said -stable.. > > > > > > > > what are the malloc options on -stable? > > > > > > > > maybe we should make sure that they are null > > > > > > > > ln -s ">" /etc/malloc.conf > > > > (I hope that helps) :) > > > > > > > > > > I've tested it with : > > > > > > cc -O6 -o malloc_test malloc_test.c > > > > That -O6 does not look right from here. Do we support anything over -O2? > > ISTR that -On is exactly the same for -O2 for n > 2; or is this stale info? > Maybe GCC 3.x supports higher optimization levels; still, I don't think > this would make any significant difference. n > 3 actually. The difference between -O2 and -O3 is that -O3 enables inlining of functions. This usually makes the generated code larger, and sometimes faster (and sometimes slower.) FreeBSD does not officially support anything above -O since there have been reports of bad code generated when compiling with -O2 or higher. (The difference in performance between -O and -O2 is usually fairly small anyway so it doesn't matter much.) -- Erik Trulsson ertr1013@student.uu.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message