IP Library Granted Patent US 12,399,642
Granted Patent B2
US 12,399,642 · App. 18/687,206 · Granted Aug 26, 2025

Heterogeneous memory-based data migration method based on recent access interval and memory access paths

Inventors: Zhengxian Zhang (Beijing, CN); Xunlei Pang (Chengdu, CN); Jiang Zhong (Hangzhou, CN); Baolin Wang (Shanghai, CN)
Assignee: Hangzhou Alicloud Feitian Information Technology Co., LTD.
G06F3/0649G06F3/061G06F3/0685
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,399,642
App. No.
18/687,206
Granted
Aug 26, 2025
Kind
B2
Abstract

Embodiments of the present specification provide a data migration method based on a heterogeneous memory, the heterogeneous memory comprising a high-speed memory and a low-speed memory. The method comprises: determining access frequency information of memory pages by monitoring a memory access operation for the heterogeneous memory; and migrating, under a first condition, cold data in the high-speed memory to the low-speed memory, the cold data being determined based on the access frequency information.

Claims (50)

1. A data migration method based on a heterogeneous memory, the heterogeneous memory comprising a first memory area and a second memory area, wherein a read-write speed in the first memory area is higher than a read-write speed in the second memory area; and the method comprises:

determining access frequency information of memory pages by monitoring a memory access operation for the heterogeneous memory;

migrating, under a first condition, cold data in the first memory area to the second memory area, wherein the cold data is determined based on the access frequency information; and

migrating hot data in the second memory area to the first memory area, wherein the hot data is determined based on the access frequency information;

wherein the determining the access frequency information of the memory pages by monitoring the memory access operation for the heterogeneous memory comprises;

monitoring memory access paths for the heterogeneous memory to acquire hot path information; and

adding, according to the hot path information, a hotness label for a relevant memory page in the second memory area.

2. The method according to claim 1 , wherein the determining the access frequency information of the memory pages by monitoring the memory access operation for the heterogeneous memory comprises:

periodically acquiring, according to a predetermined time cycle, a recent access interval of each memory page in the first memory area, wherein the recent access interval indicates a number of interval cycles between a last access operation time and a current time cycle; and

determining, according to the recent access interval, a coldness label of each memory page, and incorporating the coldness label of each memory page into the access frequency information.

3. The method according to claim 2 , wherein the coldness label indicates whether a corresponding memory page is a cold page; and

the migrating the cold data in the first memory area to the second memory area comprises:

determining, in the first memory area, at least part of pages that are indicated as the cold pages by the coldness labels, and migrating data in the at least part of pages as the cold data to the second memory area.

4. The method according to claim 2 , wherein the coldness label indicates a coldness level of a corresponding memory page; and migrating the cold data in the first memory area to the second memory area comprises:

sequentially, in descending order of the coldness levels, migrating cold data in corresponding memory pages to the second memory area.

5. The method according to claim 1 , wherein the first condition comprises one of following:

it has been determined that a current remaining available space of the first memory area is less than a preset first capacity;

a memory request has been received, and a requested capacity by the memory request is greater than the current remaining available space; or

a memory request has been received, and an expected remaining space after deducting the requested capacity by the memory request from the current remaining available space is less than a preset second capacity.

6. The method according to claim 1 , wherein the migrating, under the first condition, the cold data in the first memory area to the second memory area comprises:

migrating the cold data to the second memory area in a case where it is detected that a current remaining available space in the first memory area is less than a preset first capacity;

after migrating the cold data in the first memory area to the second memory area, the method further comprises:

receiving a memory request, and allocating a corresponding requested capacity in the first memory area, wherein the corresponding requested capacity is not greater than the preset first capacity.

7. The method according to claim 1 , wherein the hot path information comprises:

information of a memory access path with an access frequency greater than a frequency threshold within a preset first time period; or information of a memory access path with an access history within a second time period from a current moment.

8. The method according to claim 1 , wherein the hotness label indicates a hotness level of a corresponding memory page; and

the migrating the hot data in the second memory area to the first memory area comprises:

sequentially, in descending order of the hotness levels, migrating hot data in corresponding memory pages to the first memory area.

9. A data migration method based on a heterogeneous memory, the heterogeneous memory comprising a first memory area and a second memory area, wherein a read-write speed in the first memory area is higher than a read-write speed in the second memory area; and the method comprises:

determining access frequency information of memory pages by monitoring a memory access operation for the heterogeneous memory;

migrating, under a first condition, cold data in the first memory area to the second memory area, wherein the cold data is determined based on the access frequency information; and

migrating hot data in the second memory area to the first memory area, wherein the hot data is determined based on the access frequency information;

wherein the determining the access frequency information of the memory pages by monitoring the memory access operation for the heterogeneous memory comprises:

in response to a certain memory page in the second memory area having been accessed, determining a time interval between a time when the certain memory page is migrated out from the first memory area to the second memory area and a current time; and

adding a hotness label for the certain memory page according to the time interval, and incorporating the hotness label into the access frequency information.

10. The method according to claim 9 , wherein the certain memory page corresponds to a certain operation object in an application layer, and the certain operation object has a preconfigured associated operation object; wherein the determining the access frequency information of the memory pages comprises:

adding, according to the time interval, the hotness label for a memory page corresponding to the associated operation object.

11. The method according to claim 9 , wherein the hotness label indicates whether data in a corresponding memory page is the hot data, and the hotness label is determined based on a comparison between the time interval and an interval threshold.

12. The method according to claim 11 , wherein the migrating the hot data in the second memory area to the first memory area comprises:

reducing the interval threshold if it is detected that a data amount of the hot data having been migrated within a historical period exceeds a corresponding upper limit threshold; or increasing the interval threshold if it is detected that a data amount of the hot data having been migrated is less than a corresponding lower limit threshold.

13. The method according to claim 9 , wherein the hotness label indicates a hotness level of a corresponding memory page; and

the migrating the hot data in the second memory area to the first memory area comprises:

sequentially, in descending order of the hotness levels, migrating hot data in corresponding memory pages to the first memory area.

14. A computing device, comprising a memory and a processor, wherein executable codes are stored in the memory, and implement, when executed by the processor, operations of:

determining access frequency information of memory pages by monitoring a memory access operation for a heterogeneous memory;

migrating, under a first condition, cold data in a first memory area to a second memory area, wherein the cold data is determined based on the access frequency information; and

migrating hot data in the second memory area to the first memory area, wherein the hot data is determined based on the access frequency information;

wherein the determining the access frequency information of the memory pages by monitoring the memory access operation for the heterogeneous memory comprises;

monitoring memory access paths for the heterogeneous memory to acquire hot path information; and

adding, according to the hot path information, a hotness label for a relevant memory page in the second memory area.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 30, 2026
From: HANGZHOU ALICLOUD FEITIAN INFORMATION TECHNOLOGY CO., LTD.
To: CLOUD INTELLIGENCE ASSETS HOLDING (SINGAPORE) PRIVATE LIMITED
Reel/Frame 075366/0376 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded May 16, 2024
From: ZHANG, ZHENGXIAN; PANG, XUNLEI; ZHONG, JIANG; WANG, BAOLIN
To: HANGZHOU ALICLOUD FEITIAN INFORMATION TECHNOLOGY CO., LTD.
Reel/Frame 067440/0189 →
Priority Claims (1)
CN 202111005906.9 · Aug 30, 2021 · national
Continuity (1)
Related Publication 20240361942A1 · Oct 31, 2024
References Cited (14)
US 20150106582A1 · Mai · 2015 [cited by examiner]
US 20150370503A1 · Helak · 2015 [cited by examiner]
US 20160070478A1 · Hara · 2016 [cited by examiner]
US 20180046378A1 · Coburn et al. · 2018 [cited by applicant]
US 20180107598A1 · Prodromou et al. · 2018 [cited by applicant]
US 20180260323A1 · John et al. · 2018 [cited by applicant]
US 20190095104A1 · Greenfield · 2019 [cited by examiner]
US 20200218668A1 · Han et al. · 2020 [cited by applicant]
US 20220291853A1 · He · 2022 [cited by examiner]
CN 109901800A · 2019 [cited by applicant]
CN 110134514A · 2019 [cited by applicant]
CN 113835624A · 2021 [cited by applicant]
Chinese Office Action for CN Application No. 202111005906.9 mailed Mar. 6, 2024, 14 pgs. [cited by applicant]
International Search Report for PCT Application No. PCT/CN2022/112554 mailed Oct. 28, 2022, 3 pgs. [cited by applicant]