From owner-freebsd-hackers Tue Mar 13 12:25:21 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mta5.snfc21.pbi.net (mta5.snfc21.pbi.net [206.13.28.241]) by hub.freebsd.org (Postfix) with ESMTP id 4108A37B719 for ; Tue, 13 Mar 2001 12:25:18 -0800 (PST) (envelope-from jazepeda@pacbell.net) Received: from zippy.pacbell.net ([207.214.149.171]) by mta5.snfc21.pbi.net (Sun Internet Mail Server sims.3.5.2000.01.05.12.18.p9) with ESMTP id <0GA5007ZHKIZ49@mta5.snfc21.pbi.net> for freebsd-hackers@FreeBSD.ORG; Tue, 13 Mar 2001 12:21:01 -0800 (PST) Received: by zippy.pacbell.net (Postfix, from userid 1000) id 8DAEF18C6; Tue, 13 Mar 2001 12:20:53 -0800 (PST) Date: Tue, 13 Mar 2001 12:20:53 -0800 From: Alex Zepeda Subject: Re: optimizing apache with php and nfs mounts In-reply-to: <20010313074140.B75117@dragon.nuxi.com>; from obrien@FreeBSD.ORG on Tue, Mar 13, 2001 at 07:41:40AM -0800 To: freebsd-hackers@FreeBSD.ORG Message-id: <20010313122053.A1339@zippy.mybox.zip> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-disposition: inline User-Agent: Mutt/1.2.5i References: <20010313074140.B75117@dragon.nuxi.com> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Mar 13, 2001 at 07:41:40AM -0800, David O'Brien wrote: > Where did you even get the idea "-O6" did *_ANYTHING_*?? Don't people > ever read the documentation anymore. Well, yes. But I think that with the pgcc patches floating around that do use -ON N <= 9 or so.. people might get confused. > Do people ever actually test this? Or is there just the assumption that > the more "optimizations" on the `cc' command line is a Great Thing(tm)? Yes. > People do realize that for some code, -O2 is much worse than -O? Also > for much code there is no difference in performance. Rather than do what > you "think" will give the best results, why not actually benchmark it? Well, yes. I was actually curious about this, and if you search the gcc ml archives (gcc.gnu.org) there are people who've been working on this. There was an interesting example of some fp code compiled with -O, -O2, -O2 -fomit-frame-pointer. With the extra register saved with -fomit-frame-pointer -O2 was able to do some neat stuff. Of course -O2 turns on most of the optimizations, but I wonder which ones are causing incorrect code generation, and which ones really do help. Hmm. - alex To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message