pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Julien Rouhaud <rjuju123@gmail.com>
Cc: Wilm Hoyer <W.Hoyer@dental-vision.de>
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: BUG #17448: In Windows 10, version 1703 and later, huge_pages doesn't work.
Date: Wed, 27 Apr 2022 17:13:12 +0900
Message-ID: <Ymj7GHBfTnaN5kWW@paquier.xyz> (raw)
In-Reply-To: <Ymd7C+QineDpi7Eb@jrouhaud>
References: <20220326082408.moh55zuecxjmewnm@jrouhaud>
	<CA+hUKGLwOSf-QwVtCcKx9xvugN2BSzEBBeD5DNyTXgcSRp5sTw@mail.gmail.com>
	<YkQMyhsP7xgLDDT/@paquier.xyz>
	<20220331045908.bm5edcacvymgwwv2@jrouhaud>
	<YkVbbZBiC4yxXPuc@paquier.xyz>
	<20220331080055.hjrrsrd4lxwlt7f5@jrouhaud>
	<20220331104659.ol6pqe7s3tpkymuk@jrouhaud>
	<20220331110309.ws25d6dl5yyzprye@jrouhaud>
	<a6859029835d4abdb6ba2970614905d1@dental-vision.de>
	<Ymd7C+QineDpi7Eb@jrouhaud>

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 directly
> 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 execute
>> ver in a separate Process and store the result in a file.
> 
> 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 call it a
> day.

Are we sure that this is not going to cause failures in environments
where the flag is not supported?
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (25+ messages)  latest in thread

Message-ID: <Ymj7GHBfTnaN5kWW@paquier.xyz>
Permalink:  ../Ymj7GHBfTnaN5kWW@paquier.xyz/
Also on:    postgresql.org/message-id/Ymj7GHBfTnaN5kWW@paquier.xyz

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: michael@paquier.xyz, rjuju123@gmail.com, W.Hoyer@dental-vision.de, pgsql-hackers@lists.postgresql.org
  Subject: Re: BUG #17448: In Windows 10, version 1703 and later, huge_pages doesn't work.
  In-Reply-To: <Ymj7GHBfTnaN5kWW@paquier.xyz>
  References: <20220326082408.moh55zuecxjmewnm@jrouhaud> <CA+hUKGLwOSf-QwVtCcKx9xvugN2BSzEBBeD5DNyTXgcSRp5sTw@mail.gmail.com> <YkQMyhsP7xgLDDT/@paquier.xyz> <20220331045908.bm5edcacvymgwwv2@jrouhaud> <YkVbbZBiC4yxXPuc@paquier.xyz> <20220331080055.hjrrsrd4lxwlt7f5@jrouhaud> <20220331104659.ol6pqe7s3tpkymuk@jrouhaud> <20220331110309.ws25d6dl5yyzprye@jrouhaud> <a6859029835d4abdb6ba2970614905d1@dental-vision.de> <Ymd7C+QineDpi7Eb@jrouhaud> <Ymj7GHBfTnaN5kWW@paquier.xyz>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox