-
Notifications
You must be signed in to change notification settings - Fork 33
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
Memory balloons when compacting #86
Labels
kind/enhancement
A net-new feature or improvement to an existing feature
Comments
Stebalien
added
the
kind/enhancement
A net-new feature or improvement to an existing feature
label
Apr 1, 2020
|
Note: this is |
14 tasks
I think this is resolved by dgraph-io/badger#1292 but it is in the master branch of badger v2. |
Could this explain memory issues from ipfs/distributed-wikipedia-mirror#85 ? |
Yes.
|
Did some spelunking and the fix from dgraph-io/badger#1292 is already in v1.6.2 (was backported in: dgraph-io/badger#1505) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
While we've gotten most of the memory issues under control (see #17 and #83), we're still using the default value log size of 1GiB. Unfortunately, it looks like badger loads the entire value log into memory when compacting (garbage collecting). This happens whenever we delete more than 20% of the values in any given value log.
We can set the default value log size to be smaller (e.g., 64MiB?) but then we'll end up with more files open. As far as I know, badger never closes files.
The text was updated successfully, but these errors were encountered: