NUMA (Non Uniform Memory Access) perceived key value storage system based on hybrid memory and operation method

By introducing the volatile index layer and RAF cache into the NUMA architecture, and combining hash tables and hash groups to manage log items, the performance and resource utilization of the key-value storage system are optimized, and the problem of low key-value storage efficiency under the NUMA architecture is solved. problem, implementing an efficient key-value storage service.

CN118779255AActive Publication Date: 2024-10-15HUAZHONG UNIV OF SCI & TECH

Patent Information

Application Number
CN202410768036.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-10-15
Estimated Expiration
2044-06-14

AI Technical Summary

Technical Problem

The existing key-value storage based on non-consistent hybrid memory is limited by the high remote access overhead in the NUMA architecture, has write amplification problems and resource waste problems, and cannot provide efficient key-value storage services.

Method used

Adopt a NUMA-aware key-value storage system based on hybrid memory, build a volatile index layer and RAF cache in DRAM, use the cache revenue mechanism to optimize PM access performance across NUMA nodes, and manage log items in combination with hash tables and hash groups , optimize write operation concurrency and storage space utilization.

Benefits of technology

It effectively improves PM access performance across NUMA nodes, reduces the number of remote accesses, optimizes the performance and resource utilization of the key-value storage system, and solves the problem of low key-value storage efficiency under the NUMA architecture.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118779255A_ABST
    Figure CN118779255A_ABST
Patent Text Reader

Abstract

The invention discloses an NUMA (Non Uniform Memory Access) perceived key value storage system based on a hybrid memory and an operation method, and belongs to the field of key value storage. In the PM of each NUMA node, the key value pair data is additionally written into a log file in the form of a log item; a first storage area in the DRAM of each NUMA node forms a volatile index layer and is used for storing address information of a key and a log item where a newest value is located; a second storage area in the DRAM of each NUMA node forms an RAF cache and is used for caching the key value pair data, and the higher the access frequency is, the higher the delay of the NUMA node initiating the access request to the PM of the NUMA node where the key value pair data is located is, and the corresponding cache income is higher; and when the RAF cache is replaced, selecting the item with the minimum cache income for replacement. According to the method, PM access performance across NUMA nodes can be optimized, and efficient key value storage service is provided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of key-value storage, and more specifically, relates to a NUMA-aware key-value storage system based on hybrid memory and an operation method thereof. Background Art

[0002] A key-value storage system is a database management system that stores data based on key-value pairs. It identifies each data item with a unique key and uses the value associated with the key to store the actual data content. Its data model is simple and flexible, highly scalable, and can achieve low-latency and high-throughput data access. Therefore, it is called the core component of many storage systems or large-scale distributed systems, including system cache, data storage engine, metadata management, etc.

[0003] With the development of processor technology and the emergence of multi-core processors, multi-processor systems have become a common way to improve computing performance. In traditional symmetric multiprocessor (SMP) systems, memory access latency has become the main factor limiting system performance and scalability. The Non Uniform Memory Access (NUMA) architecture reduces memory contention in multi-processor systems by providing local memory to each processor, providing the system with stronger horizontal scalability. Compared with Dynamic Random Access Memory (DRAM), Persistent Memory (PM) has the advantages of persistence, byte addressability, low power consumption and low price. It can also provide sub-microsecond access latency through a directly connected memory bus and load / store instructions, which has prompted a large number of researchers to actively explore the possibility of hybrid memory consisting of PM and DRAM in key-value storage.

[0004] In the NUMA architecture, all computing and storage resources are organized in different NUMA nodes, which communicate internally through an integrated memory controller bus and communicate between nodes through high-speed inter-node links (such as UPI). Compared with a single CPU, the NUMA architecture can provide more CPU computing resources and memory capacity resources. However, the performance of CPU accessing PM in a remote NUMA node is much worse than accessing PM in a local NUMA node. Since the NUMA architecture has additional access latency for memory access to remote nodes, PM access across NUMA nodes becomes a bottleneck in the overall performance and system scalability of existing PM-based key-value storage. Therefore, it is of great significance to study a DRAM-PM hybrid key-value storage suitable for the NUMA architecture.

[0005] At present, the key-value storage based on non-uniform hybrid memory is still in the early stage of research. The existing NUMA architecture solutions have proposed multi-copy technology, space allocation technology, hot data optimization technology, multi-head log technology and write buffer technology, but there are still many problems. For example, a write operation in the multi-copy technology usually requires multiple updates, which is very unfriendly to PMs with low write performance and data consistency. The practice of space allocation technology such as PACTree prioritizes the allocation of local NUMA node resources, but the effect of reducing remote access is limited in complex user operation loads. Hot data optimization technology maintains a cache of hot data across NUMA nodes in DRAM and flushes it into the PM every time the hot data set is switched, but this is not only difficult to completely eliminate remote access, but also brings additional hot data set migration overhead. In addition, it is not effective for workloads where hot spots are not obvious. Multi-head log solutions such as nibble allocate local log space for each CPU core to avoid remote writes, but garbage collection requires frequent access to the upper hash index, which interferes with foreground operations and does not optimize remote reads. Write buffer solutions such as F3-tree maintain a bidirectional linked list as a write buffer for each thread in each NUMA PM. The write request is first written into the local write buffer and then flushed to the remote by the background thread. However, a large number of remote accesses will still be generated during the background flushing process, and the use of a bidirectional linked list to organize the data in the write buffer consumes a lot of PM space.

[0006] In general, the current non-uniform hybrid memory-based key-value storage is limited by the high remote access overhead in the NUMA architecture, and the existing solutions have write amplification problems and resource waste problems. Summary of the invention

[0007] In view of the defects of the prior art and the need for improvement, the present invention provides a NUMA-aware key-value storage system and operation method based on hybrid memory, which aims to optimize the PM access performance across NUMA nodes and solve the problem that efficient key-value storage services cannot be provided in DRAM-PM hybrid memory under the NUMA architecture.

[0008] To achieve the above object, according to one aspect of the present invention, a NUMA-aware key-value storage system based on hybrid memory is provided, comprising: a plurality of NUMA nodes; the NUMA nodes comprise computing resources and memory resources, the memory resources comprise DRAM and PM; a log file is stored in the PM of the NUMA node, for recording log items in an appended form; the log items comprise key-value pair data and corresponding write operations; the write operations comprise insert operations, update operations and delete operations;

[0009] The key-value storage system maintains a volatile index layer and RAF cache shared by all NUMA nodes;

[0010] The volatile index layer is composed of the first memory area in the DRAM of each NUMA node, which is used to store the index data of each key-value pair; the index data includes the address information of the log entry where the key and the latest value are located;

[0011] The RAF cache is composed of the second memory area in the DRAM of each NUMA node, where each cache entry is used to cache a key-value pair data; the higher the access frequency of the cached key-value pair data and the higher the latency of the NUMA node that initiates the access request to access the PM of the NUMA node where the key-value pair data is located, the higher the cache benefit of the corresponding cache entry; and when cache replacement occurs in the RAF cache, the cache entry with the lowest cache benefit will be selected for replacement.

[0012] Furthermore, the RAF cache also maintains a delay set L i = {l i-x ,1≤x,i≤n∩x,i∈N}, n represents the total number of MUMA nodes, l i-x represents the latency of accessing the PM in the xth NUMA node from the i-th NUMA node;

[0013] And, for cache entry C in the RAF cache, when the key-value pair data kv is written into cache entry C, its cache benefit will be initially j and k represent the NUMA node number requesting access to kv and the NUMA node number storing kv, respectively;

[0014] Each time a request for access to the key-value pair data kv hits cache entry C, the cache benefit of cache entry C will be updated to TF old and TF new Respectively represent the cache benefits before and after the update.

[0015] Furthermore, the RAF cache is a hash table, each table entry is a hash bucket consisting of a fixed number of slots, each slot is used to store a cache entry; the information recorded by the cache entry includes: the key key, value value, cache revenue TF, the ID of the NUMA node storing the key-value pair data, and lock lock; the hash bucket where the cached key-value pair data is located is addressed by the first hash value of the key.

[0016] Further, the log files stored in the PM of the NUMA node are divided into a plurality of hash groups corresponding one-to-one to the second hash values ​​of the keys, and there is only one log file in each hash group as an active file;

[0017] When a log entry is written to PM, it will be written to the active file in the corresponding hash group according to the second hash value of the key. When the active file is full, it will be archived and cannot be written or modified. At the same time, a new active file will be assigned to the hash group.

[0018] The key-value pairs in each hash group share a sequentially increasing version number variable. Each time a log item is appended to a hash group, the version number variable in the hash group increases.

[0019] Furthermore, the address information of the log item includes: the length of the log item, recorded as l_len; the id of the NUMA node of the log item, recorded as numa_id; the id of the log file where the log item is located in the hash group, recorded as log_file_id; and the offset of the log item in the log file, recorded as offset;

[0020] In addition, for key-value pairs whose key and value lengths are unchanged, the log entry includes: the operation type, denoted as Op; the key and value of the key-value pair, denoted as Key and Value respectively; the version number of the value, denoted as Version; and the address information of the log entry where the previous version of the value corresponding to the key is located, denoted as h_addr;

[0021] For key-value pairs with constant key length and variable value length, the log entry includes: operation type, denoted as Op; key and value of the key-value pair, denoted as Key and Value respectively; version number of the value, denoted as Version; length of the value, denoted as V_len; and address information of the log entry of the previous version of the value corresponding to the key, denoted as h_addr;

[0022] For key-value pair data whose key and value lengths are both variable, the log entry specifically includes: the operation type, denoted as Op; the key and value of the key-value pair data, denoted as Key and Value respectively; the version number of the value, denoted as Version; the length of the key, denoted as K_len; and the length of the value, denoted as V_len, as well as the address information of the log entry where the previous version corresponding to the key is located, denoted as h_addr.

[0023] According to another aspect of the present invention, a key-value operation method is provided, which is executed in the above-mentioned NUMA-aware key-value storage system based on hybrid memory provided by the present invention;

[0024] The key value operation method includes: receiving an operation request from the current load, parsing the operation type, and performing a corresponding operation;

[0025] Operation types include: single-point read operation, range read operation, insert operation, update operation and delete operation;

[0026] The execution of a single-point read operation includes:

[0027] Step R1: If the RAF cache is enabled, go to step R2; otherwise, go to step R4;

[0028] Step R2: Based on the key in the operation request r Query the RAF cache. If a hit occurs, the corresponding value is returned directly. r , and update the corresponding cache revenue, and the single-point read operation ends; if it does not hit, go to step R3;

[0029] Step R3: Look up the volatile index layer to get the corresponding value value r The address information of the log item, read the log item, and get the value value from it r And return, and key key r and value r The constructed key-value pair data is cached in the RAF cache, and the single-point read operation ends;

[0030] Step R4: Look up the volatile index layer to get the corresponding value r The address information of the log item, read the log item, and get the value value from it r And return, the single point read operation ends;

[0031] The execution of a range read operation includes:

[0032] Step S1: query all keys within the target key range in the volatile index layer and obtain corresponding address information;

[0033] Step S2: parsing the NUMA node where each key-value pair data is located from the address information read in step S1, and assigning the key-value pair data reading task to the corresponding NUMA node;

[0034] Step S3: creating multiple local background reading threads in each NUMA node respectively, and having the local background reading threads execute the key-value pair data reading tasks in the corresponding NUMA node in parallel, and return the read values;

[0035] The execution of the insert operation includes:

[0036] Step I1: Calculate the key-value pair data kv to be inserted i Middle key i The second hash value is used to determine the key-value pair data kv i The target hash group to be inserted;

[0037] Step I2: insert the key-value pair data kv into the active file of the target hash group of the target NUMA node of the operation i Allocate space for log entries;

[0038] Step I3: Construct key-value pair data kv i Corresponding log entry; in the constructed log entry, h_addr is set to invalid, and Op is the operation code corresponding to the insert operation;

[0039] Step I4: append the constructed log entry to the activity file;

[0040] The execution of the update operation includes:

[0041] Step U1: For the key-value pair data kv to be updated u , query the key-value data kv in the volatile index layer u key u Corresponding address information v_addr u ;

[0042] Step U2: Calculate the key u The second hash value is used to determine the key-value pair data kv u , the corresponding hash group, and the key-value pair data kv in the active file of the hash group u Allocate space for log entries;

[0043] Step U3: Construct key-value pair data kv u Corresponding log entry; in the constructed log entry, h_addr is set to v_addr u , Op is the operation code corresponding to the update operation;

[0044] Step U4: append the constructed log item to the active file, and update the address information of the log item to the volatile index layer;

[0045] The execution of the delete operation includes:

[0046] Step D1: Query the target key in the volatile index layer d Corresponding address information v_addr d ;

[0047] Step D2: Calculate the target key d The corresponding second hash value is used to determine the hash group where the key-value pair data to be deleted is located, and a log entry space is allocated for the key-value pair data to be deleted in the active file of the hash group;

[0048] Step D3: Construct a log entry corresponding to the key-value pair data to be deleted; in the constructed log entry, h_addr is set to v_addr d , Op is the operation code corresponding to the deletion;

[0049] Step D4: Append the constructed log entry to the active file and write the target key key in the volatile index layer d The corresponding index data.

[0050] Furthermore, the key value operation method provided by the present invention further includes: while parsing the operation type, determining the type of the current load;

[0051] If the current load type is read-uniform load or write-intensive load, and RAF cache is enabled, disable RAF cache;

[0052] If the current load type is neither read-uniform nor write-intensive, and RAF caching is disabled, then enable RAF caching.

[0053] Furthermore, the key value operation method provided by the present invention further includes: periodically performing a log entry marking operation in each NUMA node; the execution of the log entry marking operation includes:

[0054] Step L1: In the current NUMA node, randomly select a hash group and traverse the log items therein. For the currently traversed log item E, if it is a valid log item, go to step L2; otherwise, the current log item is marked as finished;

[0055] Step L2: If the operation type of the current log item E is an update operation or a delete operation, proceed to step L3; if the operation type of the current log item E is an insert operation, proceed to step L4;

[0056] Step L3: Search the historical operations according to h_addr in log item E until a log item with invalid h_addr or an invalid log item or a log item pointed to by h_addr has been recycled is encountered, and mark all the searched log items as invalid;

[0057] Step L4: If the current log entry E is not referenced by the volatile index layer, the current log entry E is marked as invalid;

[0058] The key value operation method also includes: when the number of invalid log items in a log file exceeds a preset threshold, the valid log items in the log file are appended to the active file in the same hash group, and the log file is deleted.

[0059] Furthermore, the key-value operation method provided by the present invention also includes: before shutting down the key-value storage system, storing the index data in the volatile index layer to a preset location in the PM, and persisting a flag in the PM to indicate whether the normal key-value storage system is shut down normally.

[0060] Furthermore, the key value operation method provided by the present invention further includes: when the key value storage system is started, reading the index data and the flag from the PM;

[0061] If the flag indicates that the key-value storage system is shut down normally, the read index data is loaded into the volatile index layer;

[0062] If the flag indicates that the key-value pair storage system is not shut down normally, a scanning thread is allocated to each hash group in each NUMA node to scan the log files in the corresponding hash group to rebuild the volatile index layer shown;

[0063] When the scanning thread scans the log file, for log items with the same key, only the log items with the latest version number are retained. After the scanning is completed, the corresponding index data is established based on the retained log items.

[0064] In general, the above technical solutions conceived by the present invention can achieve the following beneficial effects:

[0065] (1) The present invention establishes a cross-NUMA node RAF cache in DRAM above the volatile index layer for caching key-value pair data, and accordingly proposes a method for calculating cache benefit, that is, the higher the access frequency of the cached key-value pair data and the higher the latency of the NUMA node that initiates the access request to access the PM of the NUMA node where the key-value pair data is located, the higher the cache benefit of the corresponding cache entry will be. When performing cache replacement, the cache entry with the smallest cache benefit will be preferentially selected for replacement. The cache mechanism and cache replacement strategy enable key-value pair data that need to be accessed remotely to be cached first, thereby realizing NUMA-aware key-value storage, so that the corresponding access request can be completed directly by accessing the cache without remote access, effectively improving the PM access performance across NUMA nodes and solving the problem that efficient key-value storage services cannot be provided in DRAM-PM hybrid memory under the NUMA architecture.

[0066] (2) In the preferred embodiment of the present invention, each time a cache hit occurs, Update the cache benefit of the hit cache entry, where TF old and TF new Respectively represent the cache benefits before and after the update, l k-k Indicates the local access delay. By maintaining the cache benefit of each cache entry in this way, key-value pairs with high access frequency and remote access can be accurately identified with low complexity and cached.

[0067] (3) In the preferred embodiment of the present invention, the RAF cache is implemented by a hash table, and each table entry is a hash bucket consisting of a fixed number of slots, each slot is used to store a cache entry, thereby being able to directly access any location in the cache, and locating the corresponding hash bucket by calculating the hash value of the key, greatly improving the read and write efficiency of the cache.

[0068] (4) In the preferred embodiment of the present invention, log items are divided into different hash groups according to the hash value of the key, and each hash group has an independent active file, which enables active files in multiple hash groups to be accessed concurrently by multiple threads. Since there are no duplicate keys between hash groups, write contention only occurs within the hash group, effectively improving the concurrency of write operations.

[0069] (5) In the preferred embodiment of the present invention, a concise format is set for the address information of the log item and various log items, thereby enabling subsequent key value operations to be completed efficiently.

[0070] (6) The key-value operation method provided by the present invention can efficiently perform various key-value operations based on the NUMA-aware key-value storage system based on hybrid memory provided by the present invention. Specifically, when performing a single-point read operation, the RAF cache is queried first, and the volatile index layer is queried only when the RAF cache is disabled or the cache misses, thereby effectively reducing remote access and effectively improving the efficiency of single-point read operations; when performing a range read operation, the present invention obtains the address of the log item where all the key-value pair data to be read are located by accessing the volatile index layer, and then allocates the corresponding single-point read operation task to the corresponding NUMA node. In the local NUMA node, multiple local background read threads execute the corresponding key-value pair read tasks in parallel, thereby effectively improving the efficiency of the range read operation.

[0071] (7) When using the RAF cache to cache key-value pair data, additional information needs to be maintained and calculated, which will incur certain overhead; in a read-uniform load, each data is read evenly, and due to limited cache space, cache replacement will occur frequently, which will cause more additional overhead; in a write-intensive load, there are fewer read operations, and the RAF cache will not bring obvious benefits; based on these considerations, the key-value operation method provided by the present invention, in its preferred embodiment, will determine the type of load while processing the load, and disable the RAF cache when it is determined that the load is a read-uniform load or a write-intensive load, which can avoid the situation where the advantages of the RAF cache cannot offset the additional overhead and adapt to different load environments.

[0072] (8) The key value operation method provided by the present invention will periodically mark invalid log items in the log file within the node, and when there are many invalid log items in a log file, the valid log items therein will be migrated out and the log file will be deleted, thereby effectively improving the utilization rate of the PM storage space in the NUMA node.

[0073] (9) The key-value operation method provided by the present invention will persist the index data in the volatile index layer to the PM before the system is shut down, and persist the corresponding flag to indicate whether the key-value storage system is shut down normally. When the system is started, the volatile index layer is loaded or rebuilt according to the flag, thereby effectively ensuring the consistency of the memory in the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0074] Figure 1 A schematic diagram of the structure of a NUMA-aware key-value storage system based on hybrid memory provided in Example 1 of the present invention;

[0075] Figure 2 A schematic diagram of the RAF cache structure provided in Example 1 of the present invention;

[0076] Figure 3 A schematic diagram of the data layout of address items and log items provided in Example 1 of the present invention;

[0077] Figure 4 A schematic diagram of a log item locating process provided in Example 1 of the present invention;

[0078] Figure 5 A flowchart of a read request processing method provided in Embodiment 2 of the present invention;

[0079] Figure 6 A schematic diagram of a write request processing method provided in Example 2 of the present invention;

[0080] Figure 7 A schematic diagram of an invalid log entry recovery process provided by Embodiment 2 of the present invention;

[0081] Figure 8 This is a schematic diagram of the multi-threaded recovery process provided by Example 2 of the present invention. DETAILED DESCRIPTION

[0082] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0083] In the present invention, the terms "first", "second", etc. (if any) in the present invention and the accompanying drawings are used to distinguish similar objects but not necessarily to describe a specific order or sequence.

[0084] In order to solve the technical problem that the existing key-value storage is limited by the large remote access overhead in the NUMA architecture and cannot provide key-value storage services efficiently, the present invention provides a NUMA-aware key-value storage system and operation method based on hybrid memory. The overall idea is that based on the characteristic that the PM access delay across NUMA nodes is much greater than the local PM access delay of the NUMA node under the NUMA architecture, a NUMA-aware RAF cache is introduced on the basis of the original key-value index. While using the RAF cache to cache hot data, key-value pair data that needs to be accessed across NUMA nodes is cached as much as possible to reduce the number of PM accesses across NUMA nodes, thereby improving the key-value pair data storage performance of the key-value storage system.

[0085] The following are examples.

[0086] A NUMA-aware key-value storage system based on hybrid memory, such as Figure 1 As shown, it includes: multiple NUMA nodes; the NUMA nodes include computing resources and memory resources, and the memory resources include DRAM and PM; the DRAM in all NUMA nodes constitute the volatile memory of the key-value storage system, and the PM in all NUMA nodes constitute the persistent memory of the storage system.

[0087] The PM of the NUMA node stores a log file for recording log items in an appended form; the log items include key-value pair data and corresponding write operations; the write operations include insert operations, update operations, and delete operations;

[0088] The key-value storage system maintains a volatile index layer and RAF cache shared by all NUMA nodes;

[0089] The volatile index layer is composed of the first memory area in the DRAM of each NUMA node, which is used to store the index data of each key-value pair; the index data includes the address information of the log entry where the key and the latest value are located;

[0090] The RAF cache is composed of the second memory area in the DRAM of each NUMA node, where each cache entry is used to cache a key-value pair data; the higher the access frequency of the cached key-value pair data and the higher the latency of the NUMA node that initiates the access request to access the PM of the NUMA node where the key-value pair data is located, the higher the cache benefit of the corresponding cache entry; and when cache replacement occurs in the RAF cache, the cache entry with the lowest cache benefit will be selected for replacement.

[0091] like Figure 1 As shown, the key-value storage system provided in this embodiment is divided into three layers at the logical level, namely, the top-level RAF cache, the middle-level volatile index layer, and the bottom-level log storage structure Nlog. Each layer is described in detail below.

[0092] In this embodiment, the RAF cache is located in the DRAM, and its function is to cache the key-value pair data with high access frequency and large access delay as much as possible to reduce the situation of accessing PM across NUMA nodes. To this end, this embodiment proposes a cache mechanism and cache replacement strategy suitable for the NUMA architecture. Specifically, the RAF cache also maintains a delay set L i = {l i-x ,1≤x,i≤n∩x,i∈N}, n represents the total number of MUMA nodes, l i-x represents the latency of accessing the PM in the xth NUMA node from the i-th NUMA node;

[0093] And, for cache entry C in the RAF cache, when the key-value pair data kv is written into cache entry C, its cache benefit will be initially j and k represent the NUMA node number requesting access to kv and the NUMA node number storing kv, respectively;

[0094] Each time a request for access to the key-value pair data kv hits cache entry C, the cache benefit of cache entry C will be updated to TF old and TF new Respectively represent the cache benefits before and after the update;

[0095] It is easy to understand that when j=k, the access to the key-value pair data kv is local access, and when j≠k, the access to the key-value pair data kv is remote access. The delay of remote access is significantly greater than the delay of local access. Therefore, when the access that hits the cache entry is remote access, its cache benefit will become larger; in addition, each time the cache entry hits, the corresponding cache benefit will be updated. Therefore, the cache benefit updated in the above manner also includes the access frequency information of the key-value pair data. In general, through this cache benefit update method, key-value pair data with high access frequency and remote access can be accurately identified with low complexity and cached.

[0096] As an optional implementation, in this embodiment, if Figure 2As shown, the RAF cache is a hash table, each table entry is a hash bucket consisting of a fixed number of slots, each slot is used to store a cache entry; the information recorded by the cache entry includes: the key key, value value, cache revenue TF, the ID of the NUMA node storing the key-value pair data (denoted as numa_id), and lock lock; the hash bucket where the cached key-value pair data is located is addressed by the first hash value of the key.

[0097] The lock in the cache entry is used for concurrency control. When modifying the corresponding slot, it needs to be locked first and then unlocked after the modification is completed.

[0098] This embodiment also includes: when the request cache does not hit, if there are empty slots in the corresponding hash bucket, the corresponding key-value pair data is cached; when the request cache does not hit, and there are no empty slots in the corresponding hash bucket, the key-value pair data with the smallest cache gain TF in the corresponding hash bucket is selected for replacement, and the requested key-value pair data is cached.

[0099] When the TF value of a certain slot reaches the upper limit, in order to prevent overflow, the TF value of all data in the same hash bucket is halved; in order to reduce the impact of too frequent TF value updates on foreground operation performance, this embodiment also adopts a periodic sampling strategy, that is, after a fixed number of search operations (32 times by default), the TF values ​​of all cache entries in the entire RAF cache are reduced proportionally.

[0100] Since RAF cache data requires maintenance and calculation of additional information, under certain loads, the advantages of RAF cache may not offset the overhead of maintaining and calculating additional information. To avoid this, in this embodiment, RAF cache can be disabled or enabled according to actual load characteristics. Specifically, RAF cache is disabled when one of the following conditions is met:

[0101] (1) The read operations received by the RAF cache are less than a certain proportion (e.g., 10%) of all read operations. This indicates that the data in the load will be read evenly. This load is a read-even load. In this case, the hit rate of using the RAF cache for data caching is low.

[0102] (2) All cached data in the same hash bucket have similar TF values. In this case, data with certain specific keys in the load are read evenly, which is a read-even load.

[0103] (3) The proportion of read operations in the RAF cache is small. For example, the number of read operations in the RAF cache is less than 10% of all operations, which indicates that the load at this time is write-intensive. To ensure the persistent storage of data, most data needs to be persisted directly to the PM. The RAF cache does not significantly improve the performance of the key-value storage system.

[0104] In this embodiment, the volatile index layer is located in DRAM. In practical applications, concurrent range indexes such as tree-based or learning model-based indexes can be used. Optionally, in this embodiment, considering that the learning model-based index usually has good performance and small space occupancy, the learning model-based index is selected as the default index, which usually has good performance and small space occupancy.

[0105] Considering that remote DRAM access is faster than local PM access, the volatile index spans multiple NUMA nodes.

[0106] In this embodiment, the underlying log structure is located in PM. Specifically, a local log file (denoted as Nlog file) is created in each NUMA node, and it is strictly required that all write operations can only be appended to the corresponding latest local Nlog file. In order to prevent a single operation log from becoming a bottleneck in a multi-threaded concurrent environment, the Nlog log structure uses a hash function to calculate the hash value of the key, and groups the data according to the hash value of the key. All log items with the same hash value are gathered into a hash group, and each hash group of each NUMA node has an independent active file. Once the active file is full, it will be archived and cannot be written or modified, and a new active file will be created at the same time. In this embodiment, the default size of the Nlog file is 8MB. Since there are no repeated keys between hash groups, write competition only occurs inside the hash group, thereby improving the concurrency of write operations.

[0107] In addition, the key-value pairs in each hash group share a sequentially increasing version number variable. Each time a log item is appended to a hash group, the version number variable in the hash group increases.

[0108] Specifically, the address information of the log item is as follows: Figure 3 As shown, the address information of the log item includes: the length of the log item, recorded as l_len; the id of the NUMA node of the log item, recorded as numa_id; the id of the log file where the log item is located in the hash group, recorded as log_file_id; and the offset of the log item in the log file, recorded as offset;

[0109] In this implementation, the address information of the log item with the latest value stored in the volatile index layer is recorded as v_addr; optionally, in v_addr, l_len, numa_id, log_file_id and offset occupy 2 bytes, 3 bytes, 4 bytes and 8 bytes respectively from high to low. Figure 4As shown in the figure, by using the hash group number calculated by numa_id, log_file_id and the hash value of the key, the index system can accurately find a specific log file, and then accurately locate the log item based on offset and l_len.

[0110] In order to be applicable to different types of workloads, this embodiment designs three log item structures, such as Figure 3 As shown in the figure, the log item structures corresponding to various key-value pairs are as follows:

[0111] For key-value pairs whose key and value lengths remain unchanged, the log entry includes: the operation type, denoted as Op; the key and value of the key-value pair, denoted as Key and Value respectively; the version number of the value, denoted as Version; and the address information of the log entry where the previous version of the value corresponding to the key is located, denoted as h_addr;

[0112] For key-value pairs with constant key length and variable value length, the log entry includes: operation type, denoted as Op; key and value of the key-value pair, denoted as Key and Value respectively; version number of the value, denoted as Version; length of the value, denoted as V_len; and address information of the log entry of the previous version of the value corresponding to the key, denoted as h_addr;

[0113] For key-value pair data whose key and value lengths are both variable, the log entry specifically includes: the operation type, denoted as Op; the key and value of the key-value pair data, denoted as Key and Value respectively; the version number of the value, denoted as Version; the length of the key, denoted as K_len; and the length of the value, denoted as V_len, as well as the address information of the log entry where the previous version corresponding to the key is located, denoted as h_addr.

[0114] Optionally, in this embodiment, the Op corresponding to the insert operation (ins), update operation (upd) and delete operation (del) are represented by 11, 10 and 01 respectively. At the same time, the corresponding log item is marked as an invalid log item by setting Op to 00. In the log item structure, h_addr records the address of the log item corresponding to the last operation for the same key. Therefore, historical operations for the same key can be searched based on h_addr. It is easy to understand that for the key-value pair data inserted by the insert operation, there is no historical operation. Optionally, in this embodiment, the h_addr in the log item corresponding to the insert operation is set to invalid to mark the search end point of the historical operation.

[0115] In general, this embodiment establishes a RAF cache across NUMA nodes in DRAM on top of the volatile index layer, and proposes a cache mechanism and cache replacement strategy suitable for the NUMA architecture, thereby implementing NUMA node-aware data cache and effectively improving the read operation performance of key-value data. In addition, by improving the underlying log storage mechanism, a NUMA node-aware log storage structure is implemented, which can effectively improve the concurrency of key-value data operations in PM and improve write performance.

[0116] Embodiment 2:

[0117] A key-value operation method. The key-value operation method provided in this embodiment is executed in the NUMA-aware key-value storage system based on hybrid memory provided in the above-mentioned embodiment 1.

[0118] The key value operation method provided in this embodiment specifically includes: receiving an operation request from the current load, parsing the operation type, and performing a corresponding operation;

[0119] Operation types include: single-point read operation, range read operation, insert operation, update operation and delete operation;

[0120] like Figure 5 As shown, the execution of a single-point read operation includes:

[0121] Step R1: If the RAF cache is enabled, go to step R2; otherwise, go to step R4;

[0122] Step R2 is based on the key in the operation request. r Query the RAF cache. If a hit occurs, the corresponding value is returned directly. r , and update the corresponding cache revenue, and the single-point read operation ends; if it does not hit, go to step R3;

[0123] Step R3: Look up the volatile index layer to get the corresponding value value r The address information of the log item, read the log item, and get the value value from it r And return, and key key r and value r The constructed key-value pair data is cached in the RAF cache, and the single-point read operation ends;

[0124] After obtaining the address information of the log item from the volatile index layer, the length of the log item, the id of the log item NUMA node, the id of the log file where the log item is located in the hash group, and the offset of the log item in the log file can be parsed. Figure 4 The positioning process shown realizes the positioning of log items;

[0125] It is easy to understand that when a RAF cache misses, when caching key-value pair data, if there is no empty slot in the corresponding hash bucket, the cache entry with the minimum cache benefit will be selected from the hash bucket for replacement;

[0126] Step R4: Look up the volatile index layer to get the corresponding value r The address information of the log item, read the log item, and get the value value from it r And return, the single point read operation ends;

[0127] Since log files strictly write log entries in an append-only manner, all valid log entries will not be modified. Therefore, Nlog supports lock-free reading, while node locks are used in the volatile index layer to control the concurrency of read and write operations.

[0128] like Figure 5 As shown, the execution of the range read operation includes:

[0129] Step S1: query all keys within the target key range in the volatile index layer and obtain corresponding address information;

[0130] Step S2: parsing the NUMA node where each key-value pair data is located from the address information read in step S1, and assigning the key-value pair data reading task to the corresponding NUMA node;

[0131] Step S3: Create multiple local background reading threads in each NUMA node respectively, and the local background reading threads execute the key-value pair data reading tasks in the corresponding NUMA node in parallel and return the read values.

[0132] like Figure 6 As shown, the execution of the insert operation includes:

[0133] Step I1: Calculate the key-value pair data kv to be inserted i Middle key i The second hash value is used to determine the key-value pair data kv i The target hash group to be inserted;

[0134] Step I2: insert the key-value pair data kv into the active file of the target hash group of the target NUMA node of the operation i Allocate space for log entries;

[0135] Step I3: Construct key-value pair data kv i Corresponding log entry; in the constructed log entry, h_addr is set to invalid, and Op is the operation code corresponding to the insert operation;

[0136] Step I4: Append the constructed log entry to the activity file.

[0137] like Figure 6 As shown, the execution of the update operation includes:

[0138] Step U1: For the key-value pair data kv to be updated u , query the key-value data kv in the volatile index layer u key u Corresponding address information v_addr u ;

[0139] Step U2: Calculate the key u The second hash value is used to determine the key-value pair data kv u , the corresponding hash group, and the key-value pair data kv in the active file of the hash group u Allocate space for log entries;

[0140] Step U3: Construct key-value pair data kv u Corresponding log entry; in the constructed log entry, h_addr is set to v_addr u , Op is the operation code corresponding to the update operation;

[0141] Step U4: append the constructed log entry to the active file, and update the address information of the log entry to the volatile index layer.

[0142] The execution of a delete operation is similar to that of an update operation, including:

[0143] Step D1: Query the target key in the volatile index layer d Corresponding address information v_addr d ;

[0144] Step D2: Calculate the target key d The corresponding second hash value is used to determine the hash group where the key-value pair data to be deleted is located, and a log entry space is allocated for the key-value pair data to be deleted in the active file of the hash group;

[0145] Step D3: Construct a log entry corresponding to the key-value pair data to be deleted; in the constructed log entry, h_addr is set to v_addr d , Op is the operation code corresponding to the deletion;

[0146] It is easy to understand that when allocating log items, all contents are initialized to 0. For the deleted key-value pair data, its value is no longer used. Therefore, when constructing the log item corresponding to the key-value pair data to be deleted, there is no need to fill the value field therein;

[0147] Step D4: Append the constructed log entry to the active file and write the target key key in the volatile index layer d The corresponding index data.

[0148] To prevent the advantage of the RAF cache from failing to offset the overhead of maintaining and calculating the additional information, the present embodiment further includes: while parsing the operation type, determining the type of the current load;

[0149] If the current load type is read-uniform load or write-intensive load, and RAF cache is enabled, disable RAF cache;

[0150] If the current load type is neither read-uniform nor write-intensive, and RAF caching is disabled, then enable RAF caching.

[0151] In this embodiment, the method for determining the read-uniform load and the write-intensive load can refer to the description in the above-mentioned embodiment 1. When condition (1) or (2) is met, the load type is determined to be a read-uniform load. When condition (3) is met, the load type is determined to be a write-intensive load.

[0152] In this embodiment, a write lock located in DRAM is used for each hash group to support write concurrency of active files. When the active file is appended, it needs to be locked first, the appended write is performed, and then unlocked. In addition, once the writing thread obtains the allocated log item space, the lock will be released without waiting for the data in the log item to be completely written. In the volatile index layer, each node uses a node lock to control write concurrency. When the node undergoes operations such as merging, splitting, and updating, it needs to be locked first, then perform the corresponding operation, and then unlock.

[0153] With the continuous use of the key-value storage system, invalid log items will gradually accumulate in the log file. In order to avoid invalid log items occupying too much PM storage space, it is necessary to recycle the storage space occupied by invalid log items in the log file, that is, to perform garbage collection. In this embodiment, due to the existence of h_addr in the log item, garbage collection can be performed without the query process, thereby minimizing the interference with the foreground operation; at the same time, since the entries marked invalid are all outdated, modifying them will not affect the foreground thread.

[0154] To effectively implement garbage collection, this embodiment further includes: periodically performing a log entry marking operation in each NUMA node; Figure 7 As shown, the execution of the log entry marking operation includes:

[0155] Step L1: In the current NUMA node, randomly select a hash group and traverse the log items therein. For the currently traversed log item E, if it is a valid log item, go to step L2; otherwise, the current log item is marked as finished;

[0156] Step L2: If the operation type of the current log item E is an update operation or a delete operation, proceed to step L3; if the operation type of the current log item E is an insert operation, proceed to step L4;

[0157] Step L3: Search the historical operations according to h_addr in log item E until a log item with invalid h_addr or an invalid log item or a log item pointed to by h_addr has been recycled is encountered, and mark all the searched log items as invalid;

[0158] Step L4: If the current log entry E is not referenced by the volatile index layer, the current log entry E is marked as invalid;

[0159] The key value operation method also includes: when the number of invalid log items in a log file exceeds a preset threshold, the valid log items in the log file are appended to the active file in the same hash group, and the log file is deleted.

[0160] In this embodiment, each NUMA node has a garbage collection thread for the local log entry traversal process of the NUMA node, thereby reducing cross-node PM accesses, and different garbage collection threads do not need to communicate with each other.

[0161] In this embodiment, the write thread always writes the op field last when appending log entries. The initialization value of each active file is 0, so the new log entry is invalid before op is updated to 01 (delete operation), 10 (update operation) or 11 (insert operation). After the system crashes, the recovery thread will ignore the invalid log entries. Therefore, the crash consistency of the write operation can be guaranteed.

[0162] In order to ensure the consistency of data in memory, such as Figure 8 As shown, the key-value operation method provided in this embodiment further includes: before shutting down the key-value storage system, storing the index data in the volatile index layer to a preset position in the PM, and persisting a flag in the PM to indicate whether the normal key-value storage system is shut down normally;

[0163] When the key-value storage system starts, read the index data and flag from PM;

[0164] If the flag indicates that the key-value storage system is shut down normally, the read index data is loaded into the volatile index layer;

[0165] If the flag indicates that the key-value pair storage system is not shut down normally, a scanning thread is allocated to each hash group in each NUMA node to scan the log files in the corresponding hash group to rebuild the volatile index layer shown;

[0166] When the scanning thread scans the log file, for log items with the same key, only the log items with the latest version number are retained. After the scanning is completed, the corresponding index data is established based on the retained log items.

[0167] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A NUMA-aware key-value storage system based on hybrid memory, It is characterized in that include: Multiple NUMA nodes; The NUMA node includes computing resources and memory resources, and the memory resources include DRAM and PM; a log file is stored in the PM of the NUMA node, which is used to record log items in an appended form; the log items include key-value pair data and corresponding write operations; the write operations include insert operations, update operations, and delete operations; The key-value storage system maintains a volatile index layer and RAF cache shared by all NUMA nodes; The volatile index layer is composed of a first memory area in the DRAM of each NUMA node, and is used to store index data of each key-value pair; the index data includes address information of the log item where the key and the latest value are located; The RAF cache is composed of the second memory area in the DRAM of each NUMA node, and each cache entry therein is used to cache a key-value pair data; the higher the access frequency of the cached key-value pair data and the higher the latency of the NUMA node that initiates the access request to access the PM of the NUMA node where the key-value pair data is located, the higher the cache benefit of the corresponding cache entry; and when cache replacement occurs in the RAF cache, the cache entry with the lowest cache benefit will be selected for replacement.

2. The NUMA-aware key-value storage system based on hybrid memory as claimed in claim 1, It is characterized in that The RAF cache also maintains a delay set L i = {l i-x ,1≤x,i≤n∩x,i∈N}, n represents the total number of MUMA nodes, l i-x represents the latency of accessing the PM in the xth NUMA node from the i-th NUMA node; And, for cache entry C in the RAF cache, when the key-value pair data kv is written into cache entry C, its cache benefit will be initially j and k represent the NUMA node number requesting access to kv and the NUMA node number storing kv, respectively; Each time a request for access to the key-value pair data kv hits cache entry C, the cache benefit of cache entry C will be updated to TF old and TF new Respectively represent the cache benefits before and after the update.

3. The NUMA-aware key-value storage system based on hybrid memory as claimed in claim 2, It is characterized in that The RAF cache is a hash table, each table entry is a hash bucket consisting of a fixed number of slots, each slot is used to store a cache entry; the information recorded in the cache entry includes: the key key, value value, cache revenue TF, the ID of the NUMA node storing the key-value pair data, and lock lock; the hash bucket where the cached key-value pair data is located is addressed by the first hash value of the key.

4. The NUMA-aware key-value storage system based on hybrid memory according to any one of claims 1 to 3, It is characterized in that The log files stored in the PM of the NUMA node are divided into a plurality of hash groups corresponding to the second hash values ​​of the keys, and there is only one log file in each hash group as an active file; When a log entry is written to PM, it will be appended to the activity file in the corresponding hash group according to the second hash value of the key; When the active file is full, it will be archived and cannot be written or modified. At the same time, a new active file will be assigned to the hash group; The key-value pairs in each hash group share a sequentially increasing version number variable. Each time a log item is appended to a hash group, the version number variable in the hash group increases.

5. The NUMA-aware key-value storage system based on hybrid memory as claimed in claim 4, It is characterized in that The address information of the log item includes: the length of the log item, recorded as l_len; the id of the NUMA node described in the log item, recorded as numa_id; the id of the log file where the log item is located in the hash group, recorded as log_file_id; and the offset of the log item in the log file, recorded as offset; In addition, for key-value pairs whose key and value lengths are unchanged, the log entry includes: the operation type, denoted as Op; the key and value of the key-value pair, denoted as Key and Value respectively; the version number of the value, denoted as Version; and the address information of the log entry where the previous version of the value corresponding to the key is located, denoted as h_addr; For key-value pairs with constant key length and variable value length, the log entry includes: operation type, denoted as Op; key and value of the key-value pair, denoted as Key and Value respectively; version number of the value, denoted as Version; length of the value, denoted as V_len; and address information of the log entry of the previous version of the value corresponding to the key, denoted as h_addr; For key-value pair data whose key and value lengths are both variable, the log entry specifically includes: the operation type, denoted as Op; the key and value of the key-value pair data, denoted as Key and Value respectively; the version number of the value, denoted as Version; the length of the key, denoted as K_len; and the length of the value, denoted as V_len, as well as the address information of the log entry where the previous version corresponding to the key is located, denoted as h_addr.

6. A key value operation method, It is characterized in that The NUMA-aware key-value storage system based on hybrid memory as described in claim 5 is implemented; The key value operation method comprises: receiving an operation request from the current load, parsing the operation type, and performing a corresponding operation; The operation types include: single-point read operation, range read operation, insert operation, update operation and delete operation; The execution of the single point read operation includes: Step R1: If the RAF cache is enabled, proceed to step R2; otherwise, proceed to step R4; Step R2: Based on the key in the operation request r Query the RAF cache, and if a hit occurs, directly return the corresponding value value r , and update the corresponding cache revenue, and the single-point read operation ends; if it does not hit, go to step R3; Step R3: Look up the volatile index layer to obtain the corresponding value value r The address information of the log item, read the log item, and get the value value from it r And return, look up the volatile index layer to get the corresponding value value r The address information of the log item, read the log item, and get the value value from it r And return, and key key r and value r The constructed key-value pair data is cached in the RAF cache, and the single-point read operation ends; Step R4: Look up the volatile index layer to get the corresponding value r The address information of the log item, read the log item, and get the value value from it r And return, the single point read operation ends; The execution of the range read operation includes: Step S1: querying all keys within the target key range in the volatile index layer and obtaining corresponding address information; Step S2: parsing the NUMA node where each key-value pair data is located from the address information read in step S1, and assigning the key-value pair data reading task to the corresponding NUMA node; Step S3: creating multiple local background reading threads in each NUMA node respectively, and having the local background reading threads execute the key-value pair data reading tasks in the corresponding NUMA node in parallel, and return the read values; The execution of the insert operation includes: Step I1: Calculate the key-value pair data kv to be inserted i Middle key i The second hash value is used to determine the key-value pair data kv i The target hash group to be inserted; Step I2: insert the key-value pair data kv into the active file of the target hash group of the target NUMA node of the operation i Allocate space for log entries; Step I3: Construct key-value pair data kv i Corresponding log entry; in the constructed log entry, h_addr is set to invalid, and Op is the operation code corresponding to the insert operation; Step I4: append the constructed log entry to the activity file; The execution of the update operation includes: Step U1: For the key-value pair data kv to be updated u , query the key-value pair data kv in the volatile index layer u key u Corresponding address information v_addr u ; Step U2: Calculate the key u The second hash value is used to determine the key-value pair data kv u , the corresponding hash group, and the key-value pair data kv in the active file of the hash group u Allocate space for log entries; Step U3: Construct key-value pair data kv u Corresponding log entry; in the constructed log entry, h_addr is set to v_addr u , Op is the operation code corresponding to the update operation; Step U4: append the constructed log item to the active file, and update the address information of the log item to the volatile index layer; The execution of the deletion operation includes: Step D1: Query the target key in the volatile index layer d Corresponding address information v_addr d ; Step D2: Calculate the target key d The corresponding second hash value is used to determine the hash group where the key-value pair data to be deleted is located, and a log entry space is allocated for the key-value pair data to be deleted in the active file of the hash group; Step D3: Construct a log entry corresponding to the key-value pair data to be deleted; in the constructed log entry, h_addr is set to v_addr d , Op is the operation code corresponding to the deletion; Step D4: append the constructed log item to the active file and write the target key key in the volatile index layer to the active file. d The corresponding index data.

7. The key value operation method according to claim 6, It is characterized in that Also includes: While parsing the operation type, determine the type of the current load; If the type of the current load is a read-even load or a write-intensive load, and the RAF cache is enabled, disabling the RAF cache; If the type of the current load is neither a read-uniform load nor a write-intensive load, and the RAF cache is disabled, the RAF cache is enabled.

8. The key value operation method according to claim 6 or 7, It is characterized in that Also includes: Periodically perform log entry marking operations in each NUMA node; The execution of the log entry marking operation includes: Step L1: In the current NUMA node, randomly select a hash group and traverse the log items therein. For the currently traversed log item E, if it is a valid log item, go to step L2; otherwise, the current log item is marked as finished; Step L2: If the operation type of the current log item E is an update operation or a delete operation, proceed to step L3; if the operation type of the current log item E is an insert operation, proceed to step L4; Step L3: Search the historical operations according to h_addr in log item E until a log item with invalid h_addr or an invalid log item or a log item pointed to by h_addr has been recycled is encountered, and mark all the searched log items as invalid; Step L4: if the current log entry E is not referenced by the volatile index layer, the current log entry E is marked as invalid; The key value operation method also includes: when the number of invalid log items in a log file exceeds a preset threshold, the valid log items in the log file are appended to the active file in the same hash group, and the log file is deleted.

9. The key value operation method according to claim 6 or 7, It is characterized in that It also includes: before shutting down the key-value storage system, storing the index data in the volatile index layer in a preset position in the PM, and persisting a flag in the PM to indicate whether the key-value storage system is shut down normally.

10. The key value operation method according to claim 9, It is characterized in that Also includes: When the key-value storage system is started, index data and flag are read from PM; If the flag bit flag indicates that the key-value storage system is shut down normally, the read index data is loaded into the volatile index layer; If the flag indicates that the key-value pair storage system is not shut down normally, a scanning thread is allocated to each hash group in each NUMA node to scan the log files in the corresponding hash group to rebuild the volatile index layer; When the scanning thread scans the log file, for log items with the same key, only the log items with the latest version number are retained. After the scanning is completed, the corresponding index data is established based on the retained log items.

Citation Information

Patent Citations

  • Persistent memory storage engine device based on log structure and control method

    CN110377531A

  • Construction method and operation method of DRAM-NVM hybrid index structure

    CN113590612A

  • Key value storage method based on hash table and LSM tree

    CN113821171A

  • Read-write performance optimization method based on persistent memory B + tree index

    CN115422182A

  • B + tree index system of heterogeneous memory architecture

    CN117785885A

Cited By

  • Data-driven hash indexing method based on persistent CPU cache

    CN120255799A

  • Log data processing method, device and equipment for memory access node

    CN120371551A

  • Method and system for constructing highly extensible learning index perceived by NUMA (Non Uniform Memory Access) architecture and operation method

    CN120541272A