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 1naAFT-0000OP-R3 for pgsql-bugs@arkaria.postgresql.org; Fri, 01 Apr 2022 05:55:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1naAFR-0006gR-WD for pgsql-bugs@arkaria.postgresql.org; Fri, 01 Apr 2022 05:55:02 +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 1naAFR-0006gI-OE for pgsql-bugs@lists.postgresql.org; Fri, 01 Apr 2022 05:55:01 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1naAFP-0005R1-Nw for pgsql-bugs@lists.postgresql.org; Fri, 01 Apr 2022 05:55:01 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 169895C0138; Fri, 1 Apr 2022 01:54:58 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Fri, 01 Apr 2022 01:54:58 -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; bh=dgqHfhTLgjA6q6Zgt5vhjuBrhLUjlA/UGgfFVw 31PsQ=; b=StxqUmkgtuknO1BizZBrohonWnr/NGQX2mqwyRLPdLFDPMbrzYk2tX 7xoTqKS2Y25UxZQLKN2rKnX6oMa4n8pyxJ5qQrVATJH7tiYPXVVXObw5CYCA62q5 oZeFHKJ52z+Ic9mQR2c6IOGxaDpDhm63raiIdfpwH/xJp2pIOX0lw5qeaVGy2cNx f2vXXmYbB+L9HYj9nYhk7J2T+YGf0ep1YRHzcxiEOEQ5j2T+wzpBileQXxC71sAa 5uD6dMHdeVaE621inIYNIkjB77N6d7Qef/Jcgl54g4GKqfNxRdMPpfijmtsx76/S i9aEoFWfrjt3J7unUsiTqT+Z/eoohEDw== 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=fm3; bh=dgqHfhTLgjA6q6Zgt 5vhjuBrhLUjlA/UGgfFVw31PsQ=; b=mD/fBykIsV25rUUgZJcSKtdM1wFSW5kp/ 9QNA9YnzJ3AkxvmtTRsb/oCMpEBcYnVoUqvQdSKH4Xag7f49+OE4DYbQjI4bC4Xq fD/x7whzf+G3nlcY4zX/hZFCCx/84mKKpWFIHj7L1p7ibnbppAZD+U5hPNcPjYXO 8aPKJOGVua8wxF15+ofbq7LTIdhTtqciKrb7Qo+7N5iBsC3Tm39BnW3AFFpYweZ5 tKK7n/IF2h8R7RV0rL3C3yLInpQDaPvo7+MBUkbX2Fjs+I5OWJuK5nbF3qkUdxay Koe/gXAqcfJztdIu1Be70YCrv6GZJOsOucFzQ9a0O4h9WLrJbaNmw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudeihedguddtudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enfghrlhcuvffnffculdejtddmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepvdegudeuhfdtueeltedtveej heehieevueeigeelteegleejleeiueeiheegvefhnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiih ii X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 1 Apr 2022 01:54:55 -0400 (EDT) Date: Fri, 1 Apr 2022 14:54:53 +0900 From: Michael Paquier To: Julien Rouhaud Cc: Thomas Munro , okano.naoki@jp.fujitsu.com, PostgreSQL mailing lists Subject: Re: BUG #17448: In Windows 10, version 1703 and later, huge_pages doesn't work. Message-ID: References: <17448-0a96583a67edb1f7@postgresql.org> <20220326082408.moh55zuecxjmewnm@jrouhaud> <20220331045908.bm5edcacvymgwwv2@jrouhaud> <20220331080055.hjrrsrd4lxwlt7f5@jrouhaud> <20220331104659.ol6pqe7s3tpkymuk@jrouhaud> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="EdHaYIDD2mdzFFcL" Content-Disposition: inline In-Reply-To: <20220331104659.ol6pqe7s3tpkymuk@jrouhaud> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --EdHaYIDD2mdzFFcL Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Mar 31, 2022 at 06:46:59PM +0800, Julien Rouhaud wrote: > So, after more digging it turns out that the patch is supposed to work. = If I > force using the PG_FILE_MAP_LARGE_PAGES, postgres starts and I do see "Lo= cked > WS" usage with VMMap, with a size in the order of magnitude of my > shared_buffers. >=20 > What is apparently not working on my VM is IsWindowsVersionOrGreater(10, = 0, > 1703). I added some debug around to check what GetVersionEx() [2] is say= ing, > and I get: >=20 > dwMajorVersion =3D=3D 6 > dwMinorVersion =3D=3D 2 > dwBuildNumber =3D=3D 9200 Okay. Well, I'd like to think that the patch written as-is is correct. Now your tests are saying the contrary, so I don't really know what to think about it :) >> TRUE if the specified version matches, or is greater than, the version o= f the >> current Windows OS; otherwise, FALSE. >=20 > Isn't that supposed to be the opposite? I get from the upstream docs that if the runtime version of Windows is higher than 10.0.1703, IsWindowsVersionOrGreater() should return true. Perhaps the issue is in the patch and its argument values, but it does not look straight-forward to know what those values should be, and there are no examples in the docs to show that, either :/ -- Michael --EdHaYIDD2mdzFFcL Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmJGk60ACgkQnvQgOdby QH1YiRAAnl+CfWuYh+0mR4oKgq+ViqhfpqfbxTXZ+Iaa5W0C1XrsuCRfBLNRsnx2 qqdYhyAys2kN5Z2qyPEjhKRv1/iIZB3KUMOErlEBs3HW8cm1Qau2Gmumj/UHrEAZ F6UeUnyLX9U7Xl+wB3usviTR+r8Nxn75jjisPIey6qGFJkXa825wY8Sc8cZMuYkZ BgB4vMHju42z4WUD9RPkPzEFrBjHliyQdShBbqRH3fkpkdcqNnOo344q5SYJ4rx4 YyHvY9Zy3g0rtu/R7hPcK5L0Dorzq0rMhhbGRV+1De5O8h4h+gXoRL+sQ2jzUToH RExqY7MSkZIaAXlZPEQcisZ3vFYr1Q4ma7E6jVziHAB92hnWwx8ka8TwySzv7Hll c9dZ4Ez9zNWbCrXXMO1LcNhl6zegjJvl0fHzLpT8UzTS6ikw8KegYKNQWDq8BTLp TWAcO0ecPf0hTYTtfo1RFGffvTQgeFdD652WpkEReUJ4MR9fanELc8eMw39js+Kh 234pxF18nLEpUv74HU5Bu/K80958nwHCvdoEIHz7shQFQlV9XJl16hTgi2lNNC9R dI95Bf4eCGKPPcrH/GrQwucHucDu1bPXV4Q3HXBp3JLGxnMsmMM7eqemCtmxF5tF iXgeGkdfJpxoEagFNgYjLISbmtO4QVsm7e9JJNtQbKtZWcvOfKs= =+nPl -----END PGP SIGNATURE----- --EdHaYIDD2mdzFFcL--