Re: Supporting huge pages on Windows - Mailing list pgsql-hackers

From Tsunakawa, Takayuki
Subject Re: Supporting huge pages on Windows
Date
Msg-id 0A3221C70F24FB45833433255569204D1F6BE14D@G01JPEXMBYT05
Whole thread Raw
In response to Supporting huge pages on Windows  ("Tsunakawa, Takayuki" <tsunakawa.takay@jp.fujitsu.com>)
Responses Re: Supporting huge pages on Windows  (Amit Kapila <amit.kapila16@gmail.com>)
List pgsql-hackers
From: Amit Kapila [mailto:amit.kapila16@gmail.com]
> The latest patch looks good to me apart from one Debug message, so I have
> marked it as Ready For Committer.

Thank you so much!


> + ereport(DEBUG1,
> + (errmsg("disabling huge pages")));
> 
> I think this should be similar to what we display in sysv_shmem.c as below:
> 
> elog(DEBUG1, "mmap(%zu) with MAP_HUGETLB failed, huge pages disabled: %m",
> allocsize);

I understood you suggested this to make the reason clear for disabling huge pages.  OK, done as follows.

+               elog(DEBUG1, "CreateFileMapping(%llu) with SEC_LARGE_PAGES failed "
+                    "due to insufficient large pages, huge pages disabled",
+                    size);

I hope this will be committed soon.


Regards
Takayuki Tsunakawa


Attachment

pgsql-hackers by date:

Previous
From: Dmitry Dolgov
Date:
Subject: Re: [PATCH] Generic type subscripting
Next
From: Vitaly Burovoy
Date:
Subject: Re: sequence data type