Skip to content

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

Merged
MattWhelan merged 2 commits intocockroachdb:masterfrom
MattWhelan:transparent_huge_page
Feb 28, 2025
Merged

Use the GODEBUG env var to disable Transparent Huge Pages#463
MattWhelan merged 2 commits intocockroachdb:masterfrom
MattWhelan:transparent_huge_page

Conversation

@MattWhelan
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
prafull01 pushed a commit to prafull01/helm-charts that referenced this pull request Mar 11, 2025
…b#463)

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 now 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
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