X-Original-To: pgsql-performance-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 885B99FAE4E for ; Mon, 12 Jun 2006 23:57:53 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 06116-05 for ; Mon, 12 Jun 2006 23:57:43 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.Mi8.com (d01gw01.mi8.com [63.240.6.47]) by postgresql.org (Postfix) with ESMTP id 19C239FABE7 for ; Mon, 12 Jun 2006 23:57:44 -0300 (ADT) Received: from 172.16.1.25 by mail.Mi8.com with ESMTP (- Welcome to Mi8 Corporation www.Mi8.com (D1)); Mon, 12 Jun 2006 22:57:36 -0400 X-Server-Uuid: 241911D6-425B-44B9-A073-E3FE0F8FC774 Received: from MI8NYCMAIL06.Mi8.com ([172.16.1.160]) by D01HOST03.Mi8.com with Microsoft SMTPSVC(6.0.3790.1830); Mon, 12 Jun 2006 22:57:36 -0400 Received: from 69.181.100.71 ([69.181.100.71]) by MI8NYCMAIL06.Mi8.com ( [172.16.1.219]) via Exchange Front-End Server mi8owa.mi8.com ( [172.16.1.106]) with Microsoft Exchange Server HTTP-DAV ; Tue, 13 Jun 2006 02:57:35 +0000 User-Agent: Microsoft-Entourage/11.2.3.060209 Date: Mon, 12 Jun 2006 19:57:32 -0700 Subject: Re: 64-bit vs 32-bit performance ... backwards? From: "Luke Lonergan" To: mark@mark.mielke.cc, "Anthony Presley" , pgsql-performance@postgresql.org Message-ID: Thread-Topic: [PERFORM] 64-bit vs 32-bit performance ... backwards? Thread-Index: AcaOlR1UXBJCOPqIEdqqSwAWy4o9DA== In-Reply-To: <20060613021627.GA4682@mark.mielke.cc> MIME-Version: 1.0 X-OriginalArrivalTime: 13 Jun 2006 02:57:36.0228 (UTC) FILETIME=[1FD9DA40:01C68E95] X-WSS-ID: 6890F62A1N411311116-01-01 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/158 X-Sequence-Number: 19515 Mark, On 6/12/06 7:16 PM, "mark@mark.mielke.cc" wrote: > I haven't. I'm meaning to take a look. Within registers, 64-bit should > be equal speed to 32-bit. Outside the registers, it would make sense > to only deal with the lower 32-bits where 32-bits is all that is > required. The short answer to all of this as shown in many lab tests by us and elsewhere (see prior post): - 64-bit pgsql on Opteron is generally faster than 32-bit, often by a large amount (20%-30%) on queries that perform sorting, aggregation, etc. It's generally not slower. - 64-bit pgsql on Xeon is generally slower than 32-bit by about 5% So if you have Opterons and you want the best performance, run in 64-bit. If you have Xeons, you would only run in 64-bit if you use more than 4GB of memory. - Luke