Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 26F879FBDF1 for ; Fri, 4 May 2007 09:46:04 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 00925-04 for ; Fri, 4 May 2007 09:45:53 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from vms044pub.verizon.net (vms044pub.verizon.net [206.46.252.44]) by postgresql.org (Postfix) with ESMTP id 12EED9FB656 for ; Fri, 4 May 2007 09:45:57 -0300 (ADT) Received: from osgiliath.mathom.us ([72.66.0.236]) by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0JHI001YIOS8YLQ4@vms044.mailsrvcs.net> for pgsql-performance@postgresql.org; Fri, 04 May 2007 07:45:44 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by osgiliath.mathom.us (Postfix) with ESMTP id CE79F1F816; Fri, 04 May 2007 08:45:41 -0400 (EDT) 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 AVRrPjo7x-Z6; Fri, 04 May 2007 08:45:39 -0400 (EDT) Received: by osgiliath.mathom.us (Postfix, from userid 1000) id 70EB41F814; Fri, 04 May 2007 08:45:39 -0400 (EDT) Date: Fri, 04 May 2007 08:45:39 -0400 From: Michael Stone Subject: Re: Feature Request --- was: PostgreSQL Performance Tuning In-reply-to: To: Greg Smith Cc: pgsql-performance@postgresql.org Mail-followup-to: Greg Smith , pgsql-performance@postgresql.org Message-id: <20070504124536.GJ2422@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: <200705010923.47951.josh@agliodbs.com> <200705031221.56226.josh@agliodbs.com> User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/42 X-Sequence-Number: 24432 On Fri, May 04, 2007 at 12:33:29AM -0400, Greg Smith wrote: >-bash-3.00$ psql >postgres=# \timing >Timing is on. >postgres=# select count(*) from generate_series(1,100000,1); > count >-------- > 100000 >(1 row) > >Time: 106.535 ms > >There you go, a completely cross-platform answer. You should run the >statement twice and only use the second result for better consistancy. I >ran this on all the sytems I was around today and got these results: > >P4 2.4GHz 107ms >Xeon 3GHz 100ms >Opteron 275 65ms >Athlon X2 4600 61ms PIII 1GHz 265ms Opteron 250 39ms something seems inconsistent here. >For comparison sake, these numbers are more useful at predicting actual >application performance than Linux's bogomips number, which completely >reverses the relative performance of the Intel vs. AMD chips in this set >from the reality of how well they run Postgres. You misunderstand the purpose of bogomips; they have no absolute meaning, and a comparison between different type of cpus is not possible. >While I'm ranting here, I should mention that I also sigh every time I see >people suggest we should ask the user how big their database is. The kind >of newbie user people keep talking about helping has *no idea whatsoever* >how big the data actually is after it gets into the database and all the >indexes are built. 100% agreed. Mike Stone