Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 0F1A89F9FE1 for ; Mon, 11 Dec 2006 14:55:10 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 19803-04 for ; Mon, 11 Dec 2006 14:54:44 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from vms044pub.verizon.net (vms044pub.verizon.net [206.46.252.44]) by postgresql.org (Postfix) with ESMTP id E80DF9F9F47 for ; Mon, 11 Dec 2006 14:54:45 -0400 (AST) Received: from osgiliath.mathom.us ([71.246.251.8]) by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0JA4001B7HJ9O080@vms044.mailsrvcs.net> for pgsql-performance@postgresql.org; Mon, 11 Dec 2006 12:47:33 -0600 (CST) Received: from localhost (localhost [127.0.0.1]) by osgiliath.mathom.us (Postfix) with ESMTP id 7A7076EA76 for ; Mon, 11 Dec 2006 13:47:30 -0500 (EST) Received: from osgiliath.mathom.us ([127.0.0.1]) by localhost (osgiliath.home.mathom.us [127.0.0.1]) (amavisd-new, port 10024) with LMTP id BpsPDBk+k-Hx for ; Mon, 11 Dec 2006 13:47:29 -0500 (EST) Received: by osgiliath.mathom.us (Postfix, from userid 1000) id 178FF70ABD; Mon, 11 Dec 2006 13:47:29 -0500 (EST) Date: Mon, 11 Dec 2006 13:47:28 -0500 From: Michael Stone Subject: Re: New to PostgreSQL, performance considerations In-reply-to: To: pgsql-performance@postgresql.org Mail-followup-to: pgsql-performance@postgresql.org Message-id: <20061211184726.GI16692@mathom.us> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-disposition: inline X-Virus-Scanned: Debian amavisd-new at mathom.us X-Pgp-Fingerprint: 53 FF 38 00 E7 DD 0A 9C 84 52 84 C5 EE DF 7C 88 References: <430d92a20612101336r3de8862coe618277fccb4006a@mail.gmail.com> <8a0c7af10612101702i49b5a533v4a2300d90d9dae6b@mail.gmail.com> <20061211021847.GE16692@mathom.us> <8a0c7af10612110305u305124b2v3d63491b5f57a86b@mail.gmail.com> <87u002mv49.fsf@wolfe.cbbrowne.com> <8a0c7af10612110531sbb019ck259fb16d131fdb50@mail.gmail.com> <60psaq5t94.fsf@dba2.int.libertyrms.com> <20061211173105.GH16692@mathom.us> User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200612/253 X-Sequence-Number: 22309 On Mon, Dec 11, 2006 at 01:20:50PM -0500, Ron wrote: >(The validity of the claim has nothing to do with the skills or >experience of the claimant or anyone else in the discussion. Only on >the evidence.) Please go back and reread the original post. I don't think the response was unwarranted. > It is a tad unfair and prejudicial to call claims that CPU >optimizations matter to the performance of DB product "extraordinary". >Evidence outside the DBMS field exists; and previous posts here show >that pg can indeed become CPU-bound during what should be IO bound tasks. >At the moment, Daniel's claims are not well supported. That is far >different from being "extraordinary" given the current circumstantial >evidence. No, they're extraordinary regardless of whether postgres is CPU bound. The question is whether cpu-specific compiler flags will have a significant impact--which is, historically, fairly unlikely. Far more likely is that performance can be improved with either a non-cpu-specific optimization (e.g., loop unrolling vs not) or with an algorithmic enhancement. More importantly, you're arguing *your own* point, not the original claim. I'll refresh your memory: "My Linux is not an Intel-AMD binary compatible turtle like Fedora/RedHat/SUSE/... It's really important to have your GLIBC compiled for your processor. It is essencial for performance." You wanna draw the line between that (IMO, extraordinary) claim and the rational argument that you're trying to substitute in its place? >[1] The evidence that arch specific flags matter to performance can >be found as easily as recompiling your kernel or your >compiler. Then, please, point to the body of evidence. IME, the results of such efforts aren't statistically all that signficant on most workloads. I'm sure there are edge cases, but it's certainly not going to be on my top ten things to look at when tuning a database system. (If your kernel's cpu utilization is the bottleneck in your database, you've probably got bigger problems than compiler flags can solve.) Where you get the real big benefits in a (linux) kernel recompile is when you select code that's specifically tuned for a particular processor--not from arch-specific gcc flags--and those sorts of things are increasingly moving toward boot-time autotuning rather than compile-time manual tuning for obvious reasons. Mike Stone