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.96) (envelope-from ) id 1wd1jl-003plB-2A for pgsql-bugs@arkaria.postgresql.org; Fri, 26 Jun 2026 08:16:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wd1jk-009wT3-1W for pgsql-bugs@arkaria.postgresql.org; Fri, 26 Jun 2026 08:16:32 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wd1jk-009wSv-0h for pgsql-bugs@lists.postgresql.org; Fri, 26 Jun 2026 08:16:32 +0000 Received: from fout-a8-smtp.messagingengine.com ([103.168.172.151]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wd1ji-00000000KdO-0Fap for pgsql-bugs@lists.postgresql.org; Fri, 26 Jun 2026 08:16:31 +0000 Received: from phl-compute-07.internal (phl-compute-07.internal [10.202.2.47]) by mailfout.phl.internal (Postfix) with ESMTP id CE029EC022E; Fri, 26 Jun 2026 04:16:28 -0400 (EDT) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-07.internal (MEProxy); Fri, 26 Jun 2026 04:16:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1782461788; x=1782548188; bh=w1VpIiHrua MdCivD8QczyL7hFmlXIQuw+C6PNSbzDsQ=; b=fRKOhGOVN9HIWdjYFuVgMslykl IbXisbJqw4pFUaaJk0o7FVPfWe7XG1x4O0echINC1bUwiggKcrTE7ii6pR2ziWsf gBYDLzE8W8YnfwcHgKIFZZDNIAY7WfSHmC02uB79p3ZuAPHOukBpbTNin9KFuhwY 9eJHzzWFFo7PalRL3XQ+rPSXDkVffNR19uN4exvR5O2WNMEeBD8pihy+5NFu7evM 6ZKWBlIc/o4ecCti759TwAPWiFh8pxrT3BNG51d1a4ApvSB8EvoeviHaqqG+Hj/V JMHrMNcd4kV+NImh6w4VSe5B2N4tYG8eLFTaVVm9zcY6ZKSim/BzpZz1jUtQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1782461788; x=1782548188; bh=w1VpIiHruaMdCivD8QczyL7hFmlXIQuw+C6 PNSbzDsQ=; b=YErKQK6pl+KK+vxDeKAcFP3IdSEDyshlQVYG+jMA3IYi9LGNjIq fkglhsyypzenqlERpq1Np992sZNuMOiKpHuLRjO5uGDoS8dNRGHMpMEG0+tEDOKp LwBDueNK4yi6pYf4kDHX2aYsdy3fyveDEFskD+tC21L2ncHr9efzMgdpfuX/dFU1 OgUxkpAkJk7xv5Z9nvEmiuTMpdiSJxmE69dcy+XEXsqAAPdOtkKK7cHlBbO6tYuc 6SU+Gk7lrBpXsxL0BKhnb05vLnrTi/rt6sOke33Hr+UuSDXDp++AFthoCgfDZmJa vsBbsxoJVQb86NoXH7rWAsyAWRal/nKvsyw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTGJY5ZZTXFnQgctlKL1Sb/sJaorP0YSmQz6grz036RGDUIhYu2FvYGzo/+b/xpatk HumTITi/wDuF1uGqBZkWS/BsG7FVWr4DVbDXFOUZYwHN0h2yqrRcMwQOuX/WUFQhpjOc44 W1qbP710x89PXcjh2typLylAkXDBfsRR5Pi0n462MJp7ibBekJIp2WQF+OtyiNmzTq0UCO h+wwWNL5BACuQp4lTYCwow6J+ahcyNDr3Ae+M+ykiFwIA9PeGe2hqkoyCSlHz2C01g5IBs jyONvAeEh4mv0Bfd5YyNTv3Pws0Q6gpoumPwMSQOjeiw7BrE5l+oPAaHZSiCSRMikLactp dzCRmNx1YQIq2Pcri/nl9dFhmDyTF4/cXUhZztm/V5IUfcAHIUWKwyh7Gcf0h6AL0rpBLd 4bO7maezWNQZGJHoXAWpdemgaIrA+nbM2lqVPv0Mh9IxSaipK2FHMc1WSkR1DPA5k0ZHVO IBxmSodLS/SyYpDvl8nBKSbJjKrcRJ5P/XTTix4lVPxiydiux5/TPD62I45yPNBQ/IDQGA Jz9y2XJpeMbwTga32eg4M0K8U22B3fnB+JquwsNfBMuWU50I+7BWRGUPHceTDtg1D+Qv5/ BeucO4f8X3FN+bk9jVBQ9rNf3WutiMEfhcIPg2Gd5GoQ0r5ET6bycckS5F2g X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 26 Jun 2026 04:16:27 -0400 (EDT) Date: Fri, 26 Jun 2026 17:16:23 +0900 From: Michael Paquier To: Kyotaro Horiguchi Cc: vilensipkdm@gmail.com, pgsql-bugs@lists.postgresql.org Subject: Re: Set huge_page_size on 32bit system Message-ID: References: <20260626.132415.904994526137946499.horikyota.ntt@gmail.com> <20260626.171307.1289242154888665760.horikyota.ntt@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="GnoZCR8fRdtYtG6U" Content-Disposition: inline In-Reply-To: <20260626.171307.1289242154888665760.horikyota.ntt@gmail.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --GnoZCR8fRdtYtG6U Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jun 26, 2026 at 05:13:07PM +0900, Kyotaro Horiguchi wrote: > At Fri, 26 Jun 2026 14:26:31 +0900, Michael Paquier = wrote in=20 >> So it seems to me that the mistake is that huge_page_size uses INT_MAX >> as upper bound. We should use MAX_KILOBYTES instead; this definition >> exists to exactly prevent this kind of computation mistake in 32b >> environments. >=20 > Ah, you're right. MAX_KILOBYTES exists for exactly this purpose. Changing the states of the GUC tables in the stable branches would be OK in this case. Now, it took so many years for somebody to complain that setting huge pages at 1TB on a 32b build does not work that I cannot really get excited about a backpatch. So I would just do the switch on HEAD, and call it a day. -- Michael --GnoZCR8fRdtYtG6U Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmo+NVcACgkQnvQgOdby QH3mwA//bA9HC1mq/r7qHUwEa/bYp9CV/w9ep082n7NoWwk0R+S/dn7PyZYbhE4R kafuUI5NxppM//aKV5fsAUuQTkS8CfN74iN+VGB8hK/jGSDaDxeBJHLUQk99+3D1 EDXCCtKE5p8dbs/G9BxjqnAKL9F+SCzbMFb7tKMa3bdGkF12bIBBRnqxPhRUBrah lyZeVCVPHos3t3VyCGiPaUPk+Jbrmf8fhVzpvAAJG8rjeMH5nkTNaXeqyhndqCh7 2T189f7eWTuIMqxA3pE/HWhN6tPMYuAKrhkQe/4gIchgUGwL3861+l+pPh4qv+OC F8sQdBAxBAqqDAwm9tgwqUIsZkLUd/t++tqJnOSlgBxdmDER3/2cg8Jf2ZyKqkiu BA81Ftw8s2Ww88yqzdY2BDhGyp/a8oQlRBMz7HX4eEWJXfCQC7o6yn+8YepNjLS1 ftr1pZyzkJWCx498p+eIBgsDpUoJC4JZAXBc4tr7AA2/Gx5oT6Xsdlh2srrFGgQA V4ZEg4wDjEFGY6775/gg9rshXQsUcuD7p9Y7p7m6edOWp6uw/gXsGPUBFoDfDfTE xHgiGwhS2ieEJ6Jgg9DTLDpghB42VQvHYJlQASjHgVRG8Hd7ibr7n0Gg1o39TSVa O4UjGyrx9HzyS5s4ZwX0ZXeePz3G/jqUkj132mnN2AHK/ECXqrU= =EigG -----END PGP SIGNATURE----- --GnoZCR8fRdtYtG6U--