@tenderlove Thank you. I'm confused now. I will have to look into that. My understanding was, that you could use either malloc_trim or jemalloc, but not both. I thought they would do the same thing. Fullstaq ruby does not provide both at the same time, but they can be used at the same time?

1
Share
Share on Mastodon
Share on Twitter
Share on Facebook
Share on Linkedin
Aaron Patterson ✅

@eikes the Fullstaq website says it's "compile with both", but I think you are right. I think you can still call malloc_trim even when you have jemalloc enabled. According to the man page, malloc_trim is basically a wrapper for sbrk. It seems fine to call sbrk even when you're using jemalloc, but since jemalloc is better about releasing memory to the OS it might not be that helpful?

1
10mo
Replies