You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[C++] Allow fine tuning of memory pool from environment variable(s) #27132
Both jemalloc and mimalloc allow for some amount of fine tuning from environment variables. However, in some cases, the settings entered into these environment variables are overridden by arrow.
For example, jemalloc docs describe MALLOC_CONF, an environment variable that can be used to tune any jemalloc parameter. But, the global variable malloc_conf (which arrow uses) takes precedence.
Tuning may be useful in certain environments (for example, if someone wanted to use jemalloc over mimalloc in an environment where overcommit is disabled and so they wanted to set the retain:true option) and so it would be good to allow for these tuning parameters to be set at runtime. One potential solution may be to expose our own environment variable (e.g. ARROW_MALLOC_CONF).
Antoine Pitrou / @pitrou:
We may want to expose backend-specific configuration options instead (ARROW_JEMALLOC_CONF, ARROW_MIMALLOC_CONF...) since one may select a different backend at runtime.
This issue has been marked as stale because it has had no activity in the past 365 days. Please remove the stale label or comment below, or this issue will be closed in 14 days. If this improvement is still desired but has no current owner, please add the 'Status: needs champion' label.
Activity
asfimport commentedon Jan 12, 2021
Antoine Pitrou / @pitrou:
We may want to expose backend-specific configuration options instead (ARROW_JEMALLOC_CONF, ARROW_MIMALLOC_CONF...) since one may select a different backend at runtime.
github-actions commentedon Jan 9, 2026
This issue has been marked as stale because it has had no activity in the past 365 days. Please remove the stale label or comment below, or this issue will be closed in 14 days. If this improvement is still desired but has no current owner, please add the 'Status: needs champion' label.