Re: Add bump memory context type and use it for tuplesorts - Mailing list pgsql-hackers

From David Rowley
Subject Re: Add bump memory context type and use it for tuplesorts
Date
Msg-id CAApHDvr_hGT=kaP0YXbKSNZtbRX+6hUkieCWEn2BULwW1uTr_Q@mail.gmail.com
Whole thread Raw
In response to Re: Add bump memory context type and use it for tuplesorts  (David Rowley <dgrowleyml@gmail.com>)
Responses Re: Add bump memory context type and use it for tuplesorts
Re: Add bump memory context type and use it for tuplesorts
List pgsql-hackers
There've been a few changes to the memory allocators in the past week
and some of these changes also need to be applied to bump.c. So, I've
rebased the patches on top of today's master. See attached.

I also re-ran the performance tests to check the allocation
performance against the recently optimised aset, generation and slab
contexts.  The attached graph shows the time it took in seconds to
allocate 1GB of memory performing a context reset after 1MB. The
function I ran the test on is in the attached
pg_allocate_memory_test.patch.txt file.

The query I ran was:

select chksz,mtype,pg_allocate_memory_test_reset(chksz,
1024*1024,1024*1024*1024, mtype) from (values(8),(16),(32),(64))
sizes(chksz),(values('aset'),('generation'),('slab'),('bump'))
cxt(mtype) order by mtype,chksz;

David

Attachment

pgsql-hackers by date:

Previous
From: Richard Guo
Date:
Subject: Re: Support "Right Semi Join" plan shapes
Next
From: Richard Guo
Date:
Subject: Re: Support "Right Semi Join" plan shapes