Built-in support for a memory consumption ulimit?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-hackers(at)postgreSQL(dot)org
Subject: Built-in support for a memory consumption ulimit?
Date: 2014-06-14 14:37:36
Message-ID: 6364.1402756656@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

After giving somebody advice, for the Nth time, to install a
memory-consumption ulimit instead of leaving his database to the tender
mercies of the Linux OOM killer, it occurred to me to wonder why we don't
provide a built-in feature for that, comparable to the "ulimit -c max"
option that already exists in pg_ctl. A reasonably low-overhead way
to do that would be to define it as something a backend process sets
once at startup, if told to by a GUC. The GUC could possibly be
PGC_BACKEND level though I'm not sure if we want unprivileged users
messing with it.

Thoughts?

regards, tom lane

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2014-06-14 18:43:50 Re: WAL format and API changes (9.5)
Previous Message Heikki Linnakangas 2014-06-14 08:04:43 Re: WAL format and API changes (9.5)