Replies: 3 comments 5 replies
-
I think it was always the unwritten recommendation for production apps. |
Beta Was this translation helpful? Give feedback.
-
I think |
Beta Was this translation helpful? Give feedback.
-
I have recently started observing that RAM usage goes up again, even though I'm using jemalloc now. Analyzing the application with
I am puzzled by the huge difference between peak RSS and heap memory consumption. The heaptrack overhead shouldn't exceed a few hundred MB, so it looks like jemalloc is keeping a couple GB of unused memory and not returning it to the system. 🤔 |
Beta Was this translation helpful? Give feedback.
-
Recently, inspired by @nazar-pc I've decided to replace the default allocator for my rust-libp2p-based binaries, and it led to a significant reduction of memory footprint. Using jemallocator I have observed the following results:
This is a really big improvement. Similar results were achieved with mimalloc. Most binaries have some custom logic, but the bootnode is 99% rust-libp2p code. So it seems that perhaps we should have an official recommendation for rust-libp2p to swap out the default allocator?
@jxs
Beta Was this translation helpful? Give feedback.
All reactions