X-Original-To: pgsql-performance-postgresql.org@postgresql.org Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 92D849FB2F6 for ; Mon, 4 Sep 2006 17:44:43 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 59061-10 for ; Mon, 4 Sep 2006 20:44:40 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 9942A9FB2E8 for ; Mon, 4 Sep 2006 17:42:43 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.3 Received: from mx7.mail.ru (mx7.mail.ru [194.67.23.27]) by svr4.postgresql.org (Postfix) with ESMTP id AFC1C5AF8C7 for ; Mon, 4 Sep 2006 20:42:42 +0000 (GMT) Received: from [213.148.25.226] (port=5282 helo=[192.168.0.2]) by mx7.mail.ru with asmtp id 1GKLHE-000NwZ-00 for pgsql-performance@postgresql.org; Tue, 05 Sep 2006 00:42:40 +0400 Message-ID: <44FC8FB4.4030706@mail.ru> Date: Tue, 05 Sep 2006 00:42:28 +0400 From: Roman Krylov User-Agent: Thunderbird 1.5.0.5 (X11/20060719) MIME-Version: 1.0 To: pgsql-performance@postgresql.org Subject: 64bit vs 32bit build on amd64 Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=4.398 tagged_above=0 required=5 tests=RCVD_IN_BL_SPAMCOP_NET, RCVD_IN_SORBS_WEB, SPF_SOFTFAIL X-Spam-Level: **** X-Archive-Number: 200609/23 X-Sequence-Number: 20709 Hi. My config: gentoo linux "2005.1" on amd64x2 in 64-bit mode, kernel 2.6.16.12 glibc 3.3.5(NPTL), gcc 3.4.3. I had not used portage for building. I built two versions of postgres from sources: postgresql-8.1.4 native(64bit) and 32-bit with CFLAGS=... -m32, and "LD = /usr/x86_64-pc-linux-gnu/bin/ld -melf_i386" in src/Makefile.global. 32-bit build runs much faster than 64 apparently. What benchmark utility should I run to provide more concrete info (numbers)? What could be the reason of that difference in performance? Regards, Roman.