-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Use a sync.Pool to allocate KVs during backup. #5579
Conversation
Copied from ESPLUS-75 Memory profiles for master and my branch:
Looks like the utilization of SingleListRollup goes from 500MB to 150MB with my PR. So the in-use memory is improving but we are not seeing those improvements in system memory. My guess is that the golang runtime is not releasing that memory, either because it will try to reuse it. I think it’s fine to go ahead with these changes since they improved in-use memory. We have run into similar situations before and we didn’t find a way to tell the runtime to release memory back to the OS. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 3 files reviewed, all discussions resolved (waiting on @manishrjain and @vvbalaji-dgraph)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 3 of 3 files at r1.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @vvbalaji-dgraph)
This change is
Docs Preview: