-
Notifications
You must be signed in to change notification settings - Fork 12
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
compaction generate a memory leak ? #37
Comments
It's the same problem without compaction ... To be continued |
Thanks for checking! I assume it's the behavior of the super sstable and its memory mapped file. You can run a memprofile and see where all the memory goes :) |
The step up is from the memstore flush, not the compaction. I continue to find out why. Pprof don't give me usefull information. |
I assume, because of the async flushing from the channel, the memory temporarily increases. If you can't write fast enough, the memory will fill up quickly again with a second memstore, which makes the apparence that it doubles. The second memstore flush is then waiting for the channel to free again, so this is proving some backpressure in this situation |
Showing top 10 nodes out of 55 It seem that the writer don't release the memory |
guess it's the buffer pool? |
maybe, i'm investigating. This pool should be released after the close. |
Yeah, the GC behavior depends a lot on the memory pressure of the machine. There's a great blog post that highlights this: |
I think that the compaction process has a memory leak.
I will try to figure out why.
The text was updated successfully, but these errors were encountered: