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 1njA5x-0008GJ-BX for pgsql-hackers@arkaria.postgresql.org; Tue, 26 Apr 2022 01:34:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1njA5w-00022M-2b for pgsql-hackers@arkaria.postgresql.org; Tue, 26 Apr 2022 01:34:24 +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 1njA5v-00022D-PK for pgsql-hackers@lists.postgresql.org; Tue, 26 Apr 2022 01:34:23 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1njA5o-0006UC-Nn for pgsql-hackers@postgresql.org; Tue, 26 Apr 2022 01:34:23 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 490513201F8E; Mon, 25 Apr 2022 21:34:13 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Mon, 25 Apr 2022 21:34:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm1; t=1650936852; x=1651023252; bh=L7KouQWDi8 sFNuEFz4GaCbfRvKoG0sZy2YlRvZTCayo=; b=wozwOMe+5ogo9PJt3n2ybGZXez HsF9PS+thK3TKIsnaYtICDVUVjU3tDsTaIwG7rfrPCkc+rdhdSx+Vk3H6mlzaBit 8ThtrpvmvdZV9YeABd3+wepn3ovnKjUMD7tcMZ40Sy1KxbuYdp2pQzJ90ncbfwY0 DP2wMQktmIxTpY7aw5SfTJ7eYohhqReNNfsy795PMwGLiQVhBlB+BtKldLklY6/6 J5j/pEn3p/vOmqtNBN1zxlx3BOPbAXlmXvl23/+z/zTgXCCvIDwFwScYGFbtnbek N+yveS2XMVpaKMBjXOBPCL1TcuKIToZiDEYZ9XnAuTCDusa3a0CFqy1/DxNA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1650936852; x= 1651023252; bh=L7KouQWDi8sFNuEFz4GaCbfRvKoG0sZy2YlRvZTCayo=; b=Q 3je1rsktxmQXxkBjgWt8Ubzz95p6JHZIB/dNyxGeAU56pyqDzC7tMFPeqohMB6Ok SKIjLMZN2NlZgeHPgzb5v8EqppTuH0NjC95WGzNHoE8BMwtgzBNzpPvN2jvoUF9n D+66hipi1abJoFXu4ops6F18AmsgVpc1HnFGHn3lxaAWtfx8wKo8CzuoJO7ObMqE l9hhB8TbYklCxGNktZ2+yjsmLsWFKzrcwrLKsaMH0KZDInpRRVah1LwirqjIylp3 Emth34ltV2Ws6AEv2ZQCxjNKG1D5B7FK0s1N5a1ohZQVso8LNmSoN1Z1aw7pK3NZ 9dgpzrehj2Dz8433XOPIg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedruddvgdeghecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdefhedmnecujfgurhepfffhvfevuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpeegffejvefgveduvdejtddvtdei jeehudeuledvudeftdfgfeejvdekveekiedvvdenucffohhmrghinhepphhoshhtghhrvg hsqhhlrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhf rhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihii X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 25 Apr 2022 21:34:09 -0400 (EDT) Date: Tue, 26 Apr 2022 10:34:06 +0900 From: Michael Paquier To: Magnus Hagander Cc: Nathan Bossart , "Bossart, Nathan" , Fujii Masao , Justin Pryzby , Andres Freund , Mark Dilger , Don Seiler , PostgreSQL-development Subject: Re: Estimating HugePages Requirements? Message-ID: References: <20220314173417.GA1020555@nathanxps13> <20220315224439.GA1133771@nathanxps13> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="msaMHsBC5Obpi/IC" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --msaMHsBC5Obpi/IC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 25, 2022 at 04:55:25PM +0200, Magnus Hagander wrote: > AIUI that was the original use-case for this feature. It certainly was for > me :) Perhaps we'd be fine with relaxing the requirements here knowing that the control file should never be larger than PG_CONTROL_MAX_SAFE_SIZE (aka the read should be atomic so it could be made lockless). At the end of the day, to be absolutely correct in the shmem size estimation, I think that we are going to need what's proposed here or the sizing may not be right depending on how extensions adjust GUCs after they load their _PG_init(): https://www.postgresql.org/message-id/20220419154658.GA2487941@nathanxps13 That's a bit independent, but not completely unrelated either depending on how exact you want your number of estimated huge pages to be. Just wanted to mention it. >> Contrary to Linux, we don't need to care about the number of large >> pages that are necessary because there is no equivalent of >> vm.nr_hugepages on Windows (see [1]), do we? If that were the case, >> we'd have a use case for huge_page_size, additionally. >=20 > Right, for this one in particular -- that's what I meant with my comment > about there not being a limit. But this feature works for other settings = as > well, not just the huge pages one. Exactly what the use-cases are can > vary, but surely they would have the same problems wrt redirects? Yes, the redirection issue would apply to all the run-time GUCs. -- Michael --msaMHsBC5Obpi/IC Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmJnTA4ACgkQnvQgOdby QH2HIA//WiWypCuaNly1taL+p0tZcdFekFunaCT3txASuCJd3U639ypfjSY1tFMo ZQcZU37R0qM7VXrqoKlUibPuK+UmrpoxgRa04TqXzpkhyK3OgCzJUOOzmBTXkGlO IT4M8sRX1OUQp96nDqTuVdxEySTJ9FvBARry3lsah+2Nm0mhMKOa9c9HzVwSiFKm AKEF0DBPqUC2j8wG5pnibuKbwuIf9cA3oxm0888LkS47qM6/8Ic4f1KRppqz3fhE ehZvTN/IkGthuwcH6P9vQGW9EOwesMwEKAbbMsr49YvomEOYV3nHFvil8LgL9G5E 6ciDNJ/V43tcIHR5lfFr/TKSriNQqw0ojL8ft9jgq1vQbrNwRs7bEf+B7tjz0n4n hjEpproNNfs0T+MvLWz4FcovthmAuCse2K/DDTwfUPCDACK+7f5/FPIfI3wmvb/t XPDxR6FeAezio61oGnylJtpuJfD5zkNifKmIcOolfO4l4wQneK7pNbqr7bBM1Uj3 JHoMBu0uioCp12UuWMHVKiTK58mSMWsjNSNrrPNTsycY/Hthy7iAXdkqNYLz4zwQ ik8yf7LW7tO/e4+REZIYoxI+ZkG78SkbR5hpxvtYsccRaIfV0IlW6OFl7t36LITa mpsMh1pQHkrXL7gDbcoiYIJVTJiIzy8xdYirT4BflFYQewWbCFw= =1xWk -----END PGP SIGNATURE----- --msaMHsBC5Obpi/IC--