Memory Page Processing Method and Device, Apparatus, and Storage Medium
AssigneeHuawei Technologies Co., Ltd.
InventorsZheng Li, Shunning Jiang, Jie Peng
Life of this patent
Estimating the term…
Abstract
According to a memory page processing method, after a memory page is allocated to a virtual address that causes a page fault, the allocated memory page is pre-padded with first data, and then the memory page padded with the first data is accessed. Subsequently, if data in the memory page is migrated to a cache, the first data padded in the memory page is also migrated to the cache. If the data in the memory page is evicted from the cache to a memory, the evicted cache data may also include the first data.
Claims20
A method comprising:
- allocating, when a first virtual address accessed by an application program causes a page fault, a first memory page to the first virtual address;
- padding the first memory page with first data to obtain a padded first memory page, wherein the first data is in a data sequence corresponding to a cache compression mode to be used when cache data written by the application program in a cache is migrated to a memory page;
- and
- accessing the padded first memory page based on the first virtual address.
A memory page processing method comprising:
- obtaining an allocation notification message, wherein the allocation notification message notifies that a first memory page has been allocated to a first virtual address for a page fault, and wherein the page fault is caused by an application program accessing the first virtual address;
- and
- padding the first memory page with first data,
- wherein the first data is in a data sequence corresponding to a cache compression mode to be used when cache data written by the application program in a cache is migrated to a memory page.
An electronic device comprising:
- a memory configured to store program code;
- and
- one or more processors coupled to the memory and configured to execute the program code to cause the electronic device to:
- allocate, when a first virtual address accessed by an application program causes a page fault, a first memory page to the first virtual address;
- pad the first memory page with first data to obtain a padded first memory page, wherein the first data is in a data sequence corresponding to a cache compression mode to be used when cache data written by the application program in a cache is migrated to a memory page;
- and
- access the padded first memory page based on the first virtual address.
Dependencies are inferred from the claim text.