Skip to content

set GLIBC_TUNABLES to increase mem reservation #449

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

Merged
merged 1 commit into from
Jun 16, 2025
Merged

Conversation

vlinkz
Copy link
Contributor

@vlinkz vlinkz commented Jun 16, 2025

Why

Seeing number of issues related to https://sourceware.org/bugzilla/show_bug.cgi?id=31991, jemalloc/jemalloc#2472, and flox/flox#1341.

In our case this leads to some programs failing with

libjemalloc.so.2: cannot allocate memory in static TLS block

What changed

When LD_AUDIT is set, set GLIBC_TUNABLES to a higher amount to allow these programs to not crash.

Test plan

  • Ensure redis-server, bun, fd, and others work as expected.

Rollout

  • This is fully backward and forward compatible

@vlinkz vlinkz requested a review from a team as a code owner June 16, 2025 16:15
@vlinkz vlinkz requested review from airportyh and removed request for a team June 16, 2025 16:15
@vlinkz vlinkz merged commit 0ba5cb4 into main Jun 16, 2025
3 checks passed
@vlinkz vlinkz deleted the vlinkz/glibctunablefix branch June 16, 2025 16:29
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