pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron Johnson <ron.l.johnson@cox.net>
To: PgSQL Performance ML <pgsql-performance@postgresql.org>
Subject: x86-64 and PostgreSQL
Date: 17 Jan 2003 23:29:25 -0600
Message-ID: <1042867764.889.181.camel@haggis> (raw)

Hi,

Will there be any advantages to running Pg on a 64-bit CPU rather
than 32-bit?

The recent discussions in the "7.3.1 New install, large queries are
slow" thread make me think not, since Pg says that the OS can manage
buffers better:
<QUOTE From="Tom Lane <tgl@sss.pgh.pa.us>">
Yeah, but isn't that theory a hangover from pre-Unix operating systems?
In all modern Unixen, you can expect the kernel to make use of any spare
RAM for disk buffer cache --- and that behavior makes it pointless for
Postgres to try to do large amounts of its own buffering.

Having a page in our own buffer instead of kernel buffer saves a context
swap to access the page, but it doesn't save I/O, so the benefit is a
lot less than you might think.  I think there's seriously diminishing
returns in pushing shared_buffers beyond a few thousand, and once you
get to the point where it distorts the kernel's ability to manage
memory for processes, you're really shooting yourself in the foot.
</QUOTE>

Also, would int8 then become a more "natural" default integer, rather
than the int4 that all of us millions of i386, PPC & Sparc users use?

Thanks,
Ron
-- 
+------------------------------------------------------------+
| Ron Johnson, Jr.     mailto:ron.l.johnson@cox.net          |
| Jefferson, LA  USA   http://members.cox.net/ron.l.johnson  |
|                                                            |
| "Basically, I got on the plane with a bomb. Basically, I   |
|  tried to ignite it. Basically, yeah, I intended to damage |
|  the plane."                                               |
|    RICHARD REID, who tried to blow up American Airlines    |
|                  Flight 63                                 |
+------------------------------------------------------------+




view thread (10+ messages)  latest in thread

Message-ID: <1042867764.889.181.camel@haggis>
Permalink:  ../1042867764.889.181.camel@haggis/
Also on:    postgresql.org/message-id/1042867764.889.181.camel@haggis

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: ron.l.johnson@cox.net
  Subject: Re: x86-64 and PostgreSQL
  In-Reply-To: <1042867764.889.181.camel@haggis>
  References: <1042867764.889.181.camel@haggis>

* 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