From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Jeremy Finzel <finzelj@gmail.com>
Cc: PostgreSQL General <pgsql-general@lists.postgresql.org>
Subject: Re: Size estimation of postgres core files
Date: Fri, 15 Feb 2019 13:36:55 -0300
Message-ID: <20190215163655.GA16325@alvherre.pgsql> (raw)
In-Reply-To: <CAMa1XUgzVPRs9TiEm_sotK3ZNR_oUZWO183NP1RMKOkt6T2-zA@mail.gmail.com>
On 2019-Feb-15, Jeremy Finzel wrote:
> I am trying to determine the upper size limit of a core file generated for
> any given cluster. Is it feasible that it could actually be the entire
> size of the system memory + shared buffers (i.e. really huge)?
In Linux, yes. Not sure about other OSes.
You can turn off the dumping of shared memory with some unusably
unfriendly bitwise arithmetic using the "coredump_filter" file in /proc
for the process. (It's inherited by children, so you can just set it
once for postmaster at server start time).
--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
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: alvherre@2ndquadrant.com, finzelj@gmail.com
Subject: Re: Size estimation of postgres core files
In-Reply-To: <20190215163655.GA16325@alvherre.pgsql>
References: <CAMa1XUgzVPRs9TiEm_sotK3ZNR_oUZWO183NP1RMKOkt6T2-zA@mail.gmail.com> <20190215163655.GA16325@alvherre.pgsql>
* 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