Re: Built-in support for a memory consumption ulimit? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Built-in support for a memory consumption ulimit?
Date
Msg-id 28340.1403065807@sss.pgh.pa.us
Whole thread Raw
In response to Re: Built-in support for a memory consumption ulimit?  (Amit Kapila <amit.kapila16@gmail.com>)
Responses Re: Built-in support for a memory consumption ulimit?  (Amit Kapila <amit.kapila16@gmail.com>)
List pgsql-hackers
Amit Kapila <amit.kapila16@gmail.com> writes:
> On Wed, Jun 18, 2014 at 2:09 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> On the other hand, this approach would entirely fail to account for
>> non-palloc'd allocations, which could be a significant issue in some
>> contexts.

> Won't it be possible if we convert malloc calls in backend code to
> go through wrapper, we already have some precedents of same like
> guc_malloc, pg_malloc?

We do not have control over mallocs done by third-party code
(think pl/perl for example).  mallocs done by our own code are
fairly insignificant, I would hope.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Abhijit Menon-Sen
Date:
Subject: Re: postgresql.auto.conf read from wrong directory
Next
From: Mitsumasa KONDO
Date:
Subject: Re: gaussian distribution pgbench