Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

huge_pages only accepts 'on' #54

Closed
Arcanemagus opened this issue Jul 17, 2019 · 2 comments
Closed

huge_pages only accepts 'on' #54

Arcanemagus opened this issue Jul 17, 2019 · 2 comments

Comments

@Arcanemagus
Copy link

if (get_setting('huge_pages') eq 'on') {
print_report_ok("huge_pages enabled in PostgreSQL");
} else {
print_report_bad("huge_pages disabled in PostgreSQL");
add_advice("hugepages","medium","Enable huge_pages in PostgreSQL to consume system Huge Pages");
}

This bit of code doesn't seem to understand the values for this setting, as described in the documentation for huge_pages the default value of this setting is try, which will use them if available but won't fail to start if they aren't. The recommended value of on will actually prevent the server from starting if there aren't enough pages available!

This should only warn if the value has been explicitly set to off.

@natmaka
Copy link
Contributor

natmaka commented Nov 4, 2019

Indeed. I fixed it.

@jfcoz
Copy link
Owner

jfcoz commented Nov 6, 2019

Thanks

@jfcoz jfcoz closed this as completed Nov 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants