Skip to content

canton, docker image: Add libjemalloc2#318

Closed
giner wants to merge 1 commit into
canton-network:mainfrom
giner:stas/docker_image_add_libjemalloc
Closed

canton, docker image: Add libjemalloc2#318
giner wants to merge 1 commit into
canton-network:mainfrom
giner:stas/docker_image_add_libjemalloc

Conversation

@giner

@giner giner commented Apr 9, 2025

Copy link
Copy Markdown
Contributor

Allow operators to use an efficient memory allocator libjemalloc2 without necessity to rebuild images

Allow operators to use an efficient memory allocator libjemalloc2
without necessity to rebuild images

Signed-off-by: Stanislav German-Evtushenko <[email protected]>
@giner giner force-pushed the stas/docker_image_add_libjemalloc branch from 1af5446 to 99d46ac Compare April 9, 2025 08:01
@moritzkiefer-da

Copy link
Copy Markdown
Contributor

@giner how are you using this in practice? i.e. where do you enable it for what?

@giner

giner commented May 2, 2025

Copy link
Copy Markdown
Contributor Author

I used libjemalloc2 in other projects but can't do this easily in with splice unless it's available in docker images. The main use is decreasing memory fragmentation but it is also useful for memory profiling. In order to use it environment variable LD_PRELOAD has to be set to /usr/lib/x86_64-linux-gnu/libjemalloc.so.2. Splice helm charts allow to add arbitrary environment variables.

@moritzkiefer-da

Copy link
Copy Markdown
Contributor

the LD_PRELOAD part was the one I was interested in, ok seems reasonable. Merging

@moritzkiefer-da

Copy link
Copy Markdown
Contributor

merged internally, will be included in the next release, thank you!

@giner giner deleted the stas/docker_image_add_libjemalloc branch August 14, 2025 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants