Re: Best practices for data buffer cache setting/tuning (v15)

From: Christophe Pettus <xof(at)thebuild(dot)com>
To: David Gauthier <dfgpostgres(at)gmail(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Best practices for data buffer cache setting/tuning (v15)
Date: 2024-01-29 21:46:30
Message-ID: 8D24CE5D-16B2-4962-A741-7C5CAD54FAC5@thebuild.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> On Jan 29, 2024, at 11:39, David Gauthier <dfgpostgres(at)gmail(dot)com> wrote:
>
> Is there a document which makes recommendations on sizing data buffer cache, tuning options which evict old/unused data in mem, and cache fragmentation avoidance for a v15.3 DB ?

On any modern system, set shared_buffers to 25% of instance RAM, and get on with life.

I realize that seems glib, but small variations in shared_buffers make almost no significant difference in performance. There are unusual workloads (like very high insert rate with few queries) that require different settings, but for most typical ELTP or data warehouse workloads, that is sufficient.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Klaus Darilion 2024-01-29 23:01:26 Re: What should I expect when creating many logical replication slots?
Previous Message Alan Hodgson 2024-01-29 21:12:09 Re: Seeking help extricating data from Amazon RDS Aurora/Postgres