Memory data migration method, related device and computer equipment

By using a periodic sampling method based on sampling rules in the hybrid memory system to count the page access frequency, determine the access popularity and trigger data migration, the problem of long page access frequency statistics period in the existing technology is solved, and the data processing speed is improved and the data is reduced. This reduces latency and improves system performance.

CN118732934APending Publication Date: 2024-10-01HUAWEI TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202310379809.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-31
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

In the existing technology, the statistical period of page access frequency is long, which causes the processor to be unable to obtain the page access frequency in time, which affects the input/output performance of the system and may cause the memory with fast access speed to store infrequently accessed data or access speed. Slow memory stores frequently accessed data, affecting data processing speed and latency.

Method used

A periodic sampling method based on sampling rules is used to sample access requests, count the access frequency of the page to determine the access popularity of the page, and trigger data migration between different types of memory media to migrate hot data to the near-end memory. Migrate cold data to remote memory to improve data processing speed and reduce latency.

Benefits of technology

By reducing the amount of statistical data on page access frequency, the speed and accuracy of access frequency acquisition are improved, ensuring that the processor can obtain the access popularity of the page in time, improving the system's data processing speed and reducing data processing delay, and significantly improving system access. performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118732934A_ABST
    Figure CN118732934A_ABST
Patent Text Reader

Abstract

The invention discloses a memory data migration method, a related device and computer equipment, and relates to the field of computers. The method comprises the steps of sampling a plurality of access requests according to a periodic sampling mode indicated by a sampling rule, counting the access frequency of a page indicated by a sampling result so as to determine the access heat of the page according to the access frequency of the page, and triggering data migration according to the access heat. The access request is periodically sampled in multiple modes based on the sampling rule, so that the statistical accuracy of the access frequency of the page is ensured, the statistical data volume of the access frequency of the page is reduced, the access frequency of the page can be obtained by a processor as quickly as possible, and when data migration is triggered according to the access popularity of the page, the data migration efficiency is improved. The hot data can be migrated to the near-end memory, and the cold data can be migrated to the far-end memory, so that the processor can obtain frequently accessed data from the near-end memory as quickly as possible, the data processing speed of the system is improved, and the data processing time delay is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the computer field, and in particular to a memory data migration method, related devices and computer equipment. Background Art

[0002] At present, memory access heat is determined by counting the access frequency of memory pages, and data migration is performed based on memory access heat, that is, it is hoped that the memory with fast access speed will store frequently accessed data, and the memory with slow access speed will store infrequently accessed data. However, the statistical cycle of page access frequency is long, and the processor may not be able to obtain the page access frequency in time, affecting the performance of the system input / output (I / O), and may cause the memory with fast access speed to store infrequently accessed data, or cause the memory with slow access speed to store frequently accessed data, affecting the data processing speed and latency of the system. Summary of the invention

[0003] The present application provides a memory data migration method, related devices and computer equipment, thereby improving the data processing speed of the system and reducing the data processing delay.

[0004] In a first aspect, a memory data migration method is provided, which is applied to a hybrid memory system, wherein the hybrid memory system includes multiple processors and multiple different types of memory media, and the processor is associated with at least two different types of memory media. The method includes: sampling the access request obtained according to the periodic sampling method indicated by the sampling rule, counting the access frequency of the page indicated by the sampling result, so as to determine the access heat of the page according to the access frequency of the page, and triggering data migration between at least two different types of memory media according to the access heat. Among them, the access request is used to indicate the operation of the application running on the memory medium by the processor in the computer device. The access frequency intuitively indicates the frequency of data block access by the application. The more times the data block is accessed by the application, the more frequently the data block is accessed by the application, and the hotter the access heat of the data block; the fewer times the data block is accessed by the application, the less frequently the data block is accessed by the application, and the colder the access heat of the data block.

[0005] If a page is frequently accessed, the number of access requests for the access page is large. In this way, the memory data migration method provided by the present application samples the access requests in multiple ways based on the periodic sampling method indicated by the sampling rule, so the probability of the access requests of the frequently accessed pages being sampled is relatively high, and the trend of the frequent access of the page is determined based on the changing trend of the page access frequency, so as to ensure the statistical accuracy of the page access frequency and reduce the statistical data amount of the page access frequency, so that the processor can obtain the page access frequency as quickly as possible. When triggering data migration based on the page access heat, hot data can be migrated to the near-end memory, and cold data can be migrated to the far-end memory, so that the processor can obtain the frequently accessed data from the near-end memory as quickly as possible, thereby improving the data processing speed of the system and reducing the data processing delay.

[0006] The access speed of the proximal memory is greater than the access speed of the distal memory. For example, the proximal memory may be a dynamic random access memory (DRAM) or a double data rate synchronous dynamic random access memory (DDR SDRAM). The distal memory may be a storage-class-memory (SCM).

[0007] The multiple different types of memory media include a first memory medium and a second memory medium, the memory medium associated with the processor includes the first memory medium and the second memory medium, the access speed of the first memory medium is greater than the access speed of the second memory medium, and the access delay of the first memory medium is less than the access delay of the second memory medium. For example, the first memory medium may be a near-end memory, and the second memory medium may be a far-end memory.

[0008] In a possible implementation, sampling the obtained access request according to the sampling rule to obtain the sampling result includes: sampling the obtained access request according to the time interval based sampling mode indicated by the sampling rule to obtain the sampling result.

[0009] Thus, the access request to the memory is sampled at time intervals, and within the sampling interval, the reliance on storage of statistical data of the page access frequency is reduced; moreover, the page access frequency only needs to be transmitted within the sampling interval, reducing the demand for instantaneous bandwidth.

[0010] In another possible implementation, sampling the acquired access requests according to the time interval sampling mode indicated by the sampling rule to obtain the sampling result includes: sampling the acquired access requests according to the sampling frequency indicated by the sampling rule to obtain the sampling result. The sampling frequency is used to indicate the number of access requests separated by the sampling.

[0011] The sampling frequency is determined based on the memory bandwidth. Thus, the bandwidth and the statistical data of the page access frequency are balanced, so that the processor can obtain the page access frequency as quickly as possible, avoiding the situation where the page access frequency data is too large and the processor cannot obtain the page access frequency in time due to limited bandwidth.

[0012] Optionally, the sampling frequency is determined based on the number of pages in the memory. When there are many pages, the number of access requests separated by the sampling indicated by the sampling frequency can be small; when there are few pages, the number of access requests separated by the sampling indicated by the sampling frequency can be large, so as to collect the access frequency of each page as much as possible.

[0013] In another possible implementation, sampling the acquired access requests according to the time interval sampling mode indicated by the sampling rule to obtain the sampling result includes: sampling the acquired access requests according to the quantity characteristics of the access requests within the sampling period indicated by the sampling rule to obtain the sampling result. The sampling period is used to indicate the length of time between samplings.

[0014] In another possible implementation, sampling the obtained access request according to the sampling rule to obtain the sampling result includes: sampling the obtained access request at least once according to the sampling number of times indicated by the sampling rule to obtain the sampling result. Thus, by sampling multiple access requests multiple times, the statistical accuracy of the page access frequency can be improved.

[0015] In another possible implementation, sampling the obtained access request according to the sampling rule to obtain the sampling result includes: sampling the sampling sample in the obtained access request according to the sampling rule to obtain the sampling result.

[0016] In another possible implementation, counting the access frequency of the page indicated by the sampling result includes: determining an address index according to the address indicated by the access request, counting the access frequency associated with the address index, and the address indicated by the access request is used to indicate the page. Thus, the address indicated by the access request is trimmed to reduce the storage space occupied by the access frequency of the storage page.

[0017] In another possible implementation, the access request is used to instruct an application program running on a processor in a computer device to operate on a memory in an interleaved manner.

[0018] In a second aspect, a memory data migration device is provided, the memory data migration device comprising modules for executing the memory data migration method in the first aspect or any possible design of the first aspect.

[0019] In a third aspect, a memory is provided, the memory comprising a storage medium and a controller, the storage medium being used to store a set of computer instructions; when the controller executes the set of computer instructions, the operating steps of the method in the first aspect or any possible implementation of the first aspect are executed to realize the identification of the access frequency of the data block in the memory by the application program.

[0020] In a fourth aspect, a chip is provided, comprising: a processor and a power supply circuit; wherein the power supply circuit is used to supply power to the processor; and the processor is used to execute the operating steps of the method in the first aspect or any possible implementation of the first aspect to realize the identification of the access frequency of a data block in a memory by an application program.

[0021] In a fifth aspect, a processor is provided, the processor including at least two different types of memory media associated therewith, and the processor is used to execute the operating steps of the method in the first aspect or any possible implementation of the first aspect to identify the access frequency of data blocks in the memory medium by applications.

[0022] In a sixth aspect, a computer device is provided, which includes a memory, a plurality of different types of memory media, and a processor, wherein the memory is used to store a set of computer instructions; when the processor executes the set of computer instructions, the processor is used to execute the operating steps of the method in the first aspect or any possible implementation of the first aspect to realize the identification of the access frequency of a data block in the memory by an application program.

[0023] In the seventh aspect, a computer-readable storage medium is provided, comprising: computer software instructions; when the computer software instructions are executed in a processor, the processor executes the operating steps of the method described in the first aspect or any possible implementation of the first aspect.

[0024] In an eighth aspect, a computer program product is provided. When the computer program product is run on a computer, the computer is caused to execute the operation steps of the method described in the first aspect or any possible implementation manner of the first aspect.

[0025] The technical effects brought about by any design method in the second to eighth aspects can refer to the technical effects brought about by the first aspect or different design methods in the first aspect, and will not be repeated here.

[0026] Based on the implementations provided in the above aspects, this application can also be further combined to provide more implementations. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 A schematic diagram of the composition of a computer device provided for this application;

[0028] Figure 2A schematic diagram of a memory access heat statistics scenario provided for this application;

[0029] Figure 3 A flowchart of a memory data migration method provided in this application;

[0030] Figure 4 A schematic diagram of a sampling access request based on a sampling frequency provided by the present application;

[0031] Figure 5 A schematic diagram of a sampling access request based on a sampling period provided by the present application;

[0032] Figure 6 A schematic diagram of obtaining a sampling sample provided for this application;

[0033] Figure 7 A schematic diagram of address clipping provided for this application;

[0034] Figure 8 A flowchart of a memory access heat statistics method provided in this application;

[0035] Fig. 9 A flowchart of a method for obtaining access frequency provided by this application;

[0036] Fig.10 A schematic diagram of the structure of a memory data migration device provided in this application. DETAILED DESCRIPTION

[0037] For ease of description, the terms involved in this application are first briefly introduced.

[0038] In the hierarchy of computer storage systems, the closer the memory is to the processor, the faster the access speed and the smaller the storage capacity. Based on the order from closest to farthest from the processor, the memory is divided into: registers, cache memory, main memory, external memory.

[0039] Main memory, also known as internal memory, is abbreviated as main memory or memory. Main memory is an important component of the computer system, that is, the bridge for communication between external memory and processor. Main memory is used to temporarily store the calculation data in the processor and the data exchanged between the processor and external memory such as hard disk. For example, when the computer starts running, the data to be calculated is loaded from the main memory to the processor for calculation. After the calculation is completed, the processor stores the calculation result in the main memory. For example, main memory includes dynamic random access memory (DRAM) and double data rate synchronous DRAM (DDR SDRAM).

[0040] External storage, also known as auxiliary storage, is referred to as external storage or auxiliary storage for short. Compared with main storage, external storage has a large storage capacity and a slow access speed. For example, external storage includes network storage, solid state disk (SSD), and hard disk drive (HDD).

[0041] Cache memory is a high-speed, small-capacity memory between the processor and the main memory. Cache memory is referred to as cache. Compared with the main memory, the cache has a small storage capacity and a fast access speed. The cache includes the first-level cache (L1 cache), the second-level cache (L2 cache), and the third-level cache (L3 cache). The first-level cache is set inside the processor core. The second-level cache can be set inside or outside the processor core. The first-level cache and the second-level cache are usually exclusive to the processor core where they are located. The third-level cache is generally set outside the processor core and shared by multiple processor cores.

[0042] A register is a small memory located inside a processor, which is used to temporarily store the data and results of operations. A register can be a commonly used sequential logic circuit.

[0043] Hierarchical Storage Technology (HST) stores data in different storage devices with different performances in different ways according to data importance, access frequency, retention time, storage capacity, performance and other indicators, and realizes automatic migration of data between storage devices through hierarchical storage management.

[0044] Hot data refers to data that is frequently accessed by the processor. If hot data is stored in near-end memory, the processor can obtain the data as quickly as possible, which increases the data processing speed of the system and reduces the data processing delay, significantly improving the access performance of the system.

[0045] Cold data refers to data that is not frequently accessed by the processor. If cold data is stored in remote memory (farmemory), more data can be stored, and the local memory can store more hot data, thereby improving the resource utilization of the local memory and reducing system costs. For example, the cache memory is relative to the main memory, the cache memory is the local memory, and the main memory is the remote memory. For another example, the main memory is relative to the external memory, the main memory is the local memory, and the external memory is the remote memory.

[0046] A cache line is a unit in which a computer device reads or writes memory. The size of a cache line can be 64 bytes.

[0047] Page refers to the unit in which a computer device manages the storage space of memory. For example, the page size (pagesize) is 4KB, 2 megabytes (MB), or other byte sizes. A 4KB page can be called a small page. A 2MB page can be called a large page. The smaller the page, the more resources the computer device needs to manage memory; the larger the page, the fewer resources the computer device needs to manage memory. A page can include multiple cache lines, that is, the page size is a multiple of the cache line size.

[0048] Interleaving refers to evenly distributing memory access data to multiple memory channels according to unit storage space (for example, cache lines). The interleaving method can be configured by the system administrator and can be interleaved between multiple memory channels connected to a processor or between multiple memory channels of multiple processors.

[0049] Memory channels refer to multiple memories connected to a processor in a computer device. The processor can use interleaving technology to operate the memory. For example, the processor evenly distributes the data to be written to the memory to multiple memory channels according to the size of the cache line. Then, the processor reads data from multiple memory channels according to the size of the cache line. Thus, data processing is performed based on multiple memory channels to improve the memory bandwidth utilization and processing performance of the computer device.

[0050] The sampling frequency (frequency of sample), also known as sampling speed or sampling rate, indicates the number of samples extracted from a continuous signal and composed into a discrete signal per unit time, expressed in Hertz (Hz). The reciprocal of the sampling frequency is the sampling period or sampling time, and the sampling frequency is the time interval between samples. In layman's terms, the sampling frequency refers to how many signal samples a computer can collect per unit time.

[0051] In order to improve the data processing speed of the system and reduce the data processing delay, the present application provides a memory data migration method, which is applied to a hybrid memory system, wherein the hybrid memory system includes multiple processors and multiple different types of memory media, and the processors are associated with at least two different types of memory media. The method includes: sampling the obtained access requests according to the periodic sampling method indicated by the sampling rule, counting the access frequency of the page indicated by the sampling result, so as to determine the access heat of the page according to the access frequency of the page, and triggering data migration between at least two different types of memory media according to the access heat.

[0052] Due to the periodic sampling method indicated by the sampling rules, access requests are sampled in multiple ways to ensure the statistical accuracy of the page access frequency and reduce the statistical data amount of the page access frequency, so that the processor can obtain the page access frequency as quickly as possible. When data migration is triggered according to the page access popularity, hot data can be migrated to the near-end memory and cold data can be migrated to the far-end memory, so that the processor can obtain frequently accessed data from the near-end memory as quickly as possible, thereby improving the system's data processing speed and reducing data processing latency, significantly improving the system's access performance.

[0053] The memory data migration method provided in this application can be applied to fields such as artificial intelligence, big data, cloud computing, and scenarios containing multiple types of storage media, such as high-performance, large-capacity storage systems.

[0054] The implementation methods of the present application are described in detail below with reference to the accompanying drawings.

[0055] Figure 1 A schematic diagram of the composition of a computer device provided in this application. Figure 1 As shown, computer device 100 includes a processor 110 .

[0056] The processor 110 is the control center of the computer device 100. The processor 110 can be a computing unit with computing power such as a central processing unit (CPU), a graphics processing unit (GPU), a data processing unit (DPU), a neural processing unit (NPU), and an embedded neural network processor (NPU). The processor 110 can also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), systems on chip (SoC) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor, etc. For ease of description, the following embodiments are described by taking the processor 110 as a CPU as an example.

[0057] Figure 1 The computer device 100 may include one or more processors (e.g., processor 110 and processor 130). The processor may be a multi-core processor, that is, the processor includes one processor core or multiple processor cores. For example, Figure 1 The processor 110 shown in FIG. 1 includes N processor cores. A processor herein may refer to one or more devices, circuits, and / or computing units for processing data (eg, computer program instructions).

[0058] As the number of cores of a single processor increases, the computing speed of the processor also increases, and the processor's demand for memory access speed and memory capacity is also increasing. In one possible implementation, multiple different types of storage media are used together as the main memory (referred to as: memory or main memory) of a computer device to increase memory capacity, and allocate as much memory resources and memory bandwidth as possible from the memory to each processor core to meet the processor's demand for memory access speed and memory capacity. A system that uses multiple different types of storage media as memory can be called a hybrid memory system. The storage medium used as memory in a hybrid memory system can be called a memory medium. A processor can be associated with at least one type of memory medium, that is, some processors are associated with one type of memory medium, and some processors are associated with two or more types of memory medium.

[0059] For example, a computer device includes multiple different types of memory media. The multiple different types of memory media include a first memory medium and a second memory medium, the storage capacity of the first memory medium is lower than the storage capacity of the second memory medium, the access speed of the first memory medium is higher than the access speed of the second memory medium, the access delay of the first memory medium is lower than the access delay of the second memory medium, and the cost of the first memory medium is higher than the cost of the second memory medium.

[0060] The first memory medium may include a dynamic random access memory (DRAM). The second memory medium is a storage-class memory (SCM), and the SCM includes at least one of a phase-change memory (PCM), a magnetic random access memory (MRAM), a resistive random access memory (RRAM / ReRAM), a ferroelectric random access memory (FRAM), a fast NAND, or a nano-RAM (Nano-RAM, NRAM).

[0061] By way of example, the various types of memory media used as the main memory 120 in the computer device 100 include DRAM 121 and SCM 122. The processor 110 is connected to the DRAM 121 and the SCM 122 via an interface supporting memory semantics.

[0062] The processor 110 is used to run an application program to perform a read operation or a write operation on a memory medium (eg, DRAM 121, SCM 122), and to trigger data migration according to the access hotness or coldness of the memory medium.

[0063] Triggering data migration based on the access hotness of the memory medium can be alternatively described as triggering data migration based on the access hotness of the data stored in the memory medium. Data migration includes migrating cold data to the next level memory medium and migrating hot data to the previous level memory medium.

[0064] For example, when the cache line is cold data, the memory medium where the cache line is located is DRAM, and the cache line is migrated to the SCM.

[0065] For another example, when the cache line is hot data, the memory medium where the cache line is located is SCM, and the cache line is migrated to DRAM.

[0066] Understandably, any level of memory medium in the computer device can trigger data migration based on the degree of data access. Each memory medium migrates data level by level based on the degree of data access. Compared with the current memory medium, the storage capacity of the next level of memory medium is larger; the access speed of the previous level of memory medium is faster.

[0067] In some embodiments, the computer device counts the access frequency of the page at the granularity of the page (such as 4KB page, 2MB page), which is compatible with the page management method of the computer device for the memory, making the memory data migration method easy to use. For example, the processor operates the memory medium at the granularity of the cache line, and the cache line belongs to a certain page under management. The cache line in the memory medium is operated once, and the page to which the cache line belongs is also read and written once. The controller counts the access frequency of the page to which the cache line being operated belongs, effectively improving the accuracy of identifying the access heat of the page.

[0068] In the present application, the processor 110 is used to sample the obtained access requests according to the periodic sampling method indicated by the sampling rules, and count the access frequency of the page indicated by the sampling results, so as to determine the access popularity of the page according to the access frequency of the page, and trigger data migration according to the access popularity.

[0069] In addition, the present application does not limit the execution subject of the memory access heat statistics, and the execution subject includes a medium module in a computer device, a hardware module with computing function, or a processor.

[0070] For example, Figure 2 As shown in (a) of FIG. 1 , a sampling access request is implemented in a medium module. The medium module can be any of a variety of different types of memory media. For example, the medium module can be a DRAM or a SCM.

[0071] The processor in the computer device sends an access request to the media module, indicating that a write operation or a read operation is to be performed on the media module. The controller in the media module (such as a register clock driver (RCD)) can collect access requests, sample multiple access requests according to sampling rules, and count the access frequency of the page indicated by the sampling result, store the access frequency of the page; and then, feedback the access frequency of the page to the processor in an in-band or out-of-band manner.

[0072] like Figure 2 As shown in (b) of Figure 2 The difference from (a) is that the sampling access request is implemented by other hardware modules in the computer device, and the page access frequency is fed back to the processor in an in-band or out-of-band manner. The hardware module can be a memory controller or a peripheral (such as a complex programmable logical device (CPLD), FPGA), etc.

[0073] like Figure 2 As shown in (c) of Figure 2 The difference from (a) in the figure is that the sampling access request is implemented by the processor in the computer device, and the processor core can obtain the access frequency of the page by reading the register in the processor.

[0074] Computer device 100 may also include cache memory and registers.

[0075] The cache memory is used to store instructions or data that may be accessed multiple times by the processor core in the processor 110 , thereby increasing the speed at which the processor processes data and preventing the processor from frequently accessing the main memory 120 .

[0076] In physical form, cache memory can be random access memory (RAM), static random-access memory (SRAM), dynamic RAM (DRAM), or other types of storage devices that can store information and instructions.

[0077] In terms of logical form, a cache memory may be a level 1 cache (L1 cache), a level 2 cache (L2 cache), a level 3 cache (L3 cache), or any level of cache device. For example, a cache memory disposed inside a processor core may be a level 1 cache (L1 cache) and a level 2 cache (L2 cache). A cache memory disposed outside a processor core may be a level 3 cache (L3 cache).

[0078] The register is used to store instructions or data that may be accessed multiple times by the processor core in the processor 110. Since the access speed of the register is higher than the access speed of the cache memory, the instructions or data that may be accessed multiple times by the processor core can be stored in the register first, which can further improve the speed of the processor processing data.

[0079] The processor core is connected to other devices in the processor (such as the processor core, cache memory, and main memory 120) through the bus 111, and accesses other devices through the bus 111. For example, the processor core, cache memory, and main memory 120 transmit access frequencies through the bus 111. For another example, the processor core transmits a write instruction or a read instruction to the main memory 120 through the bus 111, so that the main memory 120 writes to the cache line according to the write instruction or reads the cache line according to the read instruction. The bus 111 can be an industry standard architecture (ISA) bus, a peripheral component interconnect Express (PCIe) bus, or an extended industry standard architecture (EISA) bus, a unified bus (Ubus or UB), a computer express link (CXL), a cache coherent interconnect for accelerators (CCIX), etc., or a private bus standard of a non-standard system. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 1 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0080] Figure 1 The connection method between the processor core and other devices in the processor is only a schematic illustration. In one possible implementation, the processor core is connected to other devices in the processor through a ring bus, and accesses other devices in the processor through the ring bus. In another possible implementation, the processor core and other devices in the processor are connected through a mesh bus, and the processor core accesses other devices in the processor through the mesh bus.

[0081] The processor 110 is connected to the main memory 120 through a memory controller (MC) 112. The processor 110 can perform various functions of the computer device 100 by running or executing software programs stored in the main memory 120 and calling data stored in the main memory 120. For example, the processor 110 implements a sampling access request through the memory controller 112.

[0082] The main memory 120 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), etc. The main memory 120 is also used to store programs related to the present embodiment.

[0083] The processor 110 may also include an external device 140 and an external device management module 113. The external device 140 is connected to the external device management module 113 via the bus 111. The external device 140 may be an application specific integrated circuit (ASIC). For example: a microprocessor (digital signal processor, DSP), or one or more field programmable gate arrays (field programmable gate array, FPGA), or a graphics processing unit (graphics processing unit, GPU), or a neural-network processing unit (neural-network processing unit, NPU). The external device 140 may also implement a sampling access request, and feedback the access frequency to the processor core via the bus 111, so that the processor core triggers data migration according to the access hotness or coldness of the data.

[0084] Figure 1 The device structure shown in the figure does not constitute a limitation on the computer device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0085] Next, the memory data migration method provided by the present application is described in detail with reference to the accompanying drawings.

[0086] For ease of explanation, Figure 2The media module statistics scenario shown in (a) is described as an example of implementing a sampling access request in a memory medium. Figure 3 , Figure 3 A flowchart of a memory data migration method provided in this application. Figure 3 As shown, the method includes the following steps.

[0087] Step 310: The processor sends an access request to the memory medium.

[0088] When an application program running on a processor in a computer device needs to perform a read operation or a write operation on a memory medium, an access request is sent to the memory medium. Optionally, when the processor accesses the memory medium in an interleaved manner, the data accessing the memory medium is evenly distributed to multiple memory channels according to a unit storage space (e.g., a cache line). It should be understood that the data accessing the memory medium is evenly distributed to multiple memory channels according to a unit storage space, that is, the data accessing the memory medium is evenly distributed to multiple memory media according to a unit storage space. The access request sent to multiple memory media when the processor accesses the memory medium in an interleaved manner. The access request indicates that a read operation or a write operation is performed on the memory medium according to a unit storage space (e.g., a cache line). The size of the unit storage space can be the size of a cache line when the processor accesses the memory medium.

[0089] Step 320: The memory medium samples the acquired access request according to the sampling rule to obtain a sampling result.

[0090] The memory medium samples the received access requests according to the periodic sampling method indicated by the sampling rule, that is, the memory medium periodically samples the received access requests according to the time interval to obtain the sampling result. It can be understood that the memory medium samples the received access requests at each interval in the process of continuously receiving the access requests. The sampling result includes the sampled multiple access requests. In some embodiments, the memory medium samples the multiple access requests according to the time interval sampling mode to obtain the sampling result.

[0091] The following describes the manner in which the memory medium samples the acquired access requests.

[0092] Method 1: Sample the acquired access requests according to the sampling frequency indicated by the sampling rule to obtain the sampling result. The sampling frequency is used to indicate the number of access requests separated by the sampling.

[0093] In some embodiments, after receiving the access request, the memory medium numbers the access request according to the receiving time to obtain multiple access requests. Furthermore, the memory medium samples the multiple access requests according to the sampling frequency. Each sampling may sample at least one access request from the sampled sample, and the sampling result includes at least one access request. The sampled sample may include the access requests spaced by the sampling indicated by the sampling frequency.

[0094] In addition, the present application does not limit which access request is sampled from the sample. For example, at least one access request may be randomly sampled from the sample. For another example, the sample is divided into multiple parts, and one access request is sampled from each part. For another example, the first access request, the last access request, or the middle access request is sampled from the sample. For another example, at least one access request is sampled from the sample according to odd or even numbers.

[0095] For example, Figure 4 As shown, assuming that the sampling frequency is 100, a sample is taken for every 100 access requests. Every 100 access requests is a sampling sample. The memory medium receives access requests 0 to 100, and samples access requests 0 and 100. From access requests 101 to 200, access request 200 is sampled. In some embodiments, a counter may be set, and the counter is incremented by one each time the memory medium receives an access request. When the value of the counter is equal to 0, 100, or 200, a sampling operation is performed, and the addresses indicated by access requests 0, 100, and 200 are saved, respectively.

[0096] Optionally, the sampling frequency is determined based on the bandwidth of the memory medium. The larger the bandwidth, the more data that can be transmitted, and a smaller sampling frequency can be set to increase the number of access request samples, thereby improving the statistical accuracy of the page access frequency. Conversely, the smaller the bandwidth, the less data that can be transmitted, and a larger sampling frequency can be set to reduce the number of access request samples, thereby reducing the statistical data volume of the page access frequency, and achieving a balance between the statistical accuracy of the page access frequency and the statistical data volume of the page access frequency.

[0097] Optionally, the sampling frequency is determined according to the number of pages in the memory medium. When there are many pages, a smaller sampling frequency is set; when there are fewer pages, a larger sampling frequency can be set to collect the access frequency of each page as much as possible, thereby improving the statistical accuracy of the page access frequency.

[0098] Method 2: Sample the acquired access requests according to the quantity characteristics of the access requests within the sampling period indicated by the sampling rule to obtain the sampling result. The sampling period is used to indicate the time length of the sampling interval.

[0099] In some embodiments, the memory medium samples the access requests received within a sampling period. Each sampling may sample at least one access request from the sampled sample, and the sampled result includes at least one access request. The sampled sample includes multiple access requests received within the sampling period.

[0100] In addition, the present application does not limit which access request is sampled from the sample. For specific explanations, please refer to the description of the above-mentioned method one.

[0101] For example, Figure 5 As shown, assuming that the sampling period is 1 microsecond, the access request received in each microsecond is sampled once. The access request received in each microsecond is a sample. In the first sampling period, the memory medium receives access requests 0 to 100, and samples access request 50. In the second sampling period, the memory medium receives access requests 101 to 200, and samples access request 150. In some embodiments, a timer can be set, and when the timer is equal to 0 microseconds, 1 microsecond, 2 microseconds, etc., a sampling operation is performed to save the address indicated by the sampled access request.

[0102] Method three: sampling the obtained access request at least once according to the sampling number indicated by the sampling rule to obtain a sampling result.

[0103] The solutions described in the above-mentioned method 1 and method 2 are to sample the received access request once to obtain the sampling result. In some embodiments, the memory medium may sample the received access request twice or more to obtain the sampling result.

[0104] For example, the two samplings may adopt the same sampling rule. For example, the memory medium first samples the acquired access request according to the sampling frequency to obtain a first sampling set, and then samples the first sampling set according to the sampling frequency to obtain a sampling result.

[0105] For another example, different sampling rules may be used for the two samplings. For example, the memory medium first samples the acquired access request according to the sampling frequency to obtain a first sampling set, and then samples the first sampling set according to the sampling period to obtain a sampling result. For the specific sampling method based on the sampling frequency and the sampling period, refer to the above description and will not be repeated here.

[0106] Therefore, the memory medium performs at least two samplings on the received access request according to at least one periodic sampling mode, thereby ensuring the statistical accuracy of the page access frequency and reducing the statistical data volume of the page access frequency.

[0107] Method 4: sampling the sampling samples in the received access request according to the sampling rule to obtain the sampling result.

[0108] The memory medium may first extract a sampling sample from the received access request, and then sample the sampling sample according to the sampling rule to obtain a sampling result. The method of extracting the sampling sample from the received access request is not limited, and may be based on the sampling rule provided in the present application, or other methods may be used. For example, the received access request is numbered according to the receiving time, and sampling samples are extracted from the received access request according to odd or even numbers, and then the sampling samples are sampled according to the sampling rule to obtain a sampling result.

[0109] For example, Figure 6 As shown, assuming that the sampling frequency is 50, a sample is taken for every 50 access requests. The memory medium receives access requests 0 to 200, first extracts the odd-numbered access requests to obtain sampling samples, and the sampling samples include access request 1, access request 3, access request 5, etc. Then, at least one access request is sampled from the sampling samples according to the sampling frequency. For example, the sampling results include access request 47 and access request 133.

[0110] It should be noted that the above-mentioned method for sampling access requests provided in the present application can be used alone or in combination according to factors such as storage space requirements and statistical accuracy of page access frequency, and the present application is not limited thereto.

[0111] Step 330: The processor counts the access frequency of the page indicated by the sampling result.

[0112] The processor obtains a sampling result from the memory medium, and the sampling result includes information such as the address indicated by at least one access request. After obtaining the sampled at least one access request, the page to which the accessed data block belongs can be determined according to the physical address indicated by the access request, and the access frequency of the page can be counted. In some embodiments, the storage location of the physical address indicated by the access request can be the same as or different from the storage location of the access frequency of the page. For example, a portion of the storage space in the memory medium is used to store the access frequency of the page. The physical address indicated by the access request can be stored in other memories outside the memory medium. The memory medium reads the access frequency of the page and updates the access frequency. For example, each time the page is accessed, the access frequency of the page is increased by one, and the updated access frequency is written to the memory.

[0113] In other embodiments, the memory medium clips the address indicated by the sampled access request to obtain an address index, reads the access frequency corresponding to the address index from the RAM according to the address index, updates the access frequency corresponding to the address index, and the address indicated by the access request is used to indicate the page. Thus, the storage space occupied by the access frequency of the storage page is reduced. Under different system architectures, the supported page size may be 4KB, 64KB or 2MB, and software clipping can be performed according to different page sizes. The clipped address is used as an address index for counting operations to obtain the access frequency of all pages.

[0114] For example, Figure 7 As shown, it is assumed that the address indicated by the sampled access request is 64B, that is, the sampled address is 64B. The address index obtained after clipping the sampled address can be 4KB, 64KB or 2MB.

[0115] Optionally, the RAM stores an address index corresponding to each page, and after the memory medium obtains the address index by clipping according to the address indicated by the access request, the access frequency corresponding to the address index in the RAM is updated.

[0116] Optionally, when the RAM does not store the address index determined by the memory medium, a new address index and a corresponding access frequency are written into the RAM.

[0117] Step 340: The processor determines the access popularity of the page according to the access frequency of the page, and triggers data migration.

[0118] The processor determines the access heat of the page based on the page access frequency to trigger data migration. For example, if the access frequency is greater than or equal to the threshold, the data block is determined to be hot; if the cold access frequency is less than the threshold, the data block is determined to be cold. When data migration is triggered based on the page access heat, hot data can be migrated to the near-end memory and cold data can be migrated to the far-end memory.

[0119] The memory data migration method provided by the present application samples access requests in multiple ways based on a periodic sampling method indicated by a sampling rule, thereby ensuring the statistical accuracy of the page access frequency and reducing the statistical data amount of the page access frequency, so that the processor can obtain the page access frequency as quickly as possible. When data migration is triggered based on the page access popularity, hot data can be migrated to the near-end memory and cold data can be migrated to the far-end memory, so that the processor can obtain frequently accessed data from the near-end memory as quickly as possible, thereby improving the data processing speed of the system, reducing the data processing delay, and significantly improving the access performance of the system.

[0120] Figure 8A flowchart of a memory access heat statistics method provided by the present application. When the access request sampling function is implemented by the processor, the processor core can configure the sampling rules for the corresponding sampling module (step 810); the processor core enables the access request sampling function (step 820), if the enabling is successful, execute step 830, if the enabling fails, execute step 820; sample the collected access requests according to the sampling rules, count and store the access frequency of the page corresponding to the address indicated by the sampled access request (step 830); if the access request sampling function is not turned off, continue to execute the access request sampling function on the access request, count and store the access frequency of the page corresponding to the address indicated by the sampled access request, when the RAM storage space is full, the processor core reads the page access frequency from the RAM, and determines the page access heat to trigger data migration. If the access request sampling function is turned off, the sampling is terminated and the process ends (step 840). The specific sampling process can refer to the description of the above embodiment and will not be repeated.

[0121] Optionally, if the access request sampling function is implemented by other hardware modules or memories outside the processor in the computer device, the sampling rules can be transmitted by out-of-band communication or in-band communication to configure, enable the access request sampling function and the access frequency of the page.

[0122] For a detailed explanation of the access request sampling function, please refer to the description of the above embodiment and will not be elaborated herein.

[0123] Fig. 9 A flowchart of an access frequency acquisition method provided by the present application. The access request sampling function is turned on and the processor polls and checks the status of the RAM (step 910). If the RAM is empty, the RAM status continues to be detected; if there is an access request in the RAM, the access request can be read from the RAM (step 920). The address indicated by the read access request is subjected to address bit clipping (step 930). The number of bits after clipping can be determined according to the operating status of the system, for example, the number of bits after clipping is 4KB, 64KB or 2MB. The clipped address is used as an address index, and the address index is used for counting processing (step 940). The initial value of each address index should be 0. Each time a corresponding address index is identified, the access frequency corresponding to the address index is increased by 1. Check whether the access request sampling function is turned off. If not, continue to return to step 910 for judgment until the access request sampling function is turned off, and the process ends (step 950).

[0124] It is worth noting that for Figure 2 (b) and Figure 2 For the memory access heat statistics scenario in the hardware module shown in (c) and the memory access heat statistics scenario in the processor, the data processing process is the same as Figure 2The processing of (a) in is similar. Figure 2 The scenario (a) in Figure 1 is used as an example to illustrate the data processing process of other scenarios. Figure 3 The data processing process shown is similar and will not be repeated here.

[0125] It is understandable that, in order to implement the functions in the above-mentioned embodiments, the processor includes hardware structures and / or software modules corresponding to the execution of each function. It should be easily appreciated by those skilled in the art that, in combination with the units and method steps of each example described in the embodiments disclosed in this application, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application scenario and design constraints of the technical solution.

[0126] Combined with the above Figures 1 to 9 , describes in detail the memory data migration method provided according to this embodiment, and will now be combined with Fig.10 , describing the memory data migration device provided according to this embodiment.

[0127] Fig.10 The following is a schematic diagram of the structure of a possible memory data migration device provided in this embodiment. These memory data migration devices can be used to implement the memory function in the above method embodiment, and thus can also achieve the beneficial effects possessed by the above method embodiment. In this embodiment, the memory data migration device can be as follows Figure 3 The first memory medium shown may also be a module (such as a chip) applied to a processor.

[0128] like Fig.10 As shown, the memory data migration device 1000 includes a communication module 1010, a sampling module 1020, a statistics module 1030, a migration module 1040 and a storage module 1050. The memory data migration device 1000 is used to implement the above Figure 3 The functions of the memory and the processor are shown in the method embodiments.

[0129] The communication module 1010 is used to obtain an access request, and the access request is used to instruct the application program running on the processor of the computer device to operate the memory medium. Figure 3 Step 310.

[0130] The sampling module 1020 is used to sample the acquired access requests according to the sampling rules to obtain the sampling results. The sampling rules are used to indicate the periodic sampling method. For example, the sampling module 1020 is used to perform Figure 3 Step 320.

[0131] The statistical module 1030 is used to count the access frequency of the page indicated by the sampling result, and the access frequency of the page is used to determine the access popularity of the page. For example, the statistical module 1030 is used to perform Figure 3 Step 330.

[0132] Optionally, the sampling module 1020 is specifically configured to sample the acquired access requests according to a sampling frequency indicated by the sampling rule to obtain a sampling result, and the sampling frequency is used to indicate the number of access requests separated by sampling.

[0133] Optionally, the sampling module 1020 is specifically configured to sample the acquired access requests according to the quantity characteristics of the access requests within a sampling period indicated by the sampling rule to obtain a sampling result, and the sampling period is used to indicate the length of time between samplings.

[0134] The migration module 1040 is configured to trigger memory data migration between the at least two different types of memory media according to the access frequency. Figure 3 Step 340.

[0135] The storage module 1050 is used to store sampling rules and access frequencies, so that the sampling module 1020 can sample the acquired access requests according to the sampling rules when the processor in the computer device accesses the memory medium to obtain the sampling results.

[0136] It should be understood that the memory data migration device 1000 of the embodiment of the present application can be implemented by an application-specific integrated circuit (ASIC) or a programmable logic device (PLD), and the PLD can be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof. It can also be implemented by software. Figure 3 The memory data migration shown and its various modules may also be software modules, and the memory data migration device 1000 and its various modules may also be software modules.

[0137] The memory data migration device 1000 according to the embodiment of the present application may correspond to executing the method described in the embodiment of the present application, and the above and other operations and / or functions of each unit in the memory data migration device 1000 are respectively to implement Figure 3For the sake of brevity, the corresponding processes of each method in are not repeated here.

[0138] The present application also provides a processor, which includes a memory and at least two processor cores. The processor is associated with at least two different types of memory media, and the memory is used to store a group of computer instructions. When the processor core executes the group of computer instructions, the operating steps of the methods described in the above embodiments are executed to identify the access frequency of data blocks in the memory medium by applications.

[0139] The present application also provides a chip, including: a processor and a power supply circuit; wherein the power supply circuit is used to supply power to the processor; and the processor is used to execute the operation steps of the methods described in the above embodiments to realize the identification of the access frequency of a data block in a memory accessed by an application program.

[0140] The present application also provides a computer system, which includes multiple computer devices, and the computer devices are used to execute the operating steps of the methods described in the above embodiments.

[0141] The method steps in this embodiment can be implemented by hardware or by a processor executing software instructions. The software instructions can be composed of corresponding software modules, which can be stored in random access memory (RAM), flash memory, read-only memory (ROM), programmable ROM (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), registers, hard disks, mobile hard disks, CD-ROMs, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an ASIC. In addition, the ASIC can be located in a computer device. Of course, the processor and the storage medium can also exist in a computer device as discrete components.

[0142] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instruction is loaded and executed on a computer, the process or function described in the embodiment of the present application is executed in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, a network device, a user device or other programmable device. The computer program or instruction may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer program or instruction may be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired or wireless means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium may be a magnetic medium, for example, a floppy disk, a hard disk, a tape; it may also be an optical medium, for example, a digital video disc (DVD); it may also be a semiconductor medium, for example, a solid state drive (SSD). The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A memory data migration method, characterized in that: The hybrid memory system includes a plurality of processors and a plurality of different types of memory media, wherein the processors are associated with at least two different types of memory media, and the method includes: Sampling the acquired access requests according to a sampling rule to obtain a sampling result, wherein the access request is used to indicate an operation of an application program running on a processor in a computer device on a memory medium, and the sampling rule is used to indicate a periodic sampling method; Counting the access frequency of the page indicated by the sampling result, wherein the access frequency of the page is used to determine the access popularity of the page; Memory data migration is triggered between the at least two different types of memory media according to the access frequency.

2. The method according to claim 1, characterized in that: The obtained access requests are sampled according to the sampling rules to obtain sampling results, including: The acquired access request is sampled according to the time interval-based sampling mode indicated by the sampling rule to obtain the sampling result.

3. The method according to claim 2, characterized in that Sampling the acquired access request according to the time interval based sampling mode indicated by the sampling rule to obtain a sampling result, including: The acquired access requests are sampled according to a sampling frequency indicated by the sampling rule to obtain the sampling result, wherein the sampling frequency is used to indicate the number of access requests at intervals of sampling.

4. The method according to claim 3, characterized in that The sampling frequency is determined according to the bandwidth of the memory medium.

5. The method according to claim 2, characterized in that: Sampling the acquired access request according to the time interval based sampling mode indicated by the sampling rule to obtain a sampling result, including: The acquired access requests are sampled according to the quantity characteristics of the access requests within a sampling period indicated by the sampling rule to obtain the sampling result, wherein the sampling period is used to indicate the length of time between samplings.

6. The method according to any one of claims 1 to 5, characterized in that The obtained access requests are sampled according to the sampling rules to obtain sampling results, including: The acquired access request is sampled at least once according to the sampling times indicated by the sampling rule to obtain the sampling result.

7. The method according to any one of claims 1 to 6, characterized in that The obtained access requests are sampled according to the sampling rules to obtain sampling results, including: The sampling samples in the obtained access request are sampled according to the sampling rule to obtain the sampling result.

8. The method according to any one of claims 1 to 7, characterized in that Counting the access frequency of the page indicated by the sampling result includes: An address index is determined according to the address indicated by the access request, and an access frequency associated with the address index is counted, wherein the address indicated by the access request is used to indicate the page.

9. The method according to any one of claims 1 to 8, characterized in that The multiple different types of memory media include a first memory medium and a second memory medium, the memory medium associated with the processor includes the first memory medium and the second memory medium, the access speed of the first memory medium is greater than the access speed of the second memory medium, and the access delay of the first memory medium is less than the access delay of the second memory medium.

10. A memory data migration device, characterized in that: include: A communication module, used to obtain an access request, wherein the access request is used to instruct an application program running on a processor in a computer device to operate a memory medium; A sampling module, used to sample the obtained access request according to a sampling rule to obtain a sampling result, wherein the sampling rule is used to indicate a periodic sampling method; A statistics module, used to count the access frequency of the page indicated by the sampling result, and the access frequency of the page is used to determine the access popularity of the page; A migration module is used to trigger memory data migration between the at least two different types of memory media according to the access frequency.

11. The device according to claim 10, characterized in that The obtained access requests are sampled according to the sampling rules to obtain sampling results, including: The acquired access request is sampled according to the time interval-based sampling mode indicated by the sampling rule to obtain the sampling result.

12. The device according to claim 11, characterized in that Sampling the acquired access request according to the time interval based sampling mode indicated by the sampling rule to obtain a sampling result, including: The acquired access requests are sampled according to a sampling frequency indicated by the sampling rule to obtain the sampling result, wherein the sampling frequency is used to indicate the number of access requests at intervals of sampling.

13. The device according to claim 12, characterized in that The sampling frequency is determined according to the bandwidth of the memory medium.

14. The device according to claim 11, characterized in that Sampling the acquired access request according to the time interval based sampling mode indicated by the sampling rule to obtain a sampling result, including: The acquired access requests are sampled according to the quantity characteristics of the access requests within a sampling period indicated by the sampling rule to obtain the sampling result, wherein the sampling period is used to indicate the length of time between samplings.

15. The device according to any one of claims 10 to 14, characterized in that The obtained access requests are sampled according to the sampling rules to obtain sampling results, including: The acquired access request is sampled at least once according to the sampling times indicated by the sampling rule to obtain the sampling result.

16. The device according to any one of claims 10 to 15, characterized in that The obtained access requests are sampled according to the sampling rules to obtain sampling results, including: The sampling samples in the obtained access request are sampled according to the sampling rule to obtain the sampling result.

17. The device according to any one of claims 10 to 16, characterized in that Counting the access frequency of the page indicated by the sampling result includes: An address index is determined according to the address indicated by the access request, and an access frequency associated with the address index is counted, wherein the address indicated by the access request is used to indicate the page.

18. The device according to any one of claims 10 to 17, characterized in that The multiple different types of memory media include a first memory medium and a second memory medium, the memory medium associated with the processor includes the first memory medium and the second memory medium, the access speed of the first memory medium is greater than the access speed of the second memory medium, and the access delay of the first memory medium is less than the access delay of the second memory medium.

19. A memory, characterized in that: The memory includes a storage medium and a controller, the storage medium is used to store a set of computer instructions; when the controller executes the set of computer instructions, the operating steps of the method described in any one of claims 1 to 9 are executed to realize the identification of the access frequency of the data block in the memory by the application program.

20. A chip, characterized in that: include: A processor and a power supply circuit; wherein the power supply circuit is used to supply power to the processor; The processor is used to execute the operating steps of the method described in any one of claims 1-9 to realize the identification of the access frequency of the data block in the memory by the application program.

21. A processor, characterized in that: The processor is associated with at least two different types of memory media, and is used to execute the operation steps of the method described in any one of claims 1 to 9 to identify the access frequency of data blocks in the memory medium being accessed by the application.

22. A computer device, characterized in that: The computer device includes a memory, a processor and multiple different types of memory media, the processor is associated with at least two different types of memory media, and the memory is used to store a set of computer instructions; when the processor executes the set of computer instructions, the operating steps of the method described in any one of claims 1 to 9 are executed to identify the access frequency of data blocks in the memory medium by the application program.

Citation Information

Cited By

  • Memory data migration method, related apparatus, and computer device

    EP4671949A1

  • Memory data migration method, related apparatus, and computer device

    WO2024199240A1