Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rt49u-00BqGQ-1T for pgsql-hackers@arkaria.postgresql.org; Sat, 06 Apr 2024 11:24:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rt49t-00BPsL-4A for pgsql-hackers@arkaria.postgresql.org; Sat, 06 Apr 2024 11:24:29 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rt49s-00BPsD-MS for pgsql-hackers@lists.postgresql.org; Sat, 06 Apr 2024 11:24:28 +0000 Received: from forwardcorp1c.mail.yandex.net ([2a02:6b8:c03:500:1:45:d181:df01]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rt49k-00155q-Dn for pgsql-hackers@postgresql.org; Sat, 06 Apr 2024 11:24:27 +0000 Received: from mail-nwsmtp-smtp-corp-main-62.myt.yp-c.yandex.net (mail-nwsmtp-smtp-corp-main-62.myt.yp-c.yandex.net [IPv6:2a02:6b8:c12:3b00:0:640:c3c9:0]) by forwardcorp1c.mail.yandex.net (Yandex) with ESMTPS id B564A60B6E; Sat, 6 Apr 2024 14:24:15 +0300 (MSK) Received: from smtpclient.apple (unknown [2a02:6b8:b081:b40c::1:2d]) by mail-nwsmtp-smtp-corp-main-62.myt.yp-c.yandex.net (smtpcorp/Yandex) with ESMTPSA id DOUK2f0IZGk0-b2T2TzGp; Sat, 06 Apr 2024 14:24:15 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex-team.ru; s=default; t=1712402655; bh=fLz5Z52qMAwOvcBT6b5TS0GDx4AnHVc6bJQ1PXTBEz8=; h=Message-Id:To:Date:References:Cc:In-Reply-To:From:Subject; b=PfjWfk4tQF3W1g94qSGl+7rfnoAKFWIdZd+0TM4bZKIQWQRjI3ylS/JDI/an1e5z3 RxbrFoiW5FCaaalS8dMTDkHPafikOhc0Ddrl5ARnIptQq0hookZjeJdoOIo5ey+JQu SDBUN3fcrE65HOj9IjcqhGxrM0yiDyVaaGAvyqdw= Authentication-Results: mail-nwsmtp-smtp-corp-main-62.myt.yp-c.yandex.net; dkim=pass header.i=@yandex-team.ru Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.8\)) Subject: Re: MultiXact\SLRU buffers configuration From: "Andrey M. Borodin" In-Reply-To: <20240229.105944.773077833314087742.horikyota.ntt@gmail.com> Date: Sat, 6 Apr 2024 16:24:12 +0500 Cc: Alvaro Herrera , vignesh C , Andrew Borodin , i.lazarev@postgrespro.ru, Yura Sokolov , Andres Freund , Thomas Munro , gilles@darold.net, tomas.vondra@enterprisedb.com, tomas.vondra@2ndquadrant.com, aekorotkov@gmail.com, a.lubennikova@postgrespro.ru, daniel@yesql.se, pgsql-hackers@postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: <8401378F-62C2-4E5D-A2AC-F8C8B7D2FF5B@yandex-team.ru> References: <202401281249.u6ham26mbjav@alvherre.pgsql> <0925F9A9-4D53-4B27-A87E-3D83A757B0E0@yandex-team.ru> <20240229.105944.773077833314087742.horikyota.ntt@gmail.com> To: Kyotaro Horiguchi X-Mailer: Apple Mail (2.3696.120.41.1.8) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On 29 Feb 2024, at 06:59, Kyotaro Horiguchi = wrote: >=20 > At Sat, 3 Feb 2024 22:32:45 +0500, "Andrey M. Borodin" = wrote in=20 >> Here's the test draft. This test reliably reproduces sleep on CV when = waiting next multixact to be filled into "members" SLRU. >=20 > By the way, I raised a question about using multiple CVs > simultaneously [1]. That is, I suspect that the current CV > implementation doesn't allow us to use multiple condition variables at > the same time, because all CVs use the same PCPROC member cvWaitLink > to accommodate different waiter sets. If this assumption is correct, > we should resolve the issue before spreading more uses of CVs. Alvaro, Kyotaro, what's our plan for this? It seems to late to deal with this pg_usleep(1000L) for PG17. I propose following course of action 1. Close this long-standing CF item 2. Start new thread with CV-sleep patch aimed at PG18 3. Create new entry in July CF What do you think? Best regards, Andrey Borodin.=