Re: rethinking dense_alloc (HashJoin) as a memory context - Mailing list pgsql-hackers

From Andres Freund
Subject Re: rethinking dense_alloc (HashJoin) as a memory context
Date
Msg-id 20160713174418.sygesihmyc3upjyh@alap3.anarazel.de
Whole thread Raw
In response to Re: rethinking dense_alloc (HashJoin) as a memory context  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: rethinking dense_alloc (HashJoin) as a memory context  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On 2016-07-13 13:37:55 -0400, Tom Lane wrote:
> I wonder though if we don't already have another similar use-case in
> the ad-hoc "slab allocators" in reorderbuffer.c.

That seems to call more for a general slab allocator design, than for
something like here. After all, there's plenty of freeing ther.e

> We already know that
> that code has performance issues, cf bug #14231, so I suspect there's
> a redesign in its future anyway.

Note that it's not the slab allocators that is having problems, it's
aset.c, iterating through all allocated blocks.

Andres



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: rethinking dense_alloc (HashJoin) as a memory context
Next
From: Andres Freund
Date:
Subject: Re: Re: [COMMITTERS] pgsql: Avoid extra locks in GetSnapshotData if old_snapshot_threshold <