pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Sullivan <andrew@libertyrms.info>
To: pgsql-performance@postgresql.org
Subject: Re: Force table to be permanently in cache?
Date: Fri, 29 Aug 2003 10:26:30 -0400
Message-ID: <20030829142630.GE19388@libertyrms.info> (raw)
In-Reply-To: <5.1.0.14.0.20030829144416.03be0248@195.145.148.245>
References: <3F4CBD8A.4050309@potentialtech.com>
	<1061948112.15800.53.camel@gibraltar.mattclark.net>
	<3F4C1364.6080602@potentialtech.com>
	<1061990263.15800.124.camel@gibraltar.mattclark.net>
	<3F4CBD8A.4050309@potentialtech.com>
	<5.1.0.14.0.20030829144416.03be0248@195.145.148.245>

On Fri, Aug 29, 2003 at 02:52:10PM +0200, Fabian Kreitner wrote:
> Hi everyone,
> 
> I have a sql request which on first invocation completes in ~12sec but then 
> drops to ~3sec on the following runs. The 3 seconds would be acceptable but 
> how can I make sure that the data is cached and all times? Is it simply 
> enough to set shared_buffers high enough to hold the entire database (and 
> have enough ram installed of course)? The OS is linux in this case.

If the table gets hit often enough, then it'll be in your filesystem
cache anyway.  See the many discussions of sizing shared_buffers in
the archives of this list for thoughts on how big that should be.

A

-- 
----
Andrew Sullivan                         204-4141 Yonge Street
Liberty RMS                           Toronto, Ontario Canada
<andrew@libertyrms.info>                              M2P 2A8
                                         +1 416 646 3304 x110




view thread (2+ messages)

Message-ID: <20030829142630.GE19388@libertyrms.info>
Permalink:  ../20030829142630.GE19388@libertyrms.info/
Also on:    postgresql.org/message-id/20030829142630.GE19388@libertyrms.info

 · 

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: andrew@libertyrms.info
  Subject: Re: Force table to be permanently in cache?
  In-Reply-To: <20030829142630.GE19388@libertyrms.info>
  References: <3F4CBD8A.4050309@potentialtech.com> <1061948112.15800.53.camel@gibraltar.mattclark.net> <3F4C1364.6080602@potentialtech.com> <1061990263.15800.124.camel@gibraltar.mattclark.net> <5.1.0.14.0.20030829144416.03be0248@195.145.148.245> <20030829142630.GE19388@libertyrms.info>

* 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