-
Notifications
You must be signed in to change notification settings - Fork 61
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
High memory usage on default allocator #93
Comments
The problem is with large batch size and small individual values. There's a lot of overhead for this use case. Most of the overhead is storing modified index pages in |
Is there something on ParityDB side that doesn't allow allocator to later reclaim most of this memory BTW? We see our app using ~1.3G of RAM until this step, but doesn't go down to quite the same level afterwards. |
Yes, some of the internal overlays just stay at peak usage. We'll add a patch to release them when writes are idling. |
Hm... that explains further growth as we open more and more databases (about 10 of that kind typically). |
After switching from rocksdb to parity db we discovered high memory usage on system allocator:
Here is the code for reproducing the issue:
The text was updated successfully, but these errors were encountered: