pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Charles A. Landemaine <landemaine@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Loading the entire DB into RAM
Date: Fri, 07 Apr 2006 11:25:14 -0400
Message-ID: <12191.1144423514@sss.pgh.pa.us> (raw)
In-Reply-To: <e6575a30604070737n20b2d7a4l33ba51dcbf4527a@mail.gmail.com>
References: <e6575a30604070737n20b2d7a4l33ba51dcbf4527a@mail.gmail.com>

"Charles A. Landemaine" <landemaine@gmail.com> writes:
> What I'd like to do is find out how to keep the whole DB in RAM so
> that each time some one does a query, it doesn't use the HDD. Is it
> possible, if so, how?

That should happen essentially for free, if the kernel doesn't have any
better use for the memory --- anything read from disk once will stay in
kernel disk cache.  Perhaps you need to take a closer look at your
kernel VM parameters.  Or maybe you don't have enough RAM yet for both
the DB contents and the processes you need to run.

			regards, tom lane



view thread (7+ messages)  latest in thread

Message-ID: <12191.1144423514@sss.pgh.pa.us>
Permalink:  ../12191.1144423514@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/12191.1144423514@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, landemaine@gmail.com
  Subject: Re: Loading the entire DB into RAM
  In-Reply-To: <12191.1144423514@sss.pgh.pa.us>

* 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