From: Simon Riggs <simon@2ndQuadrant.com>
To: pgsql-committers@postgresql.org
Subject: pgsql: Generational memory allocator
Date: Wed, 22 Nov 2017 18:48:19 +0000
Message-ID: <E1eHa4J-0006hI-Q8@gemulon.postgresql.org> (raw)
Generational memory allocator
Add new style of memory allocator, known as Generational
appropriate for use in cases where memory is allocated
and then freed in roughly oldest first order (FIFO).
Use new allocator for logical decoding’s reorderbuffer
to significantly reduce memory usage and improve performance.
Author: Tomas Vondra
Reviewed-by: Simon Riggs
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/a4ccc1cef5a04cc054af83bc4582a045d5232cb3
Modified Files
--------------
src/backend/replication/logical/reorderbuffer.c | 80 +--
src/backend/utils/mmgr/Makefile | 2 +-
src/backend/utils/mmgr/README | 23 +
src/backend/utils/mmgr/generation.c | 768 ++++++++++++++++++++++++
src/include/nodes/memnodes.h | 4 +-
src/include/nodes/nodes.h | 1 +
src/include/replication/reorderbuffer.h | 15 +-
src/include/utils/memutils.h | 5 +
8 files changed, 819 insertions(+), 79 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-committers@postgresql.org
Cc: simon@2ndQuadrant.com
Subject: Re: pgsql: Generational memory allocator
In-Reply-To: <E1eHa4J-0006hI-Q8@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox