RFC: replace ptmalloc2
Will Newton
will.newton@linaro.org
Wed Oct 15 13:33:00 GMT 2014
On 15 October 2014 05:52, Jörn Engel <joern@purestorage.com> wrote:
> On Wed, Oct 15, 2014 at 12:00:31AM -0400, Rich Felker wrote:
>>
>> What benchmark are you using? I'd like to run it on my malloc.
>
> Something pretty primitive that grew out of a simple memhog. Use at
> your own risk.
I've spent a bit of time thinking about improving malloc performance
in glibc, initially with the intent to produce an allocator to replace
ptmalloc2 but that has stalled due to lack of time.
I currently have some microbenchmarks and a script to run a few open
source applications inside a docker container and measure the
performance of the commonly used allocators. I could certainly use
more and more realistic workloads to add to it:
https://git.linaro.org/toolchain/cortex-malloc.git
So far I would say that tcmalloc seems to have the best performance
but the highest space overhead.
--
Will Newton
Toolchain Working Group, Linaro
More information about the Libc-alpha
mailing list