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

implement drain function for objcache and mcache heaps #1494

Open
wjhun opened this issue May 25, 2021 · 0 comments
Open

implement drain function for objcache and mcache heaps #1494

wjhun opened this issue May 25, 2021 · 0 comments
Labels

Comments

@wjhun
Copy link
Contributor

wjhun commented May 25, 2021

As part of a broader interface for all kernel datatypes that retain cached data, implement a drain method for caching heaps so that unused pages may be returned to parent heaps.

See #1130

@wjhun wjhun added the memory label May 25, 2021
francescolavra added a commit that referenced this issue Jul 15, 2022
This change introduces a new heap sub-type, called caching_heap,
that exports an additional callback to drain memory that has been
cached. The objcache heap is now a caching_heap.
In addition, the objcache heap now implements locking, which allows
safe use of the drain functionality in concurrently accessed heaps
without the need for an external lock.
Memory cleaner instances have been added in various places where an
objcache is used, so that caching heaps can be drained when the
system is low on memory.

Partially addresses #1494.
francescolavra added a commit that referenced this issue Jul 29, 2022
This change introduces a new heap sub-type, called caching_heap,
that exports an additional callback to drain memory that has been
cached. The objcache heap is now a caching_heap.
In addition, the objcache heap now implements locking, which allows
safe use of the drain functionality in concurrently accessed heaps
without the need for an external lock.
Memory cleaner instances have been added in various places where an
objcache is used, so that caching heaps can be drained when the
system is low on memory.

Partially addresses #1494.
francescolavra added a commit that referenced this issue Aug 6, 2022
This change introduces a new heap sub-type, called caching_heap,
that exports an additional callback to drain memory that has been
cached. The objcache heap is now a caching_heap.
In addition, the objcache heap now implements locking, which allows
safe use of the drain functionality in concurrently accessed heaps
without the need for an external lock.
Memory cleaner instances have been added in various places where an
objcache is used, so that caching heaps can be drained when the
system is low on memory.

Partially addresses #1494.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant