pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: William Yu <wyu@talisys.com>
To: pgsql-performance@postgresql.org
Subject: Re: Caching by Postgres
Date: Wed, 24 Aug 2005 11:54:42 -0700
Message-ID: <deifpn$2rp5$1@news.hub.org> (raw)
In-Reply-To: <430C7448.7030103@sun.com>
References: <20050823171045.12112.qmail@web51309.mail.yahoo.com>
	<20050823124323.710a9dd3.frank@wiles.org>
	<430B6DE3.6040109@sun.com>
	<deg68k$16gh$1@news.hub.org>
	<430C7448.7030103@sun.com>

Donald Courtney wrote:
> I built postgreSQL 8.1 64K bit on solaris 10 a few months ago
> and side by side with the 32 bit postgreSQL build saw no improvement. In 
> fact the 64 bit result was slightly lower.

I'm not surprised 32-bit binaries running on a 64-bit OS would be faster 
than 64-bit/64-bit. 64-bit isn't some magical wand you wave and it's all 
ok. Programs compiled as 64-bit will only run faster if (1) you need 
64-bit address space and you've been using ugly hacks like PAE to get 
access to memory > 2GB or (2) you need native 64-bit data types and 
you've been using ugly hacks to piece 32-bit ints together (example, 
encryption/compression). In most cases, 64-bit will run slightly slower 
due to extra overhead of using larger datatypes.

Since PostgreSQL hands off the majority of memory management/data 
caching to the OS, only the OS needs to be 64-bit to reap the benefits 
of better memory management. Since Postgres *ALREADY* reaps the 64-bit 
benefit, I'm not sure how the argument moving caching/mm/fs into 
Postgres would apply. Yes there's the point about possibly implementing 
better/smarter/more appropriate caching algorithms but that has nothing 
to do with 64-bit.



view thread (31+ messages)  latest in thread

Message-ID: <deifpn$2rp5$1@news.hub.org>
Permalink:  ../deifpn$2rp5$1@news.hub.org/
Also on:    postgresql.org/message-id/deifpn$2rp5$1@news.hub.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: wyu@talisys.com
  Subject: Re: Caching by Postgres
  In-Reply-To: <deifpn$2rp5$1@news.hub.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox