Hi Willy.
On 2025-02-08 (Sa.) 05:49, Willy Tarreau wrote:
Hi Alex,
On Sat, Feb 08, 2025 at 01:41:28AM +0100, Aleksandar Lazic wrote:
Hi.
Have anybody tried to use this malloc library with HAProxy?
https://github.com/microsoft/mimalloc
Oh, thank you for this link! No I never tested it but I've read their
README and it looks super appealing, precisely because their main focus
is worst case latency. While jemalloc performs super fast (which is also
reflected in their benchmarks), we've got a few reports of some extremely
long free() operations trying to purge too many objects and taking more
than one second, which is absolutely not acceptable.
The MIT license even allows to easily embed it into existing projects,
though contrary to the venerable old dlmalloc, it's no longer a single
file at all, and the code is a bit dirty with inconsistent coding styles
between functions clearly coming from different contributors, so I
suspect it could easily trigger warnings if built with the project's
main files and build options. I'm also seeing that it requires special
build options for valgrind and ASAN.
I'll ping the few heavy users who experienced watchdogs in free(), in
case they want to give it a try.
Great, I'm very curious if this library could have any impact (+,-,=) to HAP :-)
Thank you!
Willy
Regards
Alex