Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkut2-0007md-Dd for pgsql-hackers@arkaria.postgresql.org; Fri, 16 Sep 2016 15:17:08 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bkut1-00066T-W8 for pgsql-hackers@arkaria.postgresql.org; Fri, 16 Sep 2016 15:17:08 +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 1bknrH-0007S2-6H for pgsql-hackers@postgresql.org; Fri, 16 Sep 2016 07:46:51 +0000 Received: from gg6-2.genua.de ([2001:a60:f08e:c000::2] helo=gg.genua.de) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bknrE-0006bq-RF for pgsql-hackers@postgresql.org; Fri, 16 Sep 2016 07:46:49 +0000 Received: from gg.genua.de (localhost [127.0.0.1]) by gg.genua.de (Postfix) with ESMTP id 3BB467AE937 for ; Fri, 16 Sep 2016 09:46:45 +0200 (CEST) Received: (from localhost) by gg.genua.de (MSCAN) id 4/gg.genua.de/smtp-gw/mscan; Fri Sep 16 09:46:45 2016 Date: Fri, 16 Sep 2016 09:46:43 +0200 From: Marco Pfatschbacher To: Tom Lane Cc: Thomas Munro , Pg Hackers Subject: Re: PATCH: Keep one postmaster monitoring pipe per process Message-ID: <20160916074642.GB15576@genua.de> References: <20160915135755.GC19008@genua.de> <13774.1473972000@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <13774.1473972000@sss.pgh.pa.us> Organization: genua Gmbh User-Agent: Mutt/1.5.21 (2010-09-15) 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 On Thu, Sep 15, 2016 at 04:40:00PM -0400, Tom Lane wrote: > 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. That sounds plausible. I could give this a try after I get back from my vacation :) Marco -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers