Back to results
US 11,531,625 B2Granted
Memory management method and apparatus
AssigneeHuawei Technologies Co., Ltd.
InventorsQiulin Chen, Wanglai Yao, Yunjian Ying
Life of this patent
Estimating the term…
Abstract
A memory management method includes determining a memory page that needs to be swapped out of a memory, for each memory page that needs to be swapped out, generating, based on the memory page, a work task reclaiming the memory page, and allocating each work task to a dedicated worker thread for execution.
Claims20
A memory management method comprising:
- determining memory pages that need to be swapped out of a memory, wherein the memory pages comprise a memory page in a page frame, and wherein the page frame is in a least recently used (LRU) linked list;
- generating, for each memory page that needs to be swapped out, a work task reclaiming a corresponding memory page;
- allocating each work task to a dedicated worker thread in an optimal state for execution, wherein the dedicated worker thread is a worker thread dedicated to processing a work task, and wherein a work queue of the dedicated worker thread excludes a work task that needs to be processed;
- and
- determining a condition of the page frame is at least one of the following:
- the page frame is dirty and is to be written back;
- the page frame is to be swapped out;
- or
- the page frame is to be reclaimed based on an indication from an application and all mapping relationships between the page frame and processes are to be removed based on scan control structure information of the memory.
6 more elements
A computer system, comprising:
- a storage medium configured to store instructions;
- and
- one or more processors coupled to the storage medium, wherein the instructions cause the one or more processors to be configured to:
- determine memory pages that need to be swapped out of a memory, wherein the memory pages comprise a memory page in a page frame, and wherein the page frame is in a least recently used (LRU) linked list;
- generate, for each memory page that needs to be swapped out, a work task reclaiming a corresponding memory page;
- allocate each work task to a dedicated worker thread in an optimal state for execution, wherein the dedicated worker thread is a worker thread dedicated to processing a work task, and wherein a work queue of the dedicated worker thread excludes a work task that needs to be processed;
- and
- determine a condition of the page frame is at least one of the following:
- the page frame is dirty and is to be written back;
- the page frame is to be swapped out;
- or
- the page frame is to be reclaimed based on an indication from an application and ab mapping relationships between the page frame and processes are to be removed based on scan control structure information of the memory.
9 more elements
A computer program product comprising computer-executable instructions stored on a non-transitory computer-readable medium that, when executed, cause a computer system to:
- determine memory pages that need to be swapped out of a memory, wherein the memory pages comprise a memory page in a page frame, and wherein the page frame is in a least recently used (LRU) linked list;
- generate, for each memory page that needs to be swapped out, a work task reclaiming a corresponding memory page;
- allocate each work task to a dedicated worker thread in an optimal state for execution, wherein the dedicated worker thread is a worker thread dedicated to processing a work task, and wherein a work queue of the dedicated worker thread excludes a work task that needs to be processed;
- and
- determine a condition of the page frame is at least one of the following;
- the page frame is dirty and is to be written back,
- the page frame is to be swapped out;
- or
- the page frame is to be reclaimed based on an indication from an application and all mapping relationships between the page frame and processes are to be removed based on scan control structure information of the memory.
6 more elements
Dependencies are inferred from the claim text.