pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Frank van Vugt <ftm.van.vugt@foxi.nl>
To: pgsql-bugs@postgresql.org
Cc: Stephen Frost <sfrost@snowman.net>
Cc: Valentine Gogichashvili <valgog@gmail.com>
Cc: ftm.van.vugt@foxi.nl
Subject: Re: array_agg() on a set larger than some arbitrary(?) limit causes runaway memory usage and eventually memory exhaustion
Date: Thu, 24 Oct 2013 11:12:43 +0200
Message-ID: <1450179.hff3dGHaxZ@techfox.foxi> (raw)
In-Reply-To: <20131021144726.GF2706@tamriel.snowman.net>
References: <3839201.Nfa2RvcheX@techfox.foxi>
	<2334937.gaPyc11YQv@techfox.foxi>
	<20131021144726.GF2706@tamriel.snowman.net>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Hi Stephen,

Op maandag 21 oktober 2013 10:47:26 schreef Stephen Frost:
> > In production, I use it wherever it's _really_ needed, but mind
> > that the oom-killer in newer kernels is already selecting processes
> > a bit smarter than it used to. In the example I gave,
> > the correct child process was killed.

> The correct child being killed doesn't actually mean that it's a *good
> idea* to kill off PG child processes, in general, particularly in the
> way that the OOM killer goes about it (kill -9).  If it was possible to
> tune the OOM killer to use a different signal, which would allow PG to
> actually clean things up, it *might* be reasonable to allow it, but I
> still wouldn't recommend it.
> 
> In production, for my part, proper memory accounting (and disabling of
> OOM) should *always* be used.

I did not describe this the way I should have, I meant to say that I do 
exactly that: disable the OOM-killer _always_ in a production situation since 
there it is _really_ needed.

I noticed on the development machine where I did the testing that the correct 
child process was being killed, which used to not be the case.


Thanks for emphasizing this, though.




-- 

Best,




Frank.



-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (15+ messages)  latest in thread

Message-ID: <1450179.hff3dGHaxZ@techfox.foxi>
Permalink:  ../1450179.hff3dGHaxZ@techfox.foxi/
Also on:    postgresql.org/message-id/1450179.hff3dGHaxZ@techfox.foxi

 · 

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-bugs@postgresql.org
  Cc: ftm.van.vugt@foxi.nl, sfrost@snowman.net, valgog@gmail.com
  Subject: Re: array_agg() on a set larger than some arbitrary(?) limit causes runaway memory usage and eventually memory exhaustion
  In-Reply-To: <1450179.hff3dGHaxZ@techfox.foxi>
  References: <3839201.Nfa2RvcheX@techfox.foxi> <2334937.gaPyc11YQv@techfox.foxi> <20131021144726.GF2706@tamriel.snowman.net> <1450179.hff3dGHaxZ@techfox.foxi>

* 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