Re: Add the ability to limit the amount of memory that can be allocated to backends. - Mailing list pgsql-hackers

From Reid Thompson
Subject Re: Add the ability to limit the amount of memory that can be allocated to backends.
Date
Msg-id ed95f763d13e7c5d7198b7bd6def23f39e909fcf.camel@crunchydata.com
Whole thread Raw
In response to Re: Add the ability to limit the amount of memory that can be allocated to backends.  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
Regarding the shared counter noted here,

> What you could do is to have a single, imprecise, shared counter for the total
> memory allocation, and have a backend-local "allowance". When the allowance is
> used up, refill it from the shared counter (a single atomic op).

Is there a preferred or suggested location to put variables like this?
Perhaps a current variable to use as a reference?

Thanks,
Reid




pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Error "initial slot snapshot too large" in create replication slot
Next
From: Alvaro Herrera
Date:
Subject: Re: Improve logging when using Huge Pages