-
Notifications
You must be signed in to change notification settings - Fork 310
Changes the memory allocator to use jemalloc to address memory leak issues #3566
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
base: master
Are you sure you want to change the base?
Conversation
Hi, this is very interesting, but I get the impression jemalloc is no longer actively maintained, perhaps there are other alternatives that would bring a similar benefit? Also, does this have any performance cost? For a quick check you can do:
I usually also clear the disk cache first before I run this:
Thanks! |
Maybe mimalloc, jemalloc is archived. |
I don't know why they keep the repository as archived, but it is constantly receiving updates, with the last updates made 4 days ago and in the Issues there is information that a new stable release should be released this semester. |
Performance Benchmark ResultsTest 1: Without changes or clean cache
Test 2: With JEMALLOC without clean cache
Test 3: Without changes and CLEAN cache
Test 4: With JEMALLOC and CLEAN cache
It seems to me that there is no significant difference in performance, but the small difference seems positive for Jemalloc. |
109476c
to
7eaf1a8
Compare
…stem and at compilation time you can force it to be activated or not.
Includes some changes to avoid compatibility issues. When compiling nemo, if meson detects that jemalloc is installed, it will automatically use it in nemo, in addition to having the option to enable or disable it. |
In the past few days, I tried several approaches to resolve memory leak issues in Nemo. I have a folder with 29,000 subfolders that I was using for testing. Scrolling quickly through this folder causes memory usage to exceed 1 GB.
Even after leaving the folder, the memory consumption remains high. However, when using jemalloc, switching to another folder brings memory usage back to normal, around 50 MB.
I used this folder with a huge number of subfolders to make testing easier, but folders with a thousand files are already sufficient to identify the issue.