Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkdTQ-0002Fw-Hz for pgsql-hackers@arkaria.postgresql.org; Thu, 15 Sep 2016 20:41:32 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bkdTP-0004ii-Uj for pgsql-hackers@arkaria.postgresql.org; Thu, 15 Sep 2016 20:41:31 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bkdS2-00036d-73 for pgsql-hackers@postgresql.org; Thu, 15 Sep 2016 20:40:06 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bkdRz-0001zA-NV for pgsql-hackers@postgresql.org; Thu, 15 Sep 2016 20:40:04 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u8FKe01H013775; Thu, 15 Sep 2016 16:40:00 -0400 From: Tom Lane To: Thomas Munro cc: Marco Pfatschbacher , Pg Hackers Subject: Re: PATCH: Keep one postmaster monitoring pipe per process In-reply-to: References: <20160915135755.GC19008@genua.de> Comments: In-reply-to Thomas Munro message dated "Fri, 16 Sep 2016 07:29:56 +1200" Date: Thu, 15 Sep 2016 16:40:00 -0400 Message-ID: <13774.1473972000@sss.pgh.pa.us> X-Pg-Spam-Score: -4.2 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Thomas Munro 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