Re: RAM usage of PostgreSql

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: Prasad <prasadnine(at)gmail(dot)com>, pgsql-novice(at)postgresql(dot)org, pgsql-performance(at)postgresql(dot)org
Subject: Re: RAM usage of PostgreSql
Date: 2019-04-04 18:08:05
Message-ID: 9afedaac3acc429b8fe98a8d827036f8b893a5fb.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice pgsql-performance

Prasad wrote:
> I have installed PostgreSQL 9.4 (open source) version on my CentOS
> Linux Red Hat 7 production server and kept default parameters which
> are in postgresql.conf file.So my basic question is, once I start
> using postgres how much RAM the postgres processes consumes
> (postgres related processes only).
>
> There are lot of allocations in postgresql.conf file, for example
> shared_buffers, work_mem...etc.
>
> As per my knowledge, all postgres processes should not consume the
> RAM more than the value assigned in shared_buffers.Please clarify
> and let me know if I misunderstand the concept..

shared_buffers only determines the shared memory cache, each database
process still needs private memory.

As a rule of thumb, start with shared_buffers set to 1/4 of your
available RAM, but no more than 8GB.

Yours,
Laurenz Albe
--
Cybertec | https://www.cybertec-postgresql.com

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Keith 2019-04-04 18:09:56 Re: RAM usage of PostgreSql
Previous Message Justin Pryzby 2019-04-04 17:46:30 Re: RAM usage of PostgreSql

Browse pgsql-performance by date

  From Date Subject
Next Message Keith 2019-04-04 18:09:56 Re: RAM usage of PostgreSql
Previous Message Rijo Roy 2019-04-04 18:03:44 Re: monitoring options for postgresql under AWS/RDS?