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 1lSmOm-0001wz-Hz for pgsql-hackers@arkaria.postgresql.org; Sat, 03 Apr 2021 19:57:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lSmOl-0006FR-69 for pgsql-hackers@arkaria.postgresql.org; Sat, 03 Apr 2021 19:57:35 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lSmOk-0006FJ-Rq for pgsql-hackers@lists.postgresql.org; Sat, 03 Apr 2021 19:57:34 +0000 Received: from forwardcorp1p.mail.yandex.net ([2a02:6b8:0:1472:2741:0:8b6:217]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lSmOg-0002kT-PU for pgsql-hackers@postgresql.org; Sat, 03 Apr 2021 19:57:33 +0000 Received: from vla1-fdfb804fb3f3.qloud-c.yandex.net (vla1-fdfb804fb3f3.qloud-c.yandex.net [IPv6:2a02:6b8:c0d:3199:0:640:fdfb:804f]) by forwardcorp1p.mail.yandex.net (Yandex) with ESMTP id BC7572E1647; Sat, 3 Apr 2021 22:57:25 +0300 (MSK) Received: from vla1-81430ab5870b.qloud-c.yandex.net (vla1-81430ab5870b.qloud-c.yandex.net [2a02:6b8:c0d:35a1:0:640:8143:ab5]) by vla1-fdfb804fb3f3.qloud-c.yandex.net (mxbackcorp/Yandex) with ESMTP id zxXrzGpGWK-vP1uB7Rt; Sat, 03 Apr 2021 22:57:25 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex-team.ru; s=default; t=1617479845; bh=rQQ7z4Pmmv43fEQeYxI7rJmq09BWuRKqz6SWz/BHwEI=; h=To:Message-Id:References:Date:Subject:Cc:In-Reply-To:From; b=MrW4i5gc/2Tfnwj++eOIuIhGeEGhZL9cwkzczf3wzSZglsSYnmvxGMBM1w4tcM7AR U+sCBo6nmwnwiRo9VnPOIeaznVVUH+qgnwyMugMhlVhtxgoerGjeSGbvyN2nX1ZKcf +LpsNNkqSlKUu8BkSFx8PG74fTZ9TmAOxXdg3ggo= Authentication-Results: vla1-fdfb804fb3f3.qloud-c.yandex.net; dkim=pass header.i=@yandex-team.ru Received: from dynamic-vpn.dhcp.yndx.net (dynamic-vpn.dhcp.yndx.net [2a02:6b8:b080:8310::1:1c]) by vla1-81430ab5870b.qloud-c.yandex.net (smtpcorp/Yandex) with ESMTPSA id jsjRM65tJQ-vOpqunNI; Sat, 03 Apr 2021 22:57:25 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Subject: Re: MultiXact\SLRU buffers configuration From: Andrey Borodin In-Reply-To: Date: Sat, 3 Apr 2021 22:57:23 +0300 Cc: Gilles Darold , Tomas Vondra , Tomas Vondra , Alexander Korotkov , Anastasia Lubennikova , Daniel Gustafsson , Kyotaro Horiguchi , pgsql-hackers Content-Transfer-Encoding: quoted-printable Message-Id: <27D90FFC-B897-4BC5-B4F5-9047B9886AA3@yandex-team.ru> References: <20201028013651.de5cj2xadgmba5nf@development> <13D8FD63-559A-4737-B7FD-05288D1CEF8B@yandex-team.ru> <20201028233243.ygm6yqlynkqpzekr@development> <43F3DE92-F236-4EA5-B4D6-39BEF6BD849D@yandex-team.ru> <20201029134933.xd4mh2cofuf6tdfz@development> <65C1B4BA-D16F-4939-978B-AC8F370F5A5E@yandex-team.ru> <9b4d17df-b811-8323-16be-3cab913216d1@enterprisedb.com> <35862787-8b4d-a290-789e-6e12dc6527e8@enterprisedb.com> <13F86913-C01B-4983-AE2E-493F5A028280@yandex-team.ru> <6ba7eae2-8b0c-0690-11a5-e921e6586180@darold.net> <3F5E23A3-6250-486E-9CCA-E2A5B6A28B4F@yandex-team.ru> <636f694a-4d69-d6d9-78d1-c88714f3e2e0@darold.net> <3319917a-679e-b07d-b194-473552b72082@darold.net> <1E3DD5BF-A54E-4203-86C5-94C9EFA0E095@yandex-team.ru> <04ae150b-6442-148a-bb23-77082f6fca1d@darold.net> <3768803E-4794-409D-88D2-C3EF7CA1B7FC@yandex-team.ru> <75B95FDD-2BE0-4525-8BDD-FC67C8BCBD53@yandex-team.ru> <88CB7042-6181-4EF4-8B25-61EC5E5725D4@yandex-team.ru> <018EF641-FC9D-4BA9-A458-6842E27E91C2@yandex-team.ru> To: Thomas Munro X-Mailer: Apple Mail (2.3608.120.23.2.4) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > 1 =D0=B0=D0=BF=D1=80. 2021 =D0=B3., =D0=B2 06:40, Thomas Munro = =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB(=D0=B0= ): >=20 > 2. Remove the cap of 128 buffers for xact_buffers as agreed. We > still need a cap though, to avoid a couple of kinds of overflow inside > slru.c, both when computing the default value and accepting a > user-provided number. I introduced SLRU_MAX_ALLOWED_BUFFERS to keep > it <=3D 1GB, and tested this on a 32 bit build with extreme block = sizes. BTW we do not document maximum values right now. I was toying around with big values. For example if we set different big = xact_buffers we can get something like FATAL: not enough shared memory for data structure "Notify" (72768 = bytes requested) FATAL: not enough shared memory for data structure "Async Queue = Control" (2492 bytes requested) FATAL: not enough shared memory for data structure "Checkpointer Data" = (393280 bytes requested) But never anything about xact_buffers. I don't think it's important, = though. >=20 > Likewise, I removed the cap of 16 buffers for commit_ts_buffers, but > only if you have track_commit_timestamp enabled. =20 Is there a reason to leave 16 pages if commit_ts is disabled? They might = be useful for some artefacts of previously enabled commit_ts? > 4. Change the default for commit_ts_buffers back to shared_buffers / > 1024 (with a minimum of 4), because I think you might have changed it > by a copy and paste error -- or did you intend to make the default > higher? I changed default due to some experiments with = https://www.postgresql.org/message-id/flat/20210115220744.GA24457%40alvher= re.pgsql In fact most important part of that thread was removing the cap, which = is done by the patchset now. Thanks! Best regards, Andrey Borodin.