From: Andrew Dunstan <andrew@dunslane.net>
To: jkr0103@gmail.com
To: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #18049: dynamic_shared_memory_type's value `posix` doesn't have any effect, syscall shm_get executes
Date: Fri, 4 Aug 2023 09:22:31 -0400
Message-ID: <3fd3eea4-3c03-3379-1ca1-d1f5d765d4d6@dunslane.net> (raw)
In-Reply-To: <18049-8a6848d6272247fc@postgresql.org>
References: <18049-8a6848d6272247fc@postgresql.org>
On 2023-08-04 Fr 01:22, PG Bug reporting form wrote:
> The following bug has been logged on the website:
>
> Bug reference: 18049
> Logged by: Jitender Kumar
> Email address:jkr0103@gmail.com
> PostgreSQL version: 12.1
> Operating system: ubuntu 20.04
> Description:
>
> Expected `shm_open` syscall for the `posix` value of
> `dynamic_shared_memory_type` parameter but strace shows `shm_get` being
> executed.
>
src/backend/port/sysv_shmem. says:
* As of PostgreSQL 9.3, we normally allocate only a very small amount of
* System V shared memory, and only for the purposes of providing an
* interlock to protect the data directory.
while src/backend/storage/ipc/dsm_impl.c says:
* This file provides low-level APIs for creating and destroying shared
* memory segments using several different possible techniques. We refer
* to these segments as dynamic because they can be created, altered, and
* destroyed at any point during the server life cycle. This is unlike
* the main shared memory segment, of which there is always exactly one
* and which is always mapped at a fixed address in every PostgreSQL
* background process.
So AIUI you should always see a call like this when Postgres starts.
cheers
andrew
--
Andrew Dunstan
EDB:https://www.enterprisedb.com
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: andrew@dunslane.net, jkr0103@gmail.com
Subject: Re: BUG #18049: dynamic_shared_memory_type's value `posix` doesn't have any effect, syscall shm_get executes
In-Reply-To: <3fd3eea4-3c03-3379-1ca1-d1f5d765d4d6@dunslane.net>
References: <18049-8a6848d6272247fc@postgresql.org> <3fd3eea4-3c03-3379-1ca1-d1f5d765d4d6@dunslane.net>
* 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