From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: David Pacheco <dap@joyent.com>
Cc: pgsql-general@postgresql.org
Subject: Re: postmaster deadlock while logging after syslogger exited
Date: Thu, 16 Nov 2017 22:06:23 -0500
Message-ID: <23680.1510887983@sss.pgh.pa.us> (raw)
In-Reply-To: <20171117025438.vjvgmrrnkpnojleq@alap3.anarazel.de>
References: <CACukRjOaR2_DY2tLzPe-ZJUActf8RcZ=r1HimQxFgYBy++aR8Q@mail.gmail.com>
<19239.1510000503@sss.pgh.pa.us>
<20171117015040.m36ovf5dqtg3star@alap3.anarazel.de>
<22373.1510886389@sss.pgh.pa.us>
<20171117025438.vjvgmrrnkpnojleq@alap3.anarazel.de>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>
Andres Freund <andres@anarazel.de> writes:
> On 2017-11-16 21:39:49 -0500, Tom Lane wrote:
>> What might be worth thinking about is allowing the syslogger process to
>> inherit the postmaster's OOM-kill-proofness setting, instead of dropping
>> down to the same vulnerability as the postmaster's other child processes.
> Hm. I'm a bit scared about that - it doesn't seem that inconceivable
> that various backends log humongous multi-line messages, leading to
> syslogger *actually* taking up a fair amount of memory. Note that we're
> using plain stringinfos that ereport(ERROR) out of memory situations,
> rather than failing more gracefully.
True, but there's no hard limits on the postmaster's memory consumption
either ... and if the syslogger does get killed on such a basis, we have
at the least lost a bunch of log output. On the whole I think we'd be
better off trying to prevent OOM kills on the syslogger. (That doesn't
preclude other mitigation measures.)
regards, tom lane
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
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, andres@anarazel.de, dap@joyent.com
Subject: Re: postmaster deadlock while logging after syslogger exited
In-Reply-To: <23680.1510887983@sss.pgh.pa.us>
References: <CACukRjOaR2_DY2tLzPe-ZJUActf8RcZ=r1HimQxFgYBy++aR8Q@mail.gmail.com> <19239.1510000503@sss.pgh.pa.us> <20171117015040.m36ovf5dqtg3star@alap3.anarazel.de> <22373.1510886389@sss.pgh.pa.us> <20171117025438.vjvgmrrnkpnojleq@alap3.anarazel.de> <23680.1510887983@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