Re: To increase RAM or not

From: Igor Neyman <ineyman(at)perceptron(dot)com>
To: Emanuel Calvo <emanuel(dot)calvo(at)2ndquadrant(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: To increase RAM or not
Date: 2014-10-22 14:54:11
Message-ID: A76B25F2823E954C9E45E32FA49D70ECAB2FF198@mail.corp.perceptron.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

-----Original Message-----
From: pgsql-general-owner(at)postgresql(dot)org [mailto:pgsql-general-owner(at)postgresql(dot)org] On Behalf Of Emanuel Calvo
Sent: Wednesday, October 22, 2014 10:39 AM
To: pgsql-general(at)postgresql(dot)org
Subject: Re: [GENERAL] To increase RAM or not

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

El 22/10/14 a las 02:37, Nikhil Daddikar escibió:
> Folks,
>
> I have set about 12GB RAM (shared buffers) for our Postgresql
> instance. How do I know if this is actually being used? And is there a
> way to know by how much should I increase it, if it is not enough?
>
> Thanks.
>

That's a lot if you are using the latest version.

There are several links and blogs related on this, here you have some I found quickly:
http://rhaas.blogspot.com.es/2012/03/tuning-sharedbuffers-and-walbuffers.html

http://www.depesz.com/2012/06/09/how-much-ram-is-postgresql-using/

Try to filter those which are quite old if you don't want to mess up with configuration variables like max_fsm_pages, etc.

- --
- --
Emanuel Calvo http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services Bs. As., Argentina (GMT-3) -----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.18 (Darwin)
Comment: GPGTools - http://gpgtools.org

Here is couple great recent posts by Keith Fiske that help answering your question:

http://www.keithf4.com/a-small-database-does-not-mean-small-shared_buffers/

http://www.keithf4.com/a-large-database-does-not-mean-large-shared_buffers/#comment-945

Regards,
Igor Neyman

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Enrico Pirozzi 2014-10-22 15:18:03 Index scan vs indexonly scan method
Previous Message Emanuel Calvo 2014-10-22 14:39:08 Re: To increase RAM or not