Re: Help tuning a large table off disk and into RAM - Mailing list pgsql-general

From Tom Lane
Subject Re: Help tuning a large table off disk and into RAM
Date
Msg-id 22540.1190823652@sss.pgh.pa.us
Whole thread Raw
In response to Re: Help tuning a large table off disk and into RAM  (Bill Moran <wmoran@potentialtech.com>)
List pgsql-general
Bill Moran <wmoran@potentialtech.com> writes:
> Give it enough shared_buffers and it will do that.  You're estimating
> the size of your table @ 3G (try a pg_relation_size() on it to get an
> actual size)  If you really want to get _all_ of it in all the time,
> you're probably going to need to add RAM to the machine.

The table alone will barely fit in RAM, and he says he's got a boatload
of indexes too; and apparently Postgres isn't the only thing running on
the machine.  He *definitely* has to buy more RAM if he wants it all
to fit.  I wouldn't necessarily advise going to gigs of shared buffers;
you'll be putting a lot of temptation on the kernel to swap parts of
that out, and it does not sound at all like the workload will keep all
of the buffers "hot" enough to prevent that.

            regards, tom lane

pgsql-general by date:

Previous
From: "Jimmy Choi"
Date:
Subject: Re: Help tuning a large table off disk and into RAM
Next
From: Tom Lane
Date:
Subject: Re: Poor performance with ON DELETE CASCADE