Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 2FEC7632F17 for ; Fri, 27 Aug 2010 14:25:23 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 54596-01 for ; Fri, 27 Aug 2010 17:25:15 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.187]) by mail.postgresql.org (Postfix) with ESMTP id CF2AE632A48 for ; Fri, 27 Aug 2010 14:25:15 -0300 (ADT) Received: from [192.168.1.6] (static-71-179-240-8.bltmmd.fios.verizon.net [71.179.240.8]) by mrelayeu.kundenserver.de (node=mreu0) with ESMTP (Nemesis) id 0MTc9s-1OOXYs1OT2-00QUL4; Fri, 27 Aug 2010 19:25:12 +0200 Message-ID: <4C77F4F4.4020900@2ndquadrant.com> Date: Fri, 27 Aug 2010 13:25:08 -0400 From: Greg Smith User-Agent: Thunderbird 2.0.0.24 (X11/20100317) MIME-Version: 1.0 To: Scott Carey CC: Philippe Rimbault , "pgsql-performance@postgresql.org" Subject: Re: Performance on new 64bit server compared to my 32bit desktop References: <4C6CE64D.6070104@edd.fr> <4C6D76FE.9010407@2ndquadrant.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:4CaaEcJRf/CFrvtX5ATdSv+nRElJg3QwE77le7y9Ix1 hxuM3m4nUMF3KVT7JTcxLqutJvj54lNMkA7ELtMGqFASwmphPo xESDlzCazkMTXmZ/cjliI3u58yq9TLRPr+eXE1fU4Rd/5GIB8V PmJ6/qH/e1E9kmzxYS5yntpbOTXYHAzGvr/yId7kBjlNhvkjC/ eGCnB52POfcPUQuGLs948rmGIdC3Reso/ZW66326n0= X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201008/295 X-Sequence-Number: 40138 Scott Carey wrote: > But the select count(*) query, cached in RAM is 3x faster in one system than the other. The CPUs aren't 3x different performance wise. Something else may be wrong here. > > An individual Core2 Duo 2.93Ghz should be at most 50% faster than a 2.2Ghz Opteron for such a query. Unless there are some compile options that are set wrong. I would check the compile options. > Sure, it might be. But I've seen RAM on an Intel chip like the E7500 here (DDR3-1066 or better, around 10GB/s possible) run almost 3X as fast as what you'll find paired with an Opteron 2427 (DDR2-800, closer to 3.5GB/s). Throw in the clock differences and there you go. I've been wandering around for years warning that the older Opterons on DDR2 running a single PostgreSQL process are dog slow compared to the same thing on Intel. So that alone might actually be enough to account for the difference. Ultimately the multi-processor stuff is what's more important to most apps, though, which is why I was hinting to properly run that instead. -- Greg Smith 2ndQuadrant US Baltimore, MD PostgreSQL Training, Services and Support greg@2ndQuadrant.com www.2ndQuadrant.us