Skip to content
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

fix(cubestore): return physical memory to the system at rest #1981

Merged
merged 1 commit into from
Feb 2, 2021

Conversation

ilya-biryukov
Copy link
Contributor

We seem to hit limitations of malloc from glibc, which causes physical
memory to be retained by the allocator even after calls to free.

Call malloc_trim on allocation-heavy operations to ensure we return
freed memory to the system.

See the comment in the code for details.

We seem to hit limitations of `malloc` from glibc, which causes physical
memory to be retained by the allocator even after calls to `free`.

Call `malloc_trim` on allocation-heavy operations to ensure we return
freed memory to the system.

See the comment in the code for details.
@ilya-biryukov ilya-biryukov requested a review from a team as a code owner February 2, 2021 18:53
@paveltiunov paveltiunov merged commit 7249a7d into master Feb 2, 2021
@paveltiunov paveltiunov deleted the cubestore-memory branch February 2, 2021 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants