-
Notifications
You must be signed in to change notification settings - Fork 903
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Memory blowup with synthetic test: mimalloc 2 uses all available memory, mimalloc 3 ok #1001
Comments
@JochenBaier : very interesting -- What is the red/blue line? The yellow line is the "commit" right? (not virtual). We have been working on |
Thank you for the response.
The chart was created with Windows Performance Monitor (saved to csv) with counters: Working Set (blue), Working Set – Private (red) and Private Bytes (yellow). The scenario for the memory increase in the real application looked like this (I tested what happens if a customer turn of machines during weekend to save energy, or bad network)
Simulation of the not reachable IP address was done with https://jagt.github.io/clumsy/:
I saved the charts for the real application test: Because of this problem we use standard heap manager for now (with around 20 % lower performance in some cases). |
Thanks -- I can repro locally on v2 as well and will look into it more. It seems v3 ( |
In a real application, I had a steady increase in memory with mimalloc. This was the case when the application tried to connect to an unreachable TCP/IP socket every 10 seconds overnight. No increase when mimalloc was disabled. ASAN leak test under Linux ok.
Unfortunately, I can no longer reproduce the problem with the real application.
However, I was able to create a synthetic test which shows a similar behavior. Private bytes and working set since increases steadily. Tested with 3 computers (Windows 10, 11) with mimalloc 2.1.9, dev2 and dev3. No increase with standard Windows malloc, no increase with mimalloc dev3 branch and jemalloc. ASAN test linux ok.
Chart attached (Core i7-4770, 8 Core, 16 GB RAM, Windows 10)
Test case:
The text was updated successfully, but these errors were encountered: