pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Shridhar Daithankar <shridhar@frodo.hserus.net>
To: David Teran <david.teran@cluster9.com>
Cc: PgSQL Performance ML <pgsql-performance@postgresql.org>
Subject: Re: cache whole data in RAM
Date: Tue, 03 Feb 2004 18:56:06 +0530
Message-ID: <401FA16E.4040202@frodo.hserus.net> (raw)
In-Reply-To: <13E980A8-5648-11D8-BC99-000A95A6F0DC@cluster9.com>
References: <13E980A8-5648-11D8-BC99-000A95A6F0DC@cluster9.com>

David Teran wrote:
> we are trying to speed up a database which has about 3 GB of data. The 
> server has 8 GB RAM and we wonder how we can ensure that the whole DB is 
> read into RAM. We hope that this will speed up some queries.

Neither the DBa or postgresql has to do anything about it. Usually OS caches the 
data  in it's buffer cache. That is certainly true for linux and freeBSD does 
that. Most of the unices certainly do. To my knowledge linux is most aggresive 
one at that..(Rather over aggressive..)

Make sure that you size effective cache size correctly. It helps postgresql 
planner at times..

  HTH

  Shridhar



view thread (5+ messages)  latest in thread

Message-ID: <401FA16E.4040202@frodo.hserus.net>
Permalink:  ../401FA16E.4040202@frodo.hserus.net/
Also on:    postgresql.org/message-id/401FA16E.4040202@frodo.hserus.net

 · 

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: shridhar@frodo.hserus.net, david.teran@cluster9.com
  Subject: Re: cache whole data in RAM
  In-Reply-To: <401FA16E.4040202@frodo.hserus.net>

* 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