From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alex Hunsaker <badalex@gmail.com>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: Back-patch use of unnamed POSIX semaphores for Linux?
Date: Wed, 07 Dec 2016 17:42:52 -0500
Message-ID: <32665.1481150572@sss.pgh.pa.us> (raw)
In-Reply-To: <CAFaPBrTFYV_mJyAMU0UY+vSz6KcQmzoD2va02nOD+GL9Uty-sw@mail.gmail.com>
References: <32387.1481079186@sss.pgh.pa.us>
<CA+TgmoYU=Pr2A805tYLNVd4qFVKNfpYXJRRWq-YcU5bL2cdO8w@mail.gmail.com>
<4886.1481086483@sss.pgh.pa.us>
<CA+Tgmobz3KBoZ_3oDHx7zEM8QR9KpgcxPg_wRd8khB33oCKvZA@mail.gmail.com>
<27282.1481141564@sss.pgh.pa.us>
<CAFaPBrTFYV_mJyAMU0UY+vSz6KcQmzoD2va02nOD+GL9Uty-sw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
Alex Hunsaker <badalex@gmail.com> writes:
> On Wed, Dec 7, 2016 at 1:12 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> But this is all kind of moot if Peter is right that systemd will zap
>> POSIX shmem along with SysV semaphores. I've been trying to reproduce
>> the issue on a Fedora 25 installation, and so far I can't get it to
>> zap anything, so I'm a bit at a loss how to prove things one way or
>> the other.
> After logon, you should see "/usr/lib/systemd/systemd --user" running for
> that user. After logout out, said proc should exit.
Hmm ... after further experimentation, I still can't get this version of
systemd (231) to do anything evil. It turns out that Fedora ships it with
KillUserProcesses turned off by default, and maybe having that on is a
prerequisite for the other behavior? But that doesn't make a lot of sense
because we'd never be seeing the reports of databases moaning about lost
semaphores if the processes got killed first. Anyway, I see nothing bad
happening if KillUserProcesses is off, while if it's on then the database
gets shut down reasonably politely via SIGTERM.
Color me confused ... maybe systemd's behavior has changed?
regards, tom lane
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
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-hackers@postgresql.org
Cc: tgl@sss.pgh.pa.us, badalex@gmail.com, robertmhaas@gmail.com
Subject: Re: Back-patch use of unnamed POSIX semaphores for Linux?
In-Reply-To: <32665.1481150572@sss.pgh.pa.us>
* 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