-
Notifications
You must be signed in to change notification settings - Fork 137
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
Labels
Comments
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
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
The text was updated successfully, but these errors were encountered: