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

Use the GODEBUG env var to disable Transparent Huge Pages #463

Merged
merged 2 commits into from
Feb 28, 2025

Conversation

MattWhelan
Copy link
Contributor

@MattWhelan MattWhelan commented Feb 28, 2025

THP is unhelpful for databases, in general, because memory access tends to be non-contiguous, and the use of THP can make performance worse when it requires a bunch of page defragmentation to load and map a huge page.

We disable it by default, using the GODEBUG environment variable.

Adds a generic facility for managing GODEBUG clauses to the Helm chart.

closes https://cockroachlabs.atlassian.net/browse/TREQ-888

@MattWhelan MattWhelan marked this pull request as ready for review February 28, 2025 00:08
Copy link
Contributor

@pritesh-lahoti pritesh-lahoti left a comment

Choose a reason for hiding this comment

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

Thank you for the changes!

Comment on lines 263 to 269
{{- define "godebugList" -}}
{{- $godebugList := list -}}
{{- range $key, $value := .Values.godebug }}
{{- $godebugList = append $godebugList (printf "%s=%s" $key $value) -}}
{{- end }}
{{- join "," $godebugList -}}
{{- end }}
Copy link
Contributor

Choose a reason for hiding this comment

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

This could move to cockroachdb/templates/_helpers.tpl.

@MattWhelan MattWhelan merged commit f95d409 into cockroachdb:master Feb 28, 2025
9 checks passed
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

Successfully merging this pull request may close these issues.

2 participants