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

Estimate number of hugepages needed for larger systems. #81

Closed
briffle opened this issue Jul 19, 2023 · 2 comments
Closed

Estimate number of hugepages needed for larger systems. #81

briffle opened this issue Jul 19, 2023 · 2 comments
Labels
feature Feature request

Comments

@briffle
Copy link

briffle commented Jul 19, 2023

Is your feature request related to a problem? Please describe.
A performance improvement is seen when using hugepages, but planning for how many to use is difficult.

Describe the solution you'd like
There are many articles out there about the performance improvement of using huge_pages with postgresql

Example: https://www.percona.com/blog/why-linux-hugepages-are-super-important-for-database-servers-a-case-with-postgresql/
another example: https://www.enterprisedb.com/blog/improving-postgresql-performance-without-making-changes-postgresql

Trying to estimate and plan how many to allocate is difficult. We use the pgtune website to help us estimate and template the configs for different sized instances of our database, and it would be great if it could give us a guideline of how many hugepages tor reserve as well. (it appears to be shared memory, plus connections, plus some other factors to consider)

Describe alternatives you've considered
I have looked at individual systems, to see what the tuning should be, but they are often being used differently, so not the same number comes up

I do understand this is not part of the postgresql.conf file, and might be out of the scope of this tool.

@briffle briffle added the feature Feature request label Jul 19, 2023
@le0pard
Copy link
Owner

le0pard commented Jul 26, 2023

I am not sure hardware info is enough to tune huge_pages, because it also depend from size of database and SQL queries. Can you give example of systems, which tune huge_pages for postgresql, so I will check its?

@le0pard
Copy link
Owner

le0pard commented Aug 20, 2023

b7900a4 - added settings. How to calculate "how many to allocate" is not clear for now

@le0pard le0pard closed this as completed Aug 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature request
Projects
None yet
Development

No branches or pull requests

2 participants