| From: | Reid Thompson <reid(dot)thompson(at)crunchydata(dot)com> | 
|---|---|
| To: | Andres Freund <andres(at)anarazel(dot)de> | 
| Cc: | reid(dot)thompson(at)crunchydata(dot)com, vignesh C <vignesh21(at)gmail(dot)com>, Arne Roland <A(dot)Roland(at)index(dot)de>, "pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Justin Pryzby <pryzby(at)telsasoft(dot)com>, Ibrar Ahmed <ibrar(dot)ahmad(at)gmail(dot)com> | 
| Subject: | Re: Add the ability to limit the amount of memory that can be allocated to backends. | 
| Date: | 2023-01-26 20:27:20 | 
| Message-ID: | 9b5226bf88ed5f09c7ae589a11c8fd147854eb98.camel@crunchydata.com | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-hackers | 
On Mon, 2023-01-23 at 12:31 -0800, Andres Freund wrote:
> Hi,
> 
> I think it's basically still waiting on author, until the O(N) cost is gone
> from the overflow limit check.
> 
> Greetings,
> 
> Andres Freund
Yes, just a rebase. There is still work to be done per earlier in the
thread.
I do want to follow up and note re palloc/pfree vs malloc/free that the
tracking code (0001-Add-tracking-...) is not tracking palloc/pfree but is
explicitely tracking malloc/free. Not every palloc/pfree call executes the
tracking code, only those where the path followed includes malloc() or
free().  Routine palloc() calls fulfilled from the context's
freelist/emptyblocks/freeblock/etc and pfree() calls not invoking free()
avoid the tracking code.
Thanks,
Reid
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Peter Geoghegan | 2023-01-26 20:32:01 | Re: New strategies for freezing, advancing relfrozenxid early | 
| Previous Message | Nathan Bossart | 2023-01-26 20:23:01 | Re: suppressing useless wakeups in logical/worker.c |