Abstract:
Methods and apparatuses pertaining to dynamic memory sharing may involve sharing a first portion of a memory associated with a first module for use by a second module. The first portion of the memory may be reclaimed for use by the first module in real time upon a determination that there is an increase in demand for the memory by the first module that requires reclamation, such that the first module begins to use the first portion of the memory before the second module finishes a process of aborting to use the first portion of the first memory.
Abstract:
A memory management method includes: performing a first-level collection operation upon first storage units in a memory pool allocated in a memory device; and after the first storage units are processed by the first-level collection operation, performing a second-level collection operation upon second storage units in the memory pool allocated in the memory device, wherein one of the first-level collection operation and the second-level collection operation is a page-level collection operation, and another of the first-level collection operation and the second-level collection operation is a bank-level collection operation.
Abstract:
The present invention provides a method for managing memory space in an electronic device including: selecting a candidate page from a first memory space for swapping the candidate page out of the first memory space into the second memory space; compressing the candidate page to obtain a first compressed page and a first hash value of the first compressed page; performing a comparison using the first hash value of the first compressed page and the hash values of the pages stored in a second memory space to find whether the pages have the same content as the first compressed page or the candidate page; and if a page is found to have the same content as the first compressed page or the candidate page, mapping a virtual address of the first compressed page or the candidate page to the found page.
Abstract:
Techniques and implementations pertaining to a heterogeneous swap space with dynamic thresholds are provided. A technique may provide a list of a plurality of swap areas in a heterogeneous swap space. The swap areas may include at least two swap areas that are different from each other in one or more characteristics. The technique may also compute a dynamic threshold associated with a page in need of swapping and determine a priority level of the page in need of swapping based on the dynamic threshold. The technique may further select one of the swap areas from the list of swap areas for the swapping of the page in response to a determination of the priority level of the page.