Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why jemalloc greatly reduces memory usage? #2324

Closed
adityapatadia opened this issue Aug 15, 2020 · 2 comments
Closed

Why jemalloc greatly reduces memory usage? #2324

adityapatadia opened this issue Aug 15, 2020 · 2 comments
Labels

Comments

@adityapatadia
Copy link

I have tried running sharp on production system with jemalloc and without jemalloc running glibc with 20.04 ubuntu. I see jemalloc greatly reduces memory usage.

With Jemalloc:
Screenshot 2020-08-15 at 10 58 14 AM

Without Jemalloc:
Screenshot 2020-08-15 at 2 47 03 PM

@lovell
Copy link
Owner

lovell commented Aug 15, 2020

Did you see the canonical discussion about memory allocators at #955 ?

@adityapatadia
Copy link
Author

I saw discussion and only thing I understand is Jemalloc is better retuning memory back to OS. It's strange that glibc which works super well in other scenarios does not work well with sharp/libvips workload. Anyway, this question was asked just out of curiosity.

I am happy with jemalloc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants