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 1njcoc-0002mr-Kp for pgsql-hackers@arkaria.postgresql.org; Wed, 27 Apr 2022 08:14:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1njcnb-0002iy-AZ for pgsql-hackers@arkaria.postgresql.org; Wed, 27 Apr 2022 08:13:23 +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 1njcnZ-0002ic-Mj for pgsql-hackers@lists.postgresql.org; Wed, 27 Apr 2022 08:13:23 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1njcnW-0007ad-Vz for pgsql-hackers@lists.postgresql.org; Wed, 27 Apr 2022 08:13:20 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 4B9EC5C01F9; Wed, 27 Apr 2022 04:13:18 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Wed, 27 Apr 2022 04:13:18 -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=1651047198; x=1651133598; bh=Jih7DS9Mxo MhKVBpUr2nBB7+OtnqLNcvn0akQaqybJE=; b=uxcFJVht8VTJrP8yVhcrf6AV0a voll2t3c2fmSbiRy+tBa9/xcsWuoEHejepUOU0hx2xmsv3bViIkjnJK84neYyuOJ V78mxsXR8J8b8BtOukxiaeg1r9j3Numf0Tp9PuUiVtru2fS1Vn5SZG1kUzS41gWE 2LW1lZYrV7KTcX7WDKgN7stxK4VJHwHg50in+hn0piNSRtL+VPWnWWZILeQcb2hQ U2X1lI/cv6dwbXMCFEQTnIQ0u5U2JCt1AmJKSvVYheVG2i+nBbXQrVB5vNC1S/W9 7feEchhMJnilcT+46CuIGhGegcUfkzbD1AT3inXfloOIS/1RUC/ch40zg0TQ== 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=1651047198; x= 1651133598; bh=Jih7DS9MxoMhKVBpUr2nBB7+OtnqLNcvn0akQaqybJE=; b=R 9RVz7OtVVWhtqTrCd0WfeIRIeg6fj0roeQACjx31xkaxlE1lwd51ZhAY7H+hN3Ue mfhtC5UFVLs1uEkmEEMFgUuwa16SoRyNiymll28i4Rg45lKvjRM0SPdDrrSqtQcP IgK53PRTdYL/5aexwFoheSAZwUNV0REq6cj/ceDotLBt03flPVAatOSvlhzRBGNQ n2UM+c8Vzz16iFvs6gBP+tSErvzJwHR1evbHIU12QAS73Na9CGcHnq2BgjjVtdm6 P2akuMXeOFbkRRG40Syyolbagwv6h6eRLQOLeHsJDDe6davVtjmKyQdMSd1DjfeJ nu427X5qpfi8P1lAtTuYg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudeggdduvdehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepteelieefudffhffhtdetleeg geegfffhkeeuveetiefgudduvedutefggeeivdejnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiih ii X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 27 Apr 2022 04:13:16 -0400 (EDT) Date: Wed, 27 Apr 2022 17:13:12 +0900 From: Michael Paquier To: Julien Rouhaud Cc: Wilm Hoyer , pgsql-hackers@lists.postgresql.org Subject: Re: BUG #17448: In Windows 10, version 1703 and later, huge_pages doesn't work. Message-ID: References: <20220326082408.moh55zuecxjmewnm@jrouhaud> <20220331045908.bm5edcacvymgwwv2@jrouhaud> <20220331080055.hjrrsrd4lxwlt7f5@jrouhaud> <20220331104659.ol6pqe7s3tpkymuk@jrouhaud> <20220331110309.ws25d6dl5yyzprye@jrouhaud> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="VI9YObUB9EPtuXuV" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --VI9YObUB9EPtuXuV Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 26, 2022 at 12:54:35PM +0800, Julien Rouhaud wrote: > I searched a bit and apparently some people are using this function direc= tly > opening some dll, which seems wrong. I was wondering about this whole business, and the manifest approach is a *horrible* design for an API where the goal is to know if your run-time environment is greater than a given threshold. >> Another Idea on windows machines would be to use the commandline to exec= ute >> ver in a separate Process and store the result in a file. >=20 > That also seems hackish, I don't think that we want to rely on something = like > that. Hmm. That depends on the dependency set, I guess. We do that on Linux at some extent to for large pages in sysv_shmem.c. Perhaps this could work for Win10 if this avoids the extra loopholes with the manifests. > Their API is entirely useless, This I agree. > so I'm still on the opinion that we should > unconditionally use the FILE_MAP_LARGE_PAGES flag if it's defined and cal= l it a > day. Are we sure that this is not going to cause failures in environments where the flag is not supported? -- Michael --VI9YObUB9EPtuXuV Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmJo+xgACgkQnvQgOdby QH0U4Q/+P51JdoeG47s3t2Ya9fcixSLMwqr8Zzy8tG3STuGazM3g1vIEzoQNg4Wo D/o4Pdyt6bcoMoC2rf1uDNALxCG1rKZckgniZvomIVYNuNjaWRdbImAFtlFzcETD iGBN/L/dJl4qB4R9Lhh/ZGMcYDWRyDyhCD5fojgjlgD7OH3l3taig6hXOiB3vDAu aJN6g5jxm9BgOKpP0AEkDUG+aEdKZbGVfoefIO0uPe/fi4SZEcgVJ6Mm/iqqsGpp 2P19IEgmPeQhAcaj5CBIYSliseNaGwmr+5PgnmPPiZbTzII8rS5IVJNyoP6R0zt7 mG9p4YZcIdMo1z30ekaWQ5mC6sOBLUGwLkv25q0bS44FCaac+ZClHEqnjIBaawPf A/KCMq/GUqz2dD/9aVD+CoFcGGY4T95Ef3A+wKXhOXlTRusliQ5vKi2wdTB5gJla 5lGHYvV5OrsBW30d9iauvllxNfQMjAdCeFV7PvXHPga7v2PbEsCXcUIptDnvwruo urLyTxouem2vgYbsQ/DYiJaN6DLYHXflDbFmU2f8iFqU2TiDoUuXXEZR7qfO9hdi fI5T1QE3o8csAzHfrKG9atwEnHYffsgCiYb9/roOKsvNtfxN+S9Lp4Nc0fBMS8Xr zo8jD4KDrV5ZvYE4GdHaf2RtZ4/8a/RPuH7b8rVUx/yE+iMvlNs= =Wn9U -----END PGP SIGNATURE----- --VI9YObUB9EPtuXuV--