#1625·gperftools

Feature request: allow for multiple `hugetlbfs` mountpoints in `TCMALLOC_MEMFS_MALLOC_PATH` with different page sizes.

Author: LeyviRoseCreated Dec 6, 2025Updated Dec 11, 2025

My system supports both 2MiB pages and 1GiB pages. I have hugetlbfs mounted at two different paths, each with a different page size. I'd like to be able to pass both to tcmalloc through TCMALLOC_MEMFS_MALLOC_PATH, maybe separated by a colon. I'd like for tcmalloc to decide (based on the allocation size) which page size would be more efficient, and which is available, etc.

Is that doable? Is there demand for this (besides me)?