Memory exchange method and device, computer device and storage medium

By updating page table information and adding metadata update tasks to the task queue when memory swapping is interrupted, the problem of long-term blocking in traditional memory swapping schemes is solved, improving interrupt recovery speed and memory swapping efficiency.

CN115617542BActive Publication Date: 2026-07-10ALIBABA (CHINA) CO LTD +1

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
ALIBABA (CHINA) CO LTD
Filing Date
2022-10-11
Publication Date
2026-07-10

AI Technical Summary

Technical Problem

In traditional memory swapping schemes, page table information and metadata need to be updated when an interrupt occurs, making it difficult for the operating system to quickly resume the interrupted task and potentially causing a prolonged blockage.

Method used

Upon receiving the swap completion message from the target memory, the operating system interrupts the current task, updates the page table information of the memory block, and adds it to the memory swap task queue. This reduces the execution of metadata update tasks, avoids holding locks, and lowers the probability of prolonged blocking.

Benefits of technology

It improves interrupt recovery speed, reduces the impact on the operating system, and increases the efficiency of memory swapping.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115617542B_ABST
    Figure CN115617542B_ABST
Patent Text Reader

Abstract

Embodiments of the present specification provide a memory exchange method and device, computer equipment and a storage medium, the method comprising: obtaining a to-be-processed exchange task, determining a memory block of data to be exchanged according to the to-be-processed exchange task, and sending an exchange request corresponding to the memory block to a target memory; when receiving an exchange completion message returned by the target memory, interrupting a first task currently being executed, and performing an operation of updating page table information of the memory block and adding a metadata update task of the memory block in a preset task queue, after the operation is completed, resuming the first task; if it is detected that a set condition is met, processing the metadata update task in the preset task queue.
Need to check novelty before this filing date? Find Prior Art