Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k7NQb-0004qy-FZ for pgsql-hackers@arkaria.postgresql.org; Sun, 16 Aug 2020 18:30:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1k7NQa-0006uv-9F for pgsql-hackers@arkaria.postgresql.org; Sun, 16 Aug 2020 18:30:44 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k7NQa-0006uo-26 for pgsql-hackers@lists.postgresql.org; Sun, 16 Aug 2020 18:30:44 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k7NQU-0005QL-06; Sun, 16 Aug 2020 18:30:43 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 07GIUOt21006918; Sun, 16 Aug 2020 14:30:24 -0400 From: Tom Lane To: Andres Freund cc: Robert Haas , Thomas Munro , Alvaro Herrera , Daniel Gustafsson , "Jonathan S. Katz" , Alexander Korotkov , PostgreSQL Hackers , Peter Geoghegan , Bruce Momjian , David Rowley Subject: Re: Improving connection scalability: GetSnapshotData() In-reply-to: <20200816181604.l54m6kss5ntd6xow@alap3.anarazel.de> References: <20200716012532.lfzpvg3w55d5rqrw@alap3.anarazel.de> <20200716013306.GA13861@alvherre.pgsql> <20200724011143.jccsyvsvymuiqfxu@alap3.anarazel.de> <20200812001938.ixenvxdpg4ielbue@alap3.anarazel.de> <20200812173855.s4co5jz67z7tlnl7@alap3.anarazel.de> <872191.1597504251@sss.pgh.pa.us> <20200815164200.drok4tt5ju7ijivf@alap3.anarazel.de> <20200816181604.l54m6kss5ntd6xow@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Sun, 16 Aug 2020 11:16:04 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1006916.1597602624.1@sss.pgh.pa.us> Date: Sun, 16 Aug 2020 14:30:24 -0400 Message-ID: <1006917.1597602624@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andres Freund writes: > 690 successful runs later, it didn't trigger for me :(. Seems pretty > clear that there's another variable than pure chance, otherwise it seems > like that number of runs should have hit the issue, given the number of > bf hits vs bf runs. It seems entirely likely that there's a timing component in this, for instance autovacuum coming along at just the right time. It's not too surprising that some machines would be more prone to show that than others. (Note peripatus is FreeBSD, which we've already learned has significantly different kernel scheduler behavior than Linux.) > My current plan would is to push a bit of additional instrumentation to > help narrow down the issue. +1 regards, tom lane