Method and device for realizing cold and hot data migration between DRAM and PMEM

A technology of hot and cold data and hot pages, which is applied in the field of realizing hot and cold data migration between DRAM and PMEM, can solve the problems of application performance degradation and PMEM memory access speed, etc., and achieves simple structure, improved memory access performance, wide The effect of the application foreground

Active Publication Date: 2022-05-06
SUZHOU LANGCHAO INTELLIGENT TECH CO LTD
View PDF5 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] PMEM persistent memory has the characteristics of large capacity. A PMEM persistent memory can reach TB level, and the Linux kernel has also supported the recognition of PMEM memory as ordinary memory. Applications can access DRAM and PMEM without perception, but now they are accessing PMEM memory There is still a problem: the access speed of PMEM memory is slower than that of DRAM, but the hot memory frequently accessed by the application may be located on PMEM, and the memory accessed infrequently may be located on DRAM, which will cause the performance of the application to degrade

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for realizing cold and hot data migration between DRAM and PMEM
  • Method and device for realizing cold and hot data migration between DRAM and PMEM
  • Method and device for realizing cold and hot data migration between DRAM and PMEM

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0084] like figure 1 As shown, the present invention provides a kind of method that realizes cold and hot data migration between DRAM and PMEM, comprises the steps:

[0085] S1. Divide PMEM memory and DRAM memory on the same memory controller into different numa nodes, and set the corresponding numa nodes of PMEM memory as slow nodes, and set the corresponding numa nodes of DRAM memory as fast nodes;

[0086] S2. Obtain the distance between each numa node, and divide the nearest slow node and fast node into a node group;

[0087] S3. Identify cold pages on the fast nodes according to the first time threshold, and identify hot pages on the slow nodes according to the second time threshold, and migrate the cold pages on the fast nodes to the slow nodes in the same node group, And migrate hot pages on slow nodes to fast nodes in the same node group;

[0088] S4. When performing cold page migration, if the slow nodes in the node group have been used up, increase the first time t...

Embodiment 2

[0090] like figure 2 As shown, the present invention provides a kind of method that realizes cold and hot data migration between DRAM and PMEM, comprises the steps:

[0091] S1. Divide PMEM memory and DRAM memory on the same memory controller into different numa nodes, and set the corresponding numa nodes of PMEM memory as slow nodes, and set the corresponding numa nodes of DRAM memory as fast nodes; the specific steps are as follows:

[0092] S11. Obtain the number of CPUs of the operating system, and create different numa nodes for the PMEM memory and DRAM memory on the corresponding memory controller of each CPU;

[0093] S12. Divide the numa node corresponding to the PMEM memory into a slow node, and divide the numa node corresponding to the DRAM memory into a fast node;

[0094] S2. Obtain the distance between each numa node, and divide the nearest slow node and fast node into a node group; the specific steps are as follows:

[0095] S21. Obtain the distance between ea...

Embodiment 3

[0137] Such as image 3 As shown, the present invention provides a kind of device that realizes cold and hot data migration between DRAM and PMEM, comprising:

[0138] Node division module 1 is used to divide the PMEM memory and DRAM memory on the same memory controller into different numa nodes, and set the numa nodes corresponding to PMEM memory as slow nodes, and set the numa nodes corresponding to DRAM memory as fast nodes ; Node division module 1 includes:

[0139] The numa node creation unit 1.1 is used to obtain the number of CPUs of the operating system, and create different numa nodes for the PMEM memory and DRAM memory on the corresponding memory controller of each CPU;

[0140] The slow node and fast node division unit 1.2 is used to divide the numa node corresponding to the PMEM memory into a slow node, and divide the numa node corresponding to the DRAM memory into a fast node;

[0141] The node group setting module 2 is used to obtain the distance between each n...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a method and device for achieving cold and hot data migration between a DRAM and a PMEM, and belongs to the technical field of memory management.The method comprises the steps that a PMEM and a DRAM are divided into different nodes, and slow nodes and fast nodes are set; obtaining the distance between the nodes, and dividing a low-speed node and a high-speed node into a node group according to the distance; identifying a cold page on the fast node according to a time threshold value, identifying a hot page on the slow node, migrating the cold page to the slow node in the same node group, and migrating the hot page to the fast node in the same node group; and when cold and hot page migration is carried out, if the memory of the destination node is used up, adjusting a cold and hot page identification threshold. According to the method, cold and hot identification of the memory page is realized, the hot page can be migrated from the PMEM to the DRAM, the cold page can be migrated from the DRAM to the PMEM, the identification time is adjusted, and the cold and hot memory migration tends to be stable.

Description

technical field [0001] The invention belongs to the technical field of operating system memory management, and in particular relates to a method and a device for realizing cold and hot data migration between DRAM and PMEM. Background technique [0002] DRAM is the abbreviation of Dynamic Random Access Memory, dynamic random access memory. [0003] PMEM, the abbreviation of Persistent Memory, persistent memory, is a new type of memory currently used, with the characteristics of large capacity and data persistence. [0004] Many business programs in the server operating system require a large amount of memory resources when running, such as big data-related businesses, and the current price of DRAM memory is relatively high. Many companies are studying how to make the most effective use of limited memory resources, such as optimizing The existing memory recycling mechanism reclaims memory that has not been used for a long time. [0005] PMEM persistent memory has the charact...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F3/06
CPCG06F3/0607G06F3/0647G06F3/0688Y02D10/00
Inventor 崔士伟
Owner SUZHOU LANGCHAO INTELLIGENT TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products