Skip to content

[Bug]: jemalloc does not support setting malloc_conf #4427

Open
@stevebarrau

Description

@stevebarrau

What happened?

First off, thanks @sallustfire for the jemalloc module!

I am trying to migrate our http_archive+rules_foreign_cc from the WORKSPACE world to using this module and I feel we are so close. This is our configure options and what I understand the replacements are:

Configure Options Replacement
--disable-cxx @jemalloc//settings/flags:enable_cxx=false
--enable-doc=no ?
--enable-shared=no not required
--with-jemalloc-prefix=_rjem_ @jemalloc//settings/flags:jemalloc_prefix=_rjem_
--with-malloc-conf=metadata_thp:auto,narenas:128,prof:true ?
--with-private-namespace=_rjem_ ?

IIUC we need code changes to support passing down a malloc-conf; correct?

Version

Output of bazel --version: bazel 7.6.1

Version of relevant rules from the WORKSPACE or MODULE.bazel file: [email protected]

Language(s) and/or frameworks involved: C++ for jemalloc, and rust wrapping it in tikv-jemalloc-sys.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions