Re: [ADMIN] Can we load all database objects in memory?

From: "Albe Laurenz" <laurenz(dot)albe(at)wien(dot)gv(dot)at>
To: Iñigo Martinez Lasala *EXTERN* <imartinez(at)vectorsf(dot)com>, "DM" <dm(dot)aeqa(at)gmail(dot)com>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: [ADMIN] Can we load all database objects in memory?
Date: 2009-03-26 09:44:34
Message-ID: D960CB61B694CF459DCFB4B0128514C202FF6509@exadv11.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general pgsql-sql

Iñigo Martinez Lasala wrote:
>> Hi All, I have a database of 10GB. My Database Server has a
>> RAM of 16GB Is there a way that I can load all the database
>> objects to memory? Thanks for your time and taking a look
>> at this question. Thanks Deepak
>
> Increase effective_cache_size parameter.
>
> An "effective_cache_size=11GB" should be more than enough.

Sorry, but that is quite wrong.
effective_cache_size only affects the planner, not memory utilization.

You can use shared_buffers=11GB to give PostgreSQL memory enough
to buffer all of a 10GB database in memory. But that does not
automatically put all the tables in memory.

Yours,
Laurenz Albe

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Sabin Coanda 2009-03-26 14:53:55 plain text difference with pg_dump
Previous Message Tony Webb 2009-03-26 09:26:13 pg_ctlcluster not logging error (memory problem likely)

Browse pgsql-general by date

  From Date Subject
Next Message Albe Laurenz 2009-03-26 09:53:59 Re: Weird encoding behavior
Previous Message Ivan Sergio Borgonovo 2009-03-26 08:06:03 Re: Question about hosting and server grade

Browse pgsql-sql by date

  From Date Subject
Next Message Josh Trutwin 2009-03-26 14:05:12 Re: Table to Excel
Previous Message Pavel Stehule 2009-03-26 07:04:25 Re: Table to Excel