Skip to content
This repository was archived by the owner on Aug 14, 2023. It is now read-only.

Bump memory available to postgres#114

Merged
jchristgit merged 1 commit into
mainfrom
bump-psql-work_mem
Dec 13, 2021
Merged

Bump memory available to postgres#114
jchristgit merged 1 commit into
mainfrom
bump-psql-work_mem

Conversation

@ChrisLovering
Copy link
Copy Markdown
Member

@ChrisLovering ChrisLovering commented Dec 12, 2021

A lot of larger queries are having to use disk for intermediate storage, due to being memory starved. By increasing the memory available to psql, we should see improved performance.

hash_mem_multiplier is a multiplier on work_mem specifically for hash operations, this allows hash operations to complete quickly without other operations using up too much memory.

@ChrisLovering ChrisLovering requested a review from a team as a code owner December 12, 2021 22:15
@ChrisLovering
Copy link
Copy Markdown
Member Author

ChrisLovering commented Dec 12, 2021

I am not 100% confident with 32MB, and 1.5 multiplier, this might be something we need to watch and tune over time.

A lot of larger queries are having to use disk for intermediate storage, due to being memory starved. By increasing the memory available to psql, we should see improved performance.

hash_mem_multiplier is a multiplier on work_mem specifically for hash operations, this allows hash operations to complete quickly without other operations using up too much memory.
Copy link
Copy Markdown
Contributor

@jchristgit jchristgit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am 100% confident in Chris' ability to set this correctly, and PostgreSQL to handle any incorrect settings correctly.
Thank you.

@jchristgit jchristgit merged commit c787a6e into main Dec 13, 2021
@jchristgit jchristgit deleted the bump-psql-work_mem branch December 13, 2021 18:33
@jchristgit
Copy link
Copy Markdown
Contributor

@cluster-admins as Joe "Erlang" Banks has revoked my access, please deploy this

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants