Re: [HACKERS] [RFC] Should "SHOW huge_pages" display the effectivevalue "off" when the huge page is unavailable? - Mailing list pgsql-hackers

From Fujii Masao
Subject Re: [HACKERS] [RFC] Should "SHOW huge_pages" display the effectivevalue "off" when the huge page is unavailable?
Date
Msg-id CAHGQGwFv7hg=-QpU1Y5Z2H8yAPMWJS5es5p+iJwXpJ9h1pmQpg@mail.gmail.com
Whole thread Raw
In response to [HACKERS] [RFC] Should "SHOW huge_pages" display the effective value "off"when the huge page is unavailable?  ("Tsunakawa, Takayuki" <tsunakawa.takay@jp.fujitsu.com>)
Responses Re: [HACKERS] [RFC] Should "SHOW huge_pages" display the effective value "off" when the huge page is unavailable?
List pgsql-hackers
On Mon, Feb 6, 2017 at 4:01 PM, Tsunakawa, Takayuki
<tsunakawa.takay@jp.fujitsu.com> wrote:
> Hello, all
>
> Could you give me your opinions on whether the SHOW command should display the effective value or the specified value
forhuge_pages?  During the review of "Supporting huge_pages on Windows", which is now shifted to CommitFest 2017-3,
Magnusgave me a comment that the huge_page variable should retain the value "try" when the huge page is not available
onthe machine and the server falls back to huge_page=off.  The Linux version does so. 
>
> I don't have a strong opinion on that, but I think a bit that it would be better to reflect the effective setting,
i.e.SHOW displays huge_pages as off, not try. 

Not sure if this is best way to do that, but I agree that it's helpful if
we can see whether the server actually uses huge page or not in
huge_page=try case.

Regards,

--
Fujii Masao



pgsql-hackers by date:

Previous
From: Aleksander Alekseev
Date:
Subject: Re: [HACKERS] SCRAM authentication, take three
Next
From: Tom Lane
Date:
Subject: Re: [HACKERS] [RFC] Should "SHOW huge_pages" display the effective value "off" when the huge page is unavailable?