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 1jqxvX-0007TP-5V for pgsql-hackers@arkaria.postgresql.org; Thu, 02 Jul 2020 12:02:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jqxvV-0004Hn-VS for pgsql-hackers@arkaria.postgresql.org; Thu, 02 Jul 2020 12:02:49 +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 1jqxvV-0004Hf-ON for pgsql-hackers@lists.postgresql.org; Thu, 02 Jul 2020 12:02:49 +0000 Received: from smtp.outgoing.loopia.se ([93.188.3.37]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jqxvT-0001Di-Pv for pgsql-hackers@postgresql.org; Thu, 02 Jul 2020 12:02:49 +0000 Received: from s807.loopia.se (localhost [127.0.0.1]) by s807.loopia.se (Postfix) with ESMTP id DD1B5309FD46 for ; Thu, 2 Jul 2020 14:02:46 +0200 (CEST) Received: from s645.loopia.se (unknown [172.22.191.5]) by s807.loopia.se (Postfix) with ESMTP id 7930F2E2893A; Thu, 2 Jul 2020 14:02:46 +0200 (CEST) Received: from s476.loopia.se (unknown [172.22.191.6]) by s645.loopia.se (Postfix) with ESMTP id 597D4156E5F9; Thu, 2 Jul 2020 14:02:46 +0200 (CEST) X-Virus-Scanned: amavisd-new at amavis.loopia.se X-Spam-Flag: NO X-Spam-Score: -1 X-Spam-Level: X-Spam-Status: No, score=-1 tagged_above=-999 required=6.2 tests=[ALL_TRUSTED=-1] autolearn=disabled Received: from s630.loopia.se ([172.22.191.6]) by s476.loopia.se (s476.loopia.se [172.22.190.16]) (amavisd-new, port 10024) with UTF8LMTP id yzIMg3ooTgGl; Thu, 2 Jul 2020 14:02:45 +0200 (CEST) X-Loopia-Auth: user X-Loopia-User: daniel@yesql.se X-Loopia-Originating-IP: 94.234.33.184 Received: from [192.168.1.100] (unknown [94.234.33.184]) (Authenticated sender: daniel@yesql.se) by s630.loopia.se (Postfix) with ESMTPSA id A401B13ABF83; Thu, 2 Jul 2020 14:02:45 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.14\)) Subject: Re: MultiXact\SLRU buffers configuration From: Daniel Gustafsson In-Reply-To: <20200515.090333.24867479329066911.horikyota.ntt@gmail.com> Date: Thu, 2 Jul 2020 14:02:45 +0200 Cc: x4mmm@yandex-team.ru, pgsql-hackers@postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <3B099683-ECCD-43CD-A3D6-F08C3745002A@yandex-team.ru> <20200514.151659.1224056315528271804.horikyota.ntt@gmail.com> <102F673B-C9C5-4823-A92F-96799FC61ED0@yandex-team.ru> <20200515.090333.24867479329066911.horikyota.ntt@gmail.com> To: Kyotaro Horiguchi X-Mailer: Apple Mail (2.3445.104.14) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > On 15 May 2020, at 02:03, Kyotaro Horiguchi = wrote: > Generally in such cases, condition variables would work. In the > attached PoC, the reader side gets no penalty in the "likely" code > path. The writer side always calls ConditionVariableBroadcast but the > waiter list is empty in almost all cases. But I couldn't cause the > situation where the sleep 1000u is reached. The submitted patch no longer applies, can you please submit an updated version? I'm marking the patch Waiting on Author in the meantime. cheers ./daniel=