pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Thomas Munro <thomas.munro@enterprisedb.com>
Cc: Marco Pfatschbacher <Marco_Pfatschbacher@genua.de>
Cc: Pg Hackers <pgsql-hackers@postgresql.org>
Subject: Re: PATCH: Keep one postmaster monitoring pipe per process
Date: Thu, 15 Sep 2016 16:40:00 -0400
Message-ID: <13774.1473972000@sss.pgh.pa.us> (raw)
In-Reply-To: <CAEepm=27K-2AP1th97kiVvKpTuria9ocbjT0cXCJqnt4if5rJQ@mail.gmail.com>
References: <20160915135755.GC19008@genua.de>
	<CAEepm=27K-2AP1th97kiVvKpTuria9ocbjT0cXCJqnt4if5rJQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Thomas Munro <thomas.munro@enterprisedb.com> writes:
> Very interesting.  Perhaps that is why NetBSD shows a speedup with the
> kqueue patch[1] but FreeBSD doesn't.  I guess that if I could get the
> kqueue patch to perform better on large FreeBSD systems, it would also
> be a solution to this problem.

I just noticed that kqueue appears to offer a solution to this problem,
ie one of the things you can wait for is exit of another process (named
by PID, looks like).  If that's portable to all kqueue platforms, then
integrating a substitute for the postmaster death pipe might push that
patch over the hump to being a net win.

			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



view thread (37+ messages)  latest in thread

Message-ID: <13774.1473972000@sss.pgh.pa.us>
Permalink:  ../13774.1473972000@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/13774.1473972000@sss.pgh.pa.us

 · 

reply

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-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, thomas.munro@enterprisedb.com, Marco_Pfatschbacher@genua.de
  Subject: Re: PATCH: Keep one postmaster monitoring pipe per process
  In-Reply-To: <13774.1473972000@sss.pgh.pa.us>
  References: <20160915135755.GC19008@genua.de> <CAEepm=27K-2AP1th97kiVvKpTuria9ocbjT0cXCJqnt4if5rJQ@mail.gmail.com> <13774.1473972000@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