Re: Add GUC to tune glibc's malloc implementation. - Mailing list pgsql-hackers

From Daniel Gustafsson
Subject Re: Add GUC to tune glibc's malloc implementation.
Date
Msg-id C1E62E81-BC8C-4549-998F-7E5C561EAAE3@yesql.se
Whole thread Raw
In response to Re: Add GUC to tune glibc's malloc implementation.  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
> On 29 Jun 2023, at 00:31, Andres Freund <andres@anarazel.de> wrote:
> On 2023-06-28 07:26:03 +0200, Ronan Dunklau wrote:
>> I see it as a way to have *some* sort of control over the malloc
>> implementation we use, instead of tuning our allocations pattern on top of it
>> while treating it entirely as a black box. As for the tuning, I proposed
>> earlier to replace this parameter expressed in terms of size as a "profile"
>> (greedy / conservative) to make it easier to pick a sensible value.
>
> I don't think that makes it very usable - we'll still have idle connections
> use up a lot more memory than now in some cases, and not in others, even
> though it doesn't help. And it will be very heavily dependent on the OS and
> glibc version.

Based on the comments in this thread and that no update has been posted
addressing the objections I will mark this returned with feedback.  Please feel
free to resubmit to a future CF.

--
Daniel Gustafsson




pgsql-hackers by date:

Previous
From: Daniel Gustafsson
Date:
Subject: Re: explain analyze rows=%.0f
Next
From: Daniel Gustafsson
Date:
Subject: Re: bug: ANALYZE progress report with inheritance tables