pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Rébeli-Szabó Tamás <t@rblst.info>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: How to calculate shared memory size
Date: Tue, 15 Sep 2020 10:49:15 -0400
Message-ID: <1293241.1600181355@sss.pgh.pa.us> (raw)
In-Reply-To: <cdaa511e1909ef15b2d8f86aa4330a9b@rblst.info>
References: <cdaa511e1909ef15b2d8f86aa4330a9b@rblst.info>

=?UTF-8?Q?R=C3=A9beli-Szab=C3=B3_Tam=C3=A1s?= <t@rblst.info> writes:
> I want to do a proper calculation of the number of huge pages needed for 
> PostgreSQL to start.
> For that I need to know how much shared memory will be allocated at 
> startup.

TBH, the only method that's not going to break over time is
"start the server with the parameters you want, and look to
see how big the shmem segment is".

We used to have an approximate formula in the documentation,
but we took it out years ago because it was constantly out of date.

			regards, tom lane





view thread (3+ messages)

Message-ID: <1293241.1600181355@sss.pgh.pa.us>
Permalink:  ../1293241.1600181355@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1293241.1600181355@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, t@rblst.info
  Subject: Re: How to calculate shared memory size
  In-Reply-To: <1293241.1600181355@sss.pgh.pa.us>
  References: <cdaa511e1909ef15b2d8f86aa4330a9b@rblst.info> <1293241.1600181355@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox