Re: BUG #17448: In Windows 10, version 1703 and later, huge_pages doesn't work.

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Julien Rouhaud <rjuju123(at)gmail(dot)com>
Cc: Wilm Hoyer <W(dot)Hoyer(at)dental-vision(dot)de>, PostgreSQL Developers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: BUG #17448: In Windows 10, version 1703 and later, huge_pages doesn't work.
Date: 2022-04-27 10:01:03
Message-ID: CABUevExOUiOVjiecHsZWpTzvmbyCs-tF2Nf8RCqHXvoS2VXqNg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers

On Tue, Apr 26, 2022, 05:55 Julien Rouhaud <rjuju123(at)gmail(dot)com> wrote:

> Hi,
>
> Please keep the list in copy, especially if that's about Windows specific
> as
> I'm definitely not very knowledgeable about it.
>
> On Fri, Apr 01, 2022 at 09:18:03AM +0000, Wilm Hoyer wrote:
> >
> > If you don't wanna go the manifest way, maybe the RtlGetVersion function
> is the one you need:
> >
> https://docs.microsoft.com/en-us/windows-hardware/drivers/ddi/wdm/nf-wdm-rtlgetversion?redirectedfrom=MSDN
>
> Thanks for the info! I tried to use the function but trying to include
> either
> wdm.h or Ntddk.h errors out. Unfortunately I don't know how to look for a
> file
> in Windows so I don't even know if those files are present.
>

That's a kernel api for use in drivers. Not in applications. You need the
device driver developer kit to get to the headers.

It's not supposed to be used from a user land application.

But note the documentation comment that says: “*RtlGetVersion* is the
kernel-mode equivalent of the user-mode *GetVersionEx* function in the
Windows SDK. ".

Tldr, user mode applications are supposed to use GetVersionEx().

/Magnus

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Dave Cramer 2022-04-27 14:47:04 Re: BUG #17467: Perf degradation after switching to latest jdbc drivers
Previous Message Michael Paquier 2022-04-27 08:13:12 Re: BUG #17448: In Windows 10, version 1703 and later, huge_pages doesn't work.

Browse pgsql-hackers by date

  From Date Subject
Next Message houzj.fnst@fujitsu.com 2022-04-27 10:08:12 RE: bogus: logical replication rows/cols combinations
Previous Message Alvaro Herrera 2022-04-27 09:53:50 Re: bogus: logical replication rows/cols combinations