A method for building persistent memory index under non-uniform memory access architecture
By maintaining local views in persistent memory and global views in DRAM, hot and cold data are processed differently, which solves the problem of crash consistency and resource consumption of persistent memory indexes, and improves performance and scalability.
Patent Information
- Application Number
- CN202110722046.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-28
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2041-06-28
AI Technical Summary
Existing index construction methods under non-identical memory access architecture cannot guarantee crash consistency when applied to persistent memory indexes, and lead to doubled consumption of persistent memory space and write bandwidth, limiting the performance and scalability of the system. .
Maintain multiple local persistent views in persistent memory, maintain a global volatile view in DRAM, differentiate processing according to the hotness and coldness of data, only process hot data, and restore the latest data through metadata in the event of a crash, reducing Remote access and write bandwidth consumption of persistent memory.
It effectively solves the problems of crash consistency and resource consumption, improves the performance of persistent memory indexes, reduces the recovery time after a server crash and restarts, and has strong adaptability.
Smart Images

Figure CN113656396B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of non-volatile main memory storage technology, and in particular to a method for constructing a persistent memory index under a non-uniform memory access architecture. Background Art
[0002] Persistent Memory has the advantages of both storage media and memory media. On the one hand, persistent memory can store data persistently like a disk, and has a large capacity. On the other hand, persistent memory is installed on the memory bus, and the CPU can access it directly through store and load instructions, so it has the characteristics of low latency and high bandwidth. Intel released the commercially available persistent memory product Optane persistent memory in 2019; it requires dedicated CPU support, and the capacity of a single bar can reach up to 512GB. The write bandwidth of a single Optane persistent memory is about 2GB / s, and the read bandwidth is about 6GB / s. Optane persistent memory has some special performance attributes, such as poor multi-core scalability, high latency for repeated writing of a buffer line, and an internal chip write granularity of 256 bytes.
[0003] Due to the limited number of cores and memory slots in a single CPU, in order to support larger-scale systems, most existing servers use a non-uniform memory access (NUMA) architecture. A NUMA-architecture server contains multiple NUMA nodes, each of which has a local CPU, persistent memory, and DRAM. NUMA nodes are connected via a dedicated bus. For a CPU, local access has lower latency and higher bandwidth than accessing persistent memory and DRAM on other NUMA nodes.
[0004] A persistent memory index is an index built in persistent memory. It maintains a mapping from keys to values and ensures that insert, update, and delete operations are crash consistent, meaning that the system can be restored to a consistent state after a crash and restart, and successfully submitted operations can be seen.
[0005] Existing index construction methods under non-identical memory access architectures are mainly aimed at volatile indexes (i.e., indexes stored in DRAM) and do not consider persistent memory indexes. These existing methods maintain a copy of the index in each NUMA node and synchronize the status of the index copy between NUMA nodes through operation logs. Applying these methods to persistent memory indexes will cause three problems. First, these methods do not guarantee crash consistency; second, since there is a copy on each NUMA node, these methods will consume the space of persistent memory exponentially; third, because each operation needs to be executed on each copy, these methods will consume the write bandwidth of persistent memory exponentially, but the write bandwidth of persistent memory is very limited, only one-sixth of DRAM. Summary of the invention
[0006] The present application aims to solve one of the technical problems in the related art at least to some extent.
[0007] To this end, the first purpose of the present application is to propose a method for building a persistent memory index under a non-uniform memory access architecture, which solves the technical problem that the existing index construction method is applied to the persistent memory index, resulting in exponential consumption of persistent memory space and write bandwidth. At the same time, it solves the problem that the existing index construction method does not guarantee crash consistency when applied to the persistent memory index, effectively reduces the remote access to the persistent memory under the non-uniform memory access architecture, improves the performance of the persistent memory index, and only requires a small amount of additional persistent memory and DRAM by processing only hot data, and minimizes the additional recovery time after the server crashes and restarts.
[0008] To achieve the above-mentioned purpose, the first aspect embodiment of the present application proposes a method for constructing a persistent memory index under a non-uniform memory access architecture, including: maintaining multiple local persistent views in persistent memory and maintaining a global volatile view in DRAM; when a thread accesses cold data, the request in the thread is processed by the underlying persistent memory index; when a thread accesses hot data, the type of request in the thread is judged, if it is a query operation, the thread reads the corresponding data in the global volatile view, if it is an insert, update, or delete operation, the thread updates the corresponding local local persistent view and global volatile view; when hotspot migration occurs, background operations are performed to generate new local persistent views and global volatile views, and recycle old local persistent views and global volatile views.
[0009] Optionally, in one embodiment of the present application, the non-uniform memory access architecture includes multiple non-uniform memory access NUMA nodes, and the NUMA nodes include several persistent memories and DRAMs.
[0010] Optionally, in one embodiment of the present application, data is divided into cold data and hot data according to the access frequency interval of the corresponding key. If the access frequency of the corresponding key is higher than a set threshold, the data is hot data, otherwise the data is cold data.
[0011] Optionally, in one embodiment of the present application, there are multiple local persistent views, one local persistent view in each NUMA node, and the local local persistent view is the local persistent view of the NUMA node where the thread is located.
[0012] Optionally, in one embodiment of the present application, the local persistent view stores the key values of hot data, and by recording additional metadata, ensures that the latest data can be restored from multiple local persistent views after the system crashes and restarts.
[0013] Optionally, in one embodiment of the present application, for each piece of hot data, the global volatile view records the corresponding key value, read-write lock and location information of the key value in the local persistent view, and the read-write lock is used to ensure the correctness of concurrent access.
[0014] Optionally, in one embodiment of the present application, the underlying persistent memory index is any existing persistent index that supports concurrent access, and the underlying persistent memory index is stored in the persistent memory of multiple NUMA nodes.
[0015] Optionally, in one embodiment of the present application, the specific process of querying hot data is as follows:
[0016] The thread queries the global volatile view, obtains a read lock on the corresponding key value, then reads the value and releases the read lock.
[0017] Optionally, in one embodiment of the present application, the insert, update, and delete operations of hot data include the following steps:
[0018] The thread queries the global volatile view and obtains the write lock of the corresponding key value;
[0019] Read the location information of the corresponding key value in the local persistent view;
[0020] The thread writes the latest value to the local persistent view based on the location information;
[0021] The thread updates the corresponding value in the global volatile view and releases the write lock.
[0022] Optionally, in one embodiment of the present application, when the hotspot is migrated, the specific process of the background operation is:
[0023] The background thread generates new local persistent views and global volatile views based on the new hot data;
[0024] The background thread installs the new local persistent view and global volatile view into the system to serve subsequent operation requests;
[0025] The background thread inserts the key values in the old global volatile view into the underlying persistent memory index and releases the persistent memory and DRAM space occupied by the old view.
[0026] The persistent memory index construction method under the non-uniform memory access architecture of the embodiment of the present application solves the technical problem that the existing index construction method does not guarantee crash consistency when applied to the persistent memory index, and at the same time solves the problem that the existing index construction method, when applied to the persistent memory index, causes the space and write bandwidth of the persistent memory to be consumed exponentially, reduces the remote access of the persistent memory, improves the performance of any persistent memory index under the non-uniform memory access architecture, can be implemented through software, has strong adaptability, and can use a small amount of additional persistent memory and DRAM by processing only hot data, and can also minimize the additional recovery time after the server crashes and restarts.
[0027] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0029] Figure 1 A flowchart of a method for constructing a persistent memory index under a non-uniform memory access architecture provided in Example 1 of the present application;
[0030] Figure 2 A schematic diagram of a persistent memory index of a method for constructing a persistent memory index under a non-uniform memory access architecture according to an embodiment of the present application;
[0031] Figure 3 A flowchart of a query operation for hot data in a method for building a persistent memory index under a non-uniform memory access architecture according to an embodiment of the present application;
[0032] Figure 4 A flowchart of the insert / update / delete operation for hot data of the persistent memory index construction method under the non-uniform memory access architecture of an embodiment of the present application;
[0033] Figure 5 This is an example diagram of the data management format in the local persistent view of the persistent memory index construction method under the non-uniform memory access architecture of the embodiment of the present application;
[0034] Figure 6A schematic diagram of hotspot detection in a persistent memory index construction method under a non-uniform memory access architecture according to an embodiment of the present application. DETAILED DESCRIPTION
[0035] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.
[0036] The following describes a method for constructing a persistent memory index under a non-uniform memory access architecture according to an embodiment of the present application with reference to the accompanying drawings.
[0037] Figure 1 A flowchart of a method for constructing a persistent memory index under a non-uniform memory access architecture provided in Example 1 of the present application.
[0038] like Figure 1 As shown, the method for constructing a persistent memory index under the non-uniform memory access architecture includes the following steps:
[0039] Step 101, maintaining multiple local persistent views in persistent memory and maintaining a global volatile view in DRAM;
[0040] Step 102, when a thread accesses cold data, the request in the thread is processed by the underlying persistent memory index;
[0041] Step 103, when the thread accesses hot data, the type of request in the thread is determined. If it is a query operation, the thread reads the corresponding data in the global volatile view. If it is an insert, update, or delete operation, the thread updates the corresponding local persistent view and the global volatile view.
[0042] Step 104: When hotspot migration occurs, background operations are performed to generate new local persistent views and global volatile views, and to recycle old local persistent views and global volatile views.
[0043] The persistent memory index construction method under the non-uniform memory access architecture of the embodiment of the present application maintains multiple local persistent views in the persistent memory and a global volatile view in the DRAM; when the thread accesses cold data, the request in the thread is processed by the underlying persistent memory index; when the thread accesses hot data, the type of the request in the thread is determined, if it is a query operation, the thread reads the corresponding data in the global volatile view, if it is an insert, update, or delete operation, the thread updates the corresponding local local persistent view and the global volatile view; when hotspot migration occurs, background operations are performed to generate new local persistent views and global volatile views, and the old local persistent views and global volatile views are recycled. Thus, the technical problem that the existing index construction method is applied to the persistent memory index, resulting in the exponential consumption of the space and write bandwidth of the persistent memory, can be solved, and the problem that the existing index construction method is applied to the persistent memory index without guaranteeing crash consistency can be solved, effectively reducing the remote access of the persistent memory under the non-uniform memory access architecture, improving the performance of the persistent memory index, by only processing hot data, only a small amount of additional persistent memory and DRAM are required, and the additional recovery time after the server crashes and restarts is minimized.
[0044] The persistent memory index construction method under the non-uniform memory access architecture is transparent to the upper-layer application and provides a common interface for the persistent memory index, including query, update, insert and delete.
[0045] Furthermore, in an embodiment of the present application, a non-uniform memory access architecture includes multiple non-uniform memory access NUMA nodes, and the NUMA nodes include several persistent memories and DRAMs.
[0046] Furthermore, in an embodiment of the present application, data is divided into cold data and hot data according to the access frequency zone of the corresponding key. If the access frequency of the corresponding key is higher than a set threshold, the data is hot data, otherwise the data is cold data.
[0047] Furthermore, in an embodiment of the present application, there are multiple local persistent views, one local persistent view in each NUMA node, and the local local persistent view is a local persistent view of the NUMA node where the thread is located.
[0048] The persistent memory space used by the local persistent view is managed by a dedicated persistent memory allocator, and a transaction mechanism is used to avoid persistent memory leaks during the allocation process.
[0049] Furthermore, in the embodiment of the present application, the local persistent view stores the key values of the hot data, and by recording additional metadata, it is ensured that after the system crashes and restarts, the latest data can be restored from multiple local persistent views.
[0050] The additional metadata is a 64-bit monotonically increasing version, where the highest bit is the delete bit. For each piece of hot data, the current version value is stored in DRAM. Each time a local persistent view is updated, the corresponding version needs to be incremented by 1 and then written to the local persistent view together with the value. If it is a delete operation, the highest bit of the version is set to 1. Therefore, by comparing the versions in different local persistent views, the system can find the most recently submitted value after a crash and restart.
[0051] Furthermore, in an embodiment of the present application, for each piece of hot data, the global volatile view records the corresponding key value, read-write lock, and location information of the key value in the local persistent view, and the read-write lock is used to ensure the correctness of concurrent access.
[0052] The global volatile view is organized as a high-speed DRAM index. Due to the extremely high bandwidth and low latency of DRAM, the global volatile view can provide high access performance.
[0053] Furthermore, in an embodiment of the present application, the underlying persistent memory index is any existing persistent index that supports concurrent access, and the underlying persistent memory index is stored in the persistent memory of multiple NUMA nodes.
[0054] The underlying persistent memory index can use various concurrency control methods, such as lock-based and lock-free; the underlying persistent memory index can use various data structures, such as hash tables and B-trees.
[0055] Furthermore, in the embodiment of the present application, the specific process of querying the hot data is as follows:
[0056] The thread queries the global volatile view, obtains a read lock on the corresponding key value, then reads the value and releases the read lock.
[0057] Furthermore, in the embodiment of the present application, the insertion, update, and deletion operations of hot data include the following steps:
[0058] The thread queries the global volatile view and obtains the write lock of the corresponding key value;
[0059] Read the location information of the corresponding key value in the local persistent view;
[0060] The thread writes the latest value to the local persistent view based on the location information;
[0061] The thread updates the corresponding value in the global volatile view and releases the write lock.
[0062] The process of writing values and versions to the local persistent view needs to ensure atomicity. The local persistent view is organized into an array, where each element records the value and version of a hot data. There are two formats for the elements.
[0063] When the value is variable length, the element is a 64-bit pointer pointing to <value, version>. The thread uses copy-on-write to ensure crash consistency: first, the thread allocates a persistent memory space, writes <value, version> and persists it; then, the thread points the pointer to the persistent memory space and persists the pointer.
[0064] When the value is 8 bytes long, the element includes a 1-byte indicator and two 16-byte <value, version> tuples. The indicator points to a valid data location. The address of each element is aligned to the cache line size (64 bytes). When a thread wants to write a new <value, version> tuple, it first finds the invalid data location based on the indicator and writes the <value, version>; then, the thread updates the indicator to point to the written <value, version>; finally, the thread calls the CPU instruction to persist the element.
[0065] Further, in the embodiment of the present application, when the hotspot is migrated, the specific process of the background operation is:
[0066] The background thread generates new local persistent views and global volatile views based on the new hot data;
[0067] The background thread installs the new local persistent view and global volatile view into the system to serve subsequent operation requests;
[0068] The background thread inserts the key values in the old global volatile view into the underlying persistent memory index and releases the persistent memory and DRAM space occupied by the old view.
[0069] The background thread detects the changes of hot spots in real time. Each foreground thread has a record cache. The foreground thread writes the keys it accesses to the record cache in real time. The background thread maintains a count-minimum thumbnail and a minimum heap. The count-minimum thumbnail is used to estimate the access frequency of a key, and the minimum heap is used to maintain the key set corresponding to the latest hot data. The background thread continuously reads the records in the record cache and updates the count-minimum thumbnail and the minimum heap. When the key set in the minimum heap is significantly different from the key set in the existing global volatile view, the background thread triggers a system view update.
[0070] Figure 2 A schematic diagram of a persistent memory index of a method for constructing a persistent memory index under a non-uniform memory access architecture according to an embodiment of the present application.
[0071] like Figure 2As shown, the persistent memory index of the persistent memory index construction method under the non-uniform memory access architecture includes multiple NUMA nodes, and the NUMA nodes include several persistent memories and DRAMs. Multiple local persistent views are maintained in the persistent memory, and a global volatile view is maintained in the DRAM; when the thread accesses cold data, the request is processed by the underlying persistent memory index; when the thread accesses hot data, if it is a query operation, the thread reads the corresponding data in the global volatile view, and if it is an insert / update / delete operation, the thread updates its local local persistent view and the global volatile view.
[0072] Figure 3 This is a flowchart of a query operation for hot data in a persistent memory index construction method under a non-uniform memory access architecture according to an embodiment of the present application.
[0073] like Figure 3 As shown, the query operation for hot data of the persistent memory index construction method under the non-uniform memory access architecture includes: a thread queries a global volatile view; obtains a read lock of a corresponding key value; reads the value; and releases the read lock.
[0074] Figure 4 This is a flowchart of the insert / update / delete operations for hot data in a persistent memory index construction method under a non-uniform memory access architecture according to an embodiment of the present application.
[0075] like Figure 4 As shown, the insertion / update / deletion operations of the persistent memory index construction method under the non-uniform memory access architecture for hot data include: the thread queries the global volatile view; obtains the write lock of the corresponding key value; then reads the location information of the key value in the local persistent view; according to the location information, the thread writes the latest value to the local local persistent view; the thread updates the corresponding value in the global volatile view and releases the write lock.
[0076] Figure 5 This is an example diagram of the data management format in the local persistent view of the persistent memory index construction method under the non-uniform memory access architecture of an embodiment of the present application.
[0077] like Figure 5As shown in the figure, the local persistent view of the persistent memory index construction method under the non-uniform memory access architecture is organized into an array, in which each element records the value and version of a hot data, and the element format is two kinds. When the value is variable length, the element is a 64-bit pointer pointing to <value, version>, and the thread uses write-time copy to ensure crash consistency: first, the thread allocates a persistent memory space, writes <value, version> and persists it; then, the thread points the pointer to the persistent memory space and persists the pointer. When the value is 8 bytes fixed length, the element includes a 1-byte indicator and two 16-byte <value, version> tuples, where the indicator points to the valid data location, and the address of each element is aligned with the cache line size (64 bytes). When the thread wants to write a new <value, version> tuple, it first finds the invalid data location according to the indicator and writes <value, version>; then, the thread updates the indicator to point to the written <value, version>; finally, the thread calls the CPU instruction to persist the element.
[0078] Figure 6 A schematic diagram of hotspot detection in a persistent memory index construction method under a non-uniform memory access architecture according to an embodiment of the present application.
[0079] like Figure 6 As shown, when the background thread of the persistent memory index construction method under the non-uniform memory access architecture detects hot spots in real time, each foreground thread has a record cache, and the foreground thread writes the keys it accesses to the record cache in real time. The background thread maintains a count-minimum thumbnail and a minimum heap. The count-minimum thumbnail is used to estimate the access frequency of a key, and the minimum heap is used to maintain the key set corresponding to the latest hot data. The background thread continuously reads the records in the record cache and updates the count-minimum thumbnail and the minimum heap. When the key set in the minimum heap is significantly different from the key set in the existing global volatile view, the background thread triggers a system view update.
[0080] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0081] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0082] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0083] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute the instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0084] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0085] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0086] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0087] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A method for constructing a persistent memory index under a non-uniform memory access architecture. It is characterized in that The following steps are involved: Maintain multiple local persistent views in persistent memory and a global volatile view in DRAM; When a thread accesses cold data, the request in the thread is processed by the underlying persistent memory index; When a thread accesses hot data, the type of request in the thread is determined. If it is a query operation, the thread reads the corresponding data in the global volatile view. If it is an insert, update, or delete operation, the thread updates the corresponding local persistent view and the global volatile view. When hotspot migration occurs, background operations are performed to generate new local persistent views and global volatile views, and to recycle old local persistent views and global volatile views; The non-uniform memory access architecture includes multiple non-uniform memory access NUMA nodes, and the NUMA nodes include several persistent memories and DRAMs.
2. The method according to claim 1, It is characterized in that The data is divided into cold data and hot data according to the access frequency interval of the corresponding key. If the access frequency of the corresponding key is higher than a set threshold, the data is hot data, otherwise the data is cold data.
3. The method according to claim 1, It is characterized in that There are multiple copies of the local persistent view, one copy in each NUMA node, and the local local persistent view is the local persistent view of the NUMA node where the thread is located.
4. The method according to claim 1, It is characterized in that The local persistent view stores the key values of hot data and records additional metadata to ensure that the latest data can be restored from multiple local persistent views after the system crashes and restarts.
5. The method according to claim 1, It is characterized in that For each piece of hot data, the global volatile view records the corresponding key value, read-write lock, and location information of the key value in the local persistent view. The read-write lock is used to ensure the correctness of concurrent access.
6. The method according to claim 1, It is characterized in that The underlying persistent memory index is any existing persistent index that supports concurrent access, and the underlying persistent memory index is stored in the persistent memory of multiple NUMA nodes.
7. The method according to claim 1, It is characterized in that The specific process of querying the hot data is as follows: The thread queries the global volatile view, obtains a read lock for the corresponding key value, then reads the value and releases the read lock.
8. The method according to claim 1, It is characterized in that The insert, update and delete operations of the hot data include the following steps: The thread queries the global volatile view and obtains a write lock for the corresponding key value; Read the location information of the corresponding key value in the local persistent view; The thread writes the latest value into the local local persistent view according to the position information; The thread updates the corresponding value in the global volatile view and releases the write lock.
9. The method according to claim 1, It is characterized in that When the hotspot is migrated, the specific process of the background operation is as follows: The background thread generates new local persistent views and global volatile views based on the new hot data; The background thread installs the new local persistent view and the global volatile view into the system to serve subsequent operation requests; The background thread inserts the key value in the old global volatile view into the underlying persistent memory index, and releases the space of the persistent memory and the DRAM occupied by the old view.
