Skip site navigation (1) Skip section navigation (2)

pgsql: Dramatically reduce System V shared memory consumption.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Dramatically reduce System V shared memory consumption.
Date: 2012-06-28 15:25:59
Message-ID: E1SkGbX-00075z-AP@gemulon.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Dramatically reduce System V shared memory consumption.

Except when compiling with EXEC_BACKEND, we'll now allocate only a tiny
amount of System V shared memory (as an interlock to protect the data
directory) and allocate the rest as anonymous shared memory via mmap.
This will hopefully spare most users the hassle of adjusting operating
system parameters before being able to start PostgreSQL with a
reasonable value for shared_buffers.

There are a bunch of documentation updates needed here, and we might
need to adjust some of the HINT messages related to shared memory as
well.  But it's not 100% clear how portable this is, so before we
write the documentation, let's give it a spin on the buildfarm and
see what turns red.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/b0fc0df9364d2d2d17c0162cf3b8b59f6cb09f67

Modified Files
--------------
src/backend/port/sysv_shmem.c |   89 +++++++++++++++++++++++++++++++++++++++-
1 files changed, 86 insertions(+), 3 deletions(-)

Responses

pgsql-committers by date

Next:From: Alvaro HerreraDate: 2012-06-28 15:58:28
Subject: Re: pgsql: Fix install program detection
Previous:From: Robert HaasDate: 2012-06-28 12:16:04
Subject: pgsql: Add missing space in event_source GUC description.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group