• Swann Perarnau's avatar
    [fix] Force mbind on allocation from arena · 759ec35a
    Swann Perarnau authored
    The way jemalloc handles big allocations can often result in surprising
    calls to mmap/mbind (splitting allocations, rounded up sizes). It also
    makes the path between an aml_alloc and mbind quite difficult to see.
    More worrying, if jemalloc reuses a previous allocation, the mbind will
    not be called again, which might result in the wrong binding happening.
    
    To fix those issues, we move the mbind logic to be around the
    allocations returned from jemalloc. This will ensure that we always bind
    properly. The only issue is that it might slow down allocations.
    
    It can also cause issues if the same arena is used by multiple areas, as
    allocations might be overlapping a page. We will move away from sharing
    arenas for benchmarks from now on.
    759ec35a
Name
Last commit
Last update
benchmarks Loading commit data...
jemalloc Loading commit data...
m4 Loading commit data...
src Loading commit data...
tests Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
Makefile.am Loading commit data...
README.markdown Loading commit data...
aml.pc.in Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...