Method for accessing memory data across nodes and related device

By using the SDMA engine in the memory pool for cross-node memory pass-through, the bandwidth shortage problem in the memory pool architecture is solved, achieving efficient memory access and improved application performance.

CN123178296APending Publication Date: 2026-11-27HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510691283.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-26
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing memory pool architectures have poor performance in cross-node memory access, especially due to low bandwidth, which makes it difficult to meet business needs and affects the application performance of compute nodes.

Method used

The system direct memory access (SDMA) engine is used to achieve cross-node memory pass-through through the hyperplane network, simplifying the memory pool architecture, avoiding data transmission through the network card, and using the SDMA engine for high-bandwidth, low-latency data transfer.

Benefits of technology

It improves the access performance of the memory pool, shortens the access time, and ensures the efficient operation of applications such as AI training or AI inference.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123178296A_ABST
    Figure CN123178296A_ABST
Patent Text Reader

Abstract

A cross-node memory data access method comprises: a first memory access module receiving a memory access request of a service module, the memory access request comprising a key of to-be-accessed data, and routing the key of the to-be-accessed data to a second memory pool management module; the second memory pool management module determining an address of a host memory in a second computing node according to the key of the to-be-accessed data, and performing data access between the first computing node and the second computing node through a hyperplane network by using a first SDMA engine or a second SDMA engine according to the address of the host memory in the second computing node. In this way, the memory pool architecture can be simplified into a single-layer architecture, without local cache, but cross-node memory direct access by using the SDMA engine, and the data transmission does not pass through the network card, the bandwidth is not limited by the network card hardware, the access time is shortened, the access performance is improved, and thus the memory pool performance is improved. The high-performance memory pool can guarantee the application performance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of memory management technology, and in particular to a cross-node memory data access method, a memory access system, a second memory pool management module, a computing device cluster, a computer-readable storage medium, and a computer program product. Background Technology

[0002] With the continuous development of computing technology and the increasing scale of data, more and more users are choosing to configure accelerators, such as Neural-network Processing Units (NPUs), Graphics Processing Units (GPUs), and Tensor Processing Units (TPUs), in computing nodes to improve their computing power or performance. In many scenarios, accelerators, represented by NPUs, can generate massive amounts of data during computation, which cannot all be stored in the accelerator's own memory (also known as device memory). For example, model files generated by the NPU during training cannot all be stored in the accelerator's high-bandwidth memory (HBM). Therefore, the data can be offloaded to host memory or object storage.

[0003] To improve the available capacity of compute nodes, the host memory of multiple compute nodes can be organized into a memory pool. The memory pool provides unified memory services to higher layers (such as the application layer), which do not need to be aware of the data location. Since the performance of storing data in the host memory of the same node is much better than storing it across nodes, the memory pool typically allocates a caching layer within the node. Data is first saved to the caching layer and a success result is returned. The caching layer then asynchronously transfers the data to the host memory of other nodes.

[0004] However, the performance of memory pools is poor, especially the bandwidth of cross-node memory access within the memory pool, which is low and difficult to meet business needs. Summary of the Invention

[0005] This application provides a cross-node memory data access method that utilizes a system direct memory access (SDMA) engine to perform cross-node memory pass-through access via a hyperplane network. This simplifies the memory pool architecture, eliminates the need for local caching, and ensures that data transmission does not pass through the network card, thus removing bandwidth limitations imposed by the network card hardware, shortening access time, and improving memory pool performance. This application also provides a memory access system, a second memory pool management module, a computing device cluster, a computer-readable storage medium, and a computer program product corresponding to the above method.

[0006] Firstly, this application provides a cross-node memory data access method. This method is applied to a computing device cluster, which includes multiple computing nodes, at least one of which includes a host and an accelerator. The accelerator includes a System Memory Direct Access (SDMA) engine. The SDMA engine is a distributed, decentralized DMA engine responsible for high-bandwidth, low-latency data transfer. The SDMA engine is used to accelerate accelerators such as NPUs, enabling memory processing of double-data-rate SDRAM (DDR), high-bandwidth memory (HBM), and memory processing between DDR and HBM. The SDMA engine may include functions such as memory copy (memcpy), memory set (memset), and HBM cache preload.

[0007] The multiple computing nodes include a first computing node and a second computing node. The first computing node deploys a first memory pool management module and a first memory access module, while the second computing node deploys a second memory pool management module and a second memory access module. The first SDMA engine is the SDMA engine of the accelerator of the first computing node, and the second SDMA engine is the SDMA engine of the accelerator of the second computing node.

[0008] Specifically, the first memory access module receives a memory access request from the service module. The memory access request includes the key of the data to be accessed. Then, the first memory access module routes the key of the data to be accessed to the second memory pool management module. The second memory pool management module determines the address of the host memory in the second compute node based on the key of the data to be accessed. Then, based on the address of the host memory in the second compute node, it uses either the first SDMA engine or the second SDMA engine to access the data between the first and second compute nodes through a hyperplane network, thereby realizing cross-node memory pass-through access.

[0009] In this method, the memory pool architecture can be simplified to a single-layer architecture, eliminating the need for local caching. Instead, it utilizes the SDMA engine to perform cross-node memory pass-through, thus shortening access time. Furthermore, since data transmission does not pass through the network card, bandwidth is not limited by the network card hardware, further reducing access time and improving access performance, thereby enhancing memory pool performance. A high-performance memory pool can guarantee application performance, such as AI training or AI inference performance.

[0010] In some possible implementations, the first compute node and the second compute node belong to the same supernode. The second memory pool management module can submit the address of the host memory in the second compute node to either the first or second SDMA engine, enabling the first or second SDMA engine to access data between the first and second compute nodes via the hyperplane network within the supernode, based on the address of the host memory in the second compute node. During inter-node data access, the first or second SDMA engine can utilize the high-speed interconnect bus within the hyperplane network.

[0011] This method improves memory pool performance by reusing the hyperplane network in the supernode for cross-node memory pass-through access (e.g., cross-node memory pass-through copy). When reading and writing data across nodes, it achieves the same effect as accessing local memory, enabling equal access to local memory and cross-node memory. It should also be noted that for intra-node reads and writes, this application supports the use of the hyperplane network to avoid bandwidth limitations imposed by the peripheral component interconnect express (PCIe) bandwidth standard.

[0012] In some possible implementations, the first memory access module can receive a registration request from the first memory pool management module. This registration request includes the address information of the host memory managed by the first memory pool management module. Then, the first memory access module establishes a mapping relationship between the accelerator's device memory and the host memory based on the host memory address information. This process is also known as initialization. Correspondingly, during cross-node memory access, the second memory pool management module can submit the address of the host memory in the second compute node to the first SDMA engine, enabling the first SDMA engine to access data between the first and second compute nodes via the hyperplane network based on the mapping relationship between the accelerator's device memory and the host memory.

[0013] In this method, the first memory access module can complete the initialization process in advance, thereby laying the foundation for the first SDMA engine to trigger cross-node memory pass-through access in the future.

[0014] In some possible implementations, the first memory access module can also receive the address information of the host memory managed by the second memory pool management module sent by the second memory pool management module through the virtual private cloud plane network. Accordingly, the first memory access module can establish a mapping relationship between the accelerator's device memory and the host memory based on the address information of the host memory managed by the first memory pool management module and the address information of the host memory managed by the second memory pool management module.

[0015] In this way, the first memory access module can establish a relatively comprehensive and complete memory mapping relationship, providing strong support for the first SDMA engine to trigger cross-node memory pass-through access.

[0016] In some possible implementations, the first memory access module may also send a registration request to the accelerator of the second computing node. The registration request includes the address information of the device memory of the first computing node's accelerator, enabling the second computing node's accelerator to establish a mapping relationship between its device memory and host memory based on the address information of the first computing node's accelerator's device memory and the address information of the second computing node's host memory. Correspondingly, the second memory pool management module submits the address of the host memory in the second computing node to the second SDMA engine, enabling the second SDMA engine to access data between the first and second computing nodes via the hyperplane network based on the mapping relationship between the accelerator's device memory and host memory.

[0017] In this method, the first memory access module sends a registration request to the accelerator of the second computing node, and the accelerator of the second computing node completes the initialization process in advance, thereby laying the foundation for the second SDMA engine to trigger cross-node memory pass-through access in the future.

[0018] In some possible implementations, the first compute node and the second compute node belong to the same supernode. The first memory access module can send registration requests to the accelerator of the second compute node through the supernode's hyperplane network or virtual private cloud plane network. This provides high flexibility and can meet diverse business needs.

[0019] In some possible implementations, memory access requests include one or more of the following: place requests, fetch requests, load requests, and store requests. This allows for support for different types of read and write requests and provides high availability.

[0020] In some possible implementations, memory access requests include fetch requests or load requests. These requests include the key, address, and length of the data to be accessed. Correspondingly, the first memory access module can also route the address of the data to be accessed to the second memory pool management module. This helps the second memory pool management module query addresses in the host memory.

[0021] In some possible implementations, the data to be accessed includes checkpoint files from the training process or key-value vectors generated during inference. This data is typically large-scale, and utilizing the SDMA engine for cross-node memory pass-through access to such large-scale data can improve training or inference efficiency.

[0022] In some possible implementations, when the usage of the memory pool reaches a threshold, the second memory pool management module migrates the data in the memory pool to non-volatile storage. This non-volatile storage can include Elastic Volume Service (EVS) or solid-state drives (SSDs).

[0023] This method can be based on the tiered caching technology of hyperplane memory pools, and utilize the fully peer-to-peer architecture of the hyperplane to support the convergence of bandwidth for SSD storage and prefetching, thereby improving the bandwidth performance of tiered caches such as SSDs.

[0024] Secondly, this application provides a cross-node memory data access method. This method is applied to a computing device cluster, which includes multiple computing nodes. At least one of the computing nodes includes a host and an accelerator, and the accelerator includes a System Memory Direct Access (SDMA) engine. The multiple computing nodes include a first computing node and a second computing node. The first computing node deploys a first memory pool management module and a first memory access module, and the second computing node deploys a second memory pool management module and a second memory access module.

[0025] Specifically, the second memory pool management module receives the key of the data to be accessed sent by the first memory access module, and then determines the address of the host memory in the second compute node based on the key. Next, the second memory pool management module can access data between the first and second compute nodes via a hyperplane network, using either the first SDMA engine or the second SDMA engine, based on the address of the host memory in the second compute node. The first SDMA engine is the SDMA engine of the accelerator of the first compute node, and the second SDMA engine is the SDMA engine of the accelerator of the second compute node.

[0026] In this method, the memory pool architecture can be simplified to a single-layer architecture, eliminating the need for local caching. Instead, it utilizes the SDMA engine to perform cross-node memory pass-through, thus shortening access time. Furthermore, since data transmission does not pass through the network card, bandwidth is not limited by the network card hardware, further reducing access time and improving access performance, thereby enhancing memory pool performance. A high-performance memory pool can guarantee application performance, such as AI training or AI inference performance.

[0027] In some possible implementations, the method further includes:

[0028] The second memory pool management module sends the address information of the host memory managed by the second memory pool management module to the first memory access module through the virtual private cloud plane network, so that the first memory access module can establish a mapping relationship between the device memory of the accelerator and the host memory based on the address information of the host memory;

[0029] The second memory pool management module, based on the address of the host memory in the second compute node, utilizes either the first SDMA engine or the second SDMA engine to access data between the first compute node and the second compute node via a hyperplane network, including:

[0030] The second memory pool management module submits the address of the host memory in the second computing node to the first SDMA engine, so that the first SDMA engine can access data between the first computing node and the second computing node through the hyperplane network according to the mapping relationship between the device memory and the host memory of the accelerator.

[0031] In some possible implementations, the accelerator of the second computing node establishes a mapping relationship between the accelerator's device memory and the host memory; the second memory pool management module, based on the address of the host memory in the second computing node, utilizes either the first SDMA engine or the second SDMA engine to perform data access between the first computing node and the second computing node via a hyperplane network, including:

[0032] The second memory pool management module submits the address of the host memory in the second computing node to the second SDMA engine, so that the second SDMA engine can access data between the first computing node and the second computing node through the hyperplane network according to the mapping relationship between the device memory and the host memory of the accelerator.

[0033] In some possible implementations, when the usage of the memory pool reaches a threshold, the second memory pool management module can also migrate the data in the memory pool to non-volatile storage.

[0034] Thirdly, this application provides a cross-node memory data access method. This method is applied to a computing device cluster, the computing device cluster including multiple computing nodes, at least one of the multiple computing nodes including a host and an accelerator, the accelerator including a System Memory Direct Access (SDMA) engine, the multiple computing nodes including a first computing node and a second computing node, the first computing node deploying a first memory pool management module and a first memory access module, and the second computing node deploying a second memory pool management module and a second memory access module.

[0035] Specifically, the first memory access module receives a memory access request from the service module, the request including the key of the data to be accessed. Then, the first memory access module routes the key of the data to be accessed to the second memory pool management module, so that the second memory pool management module determines the address of the host memory in the second computing node based on the key. Based on the address of the host memory in the second computing node, data access is performed between the first and second computing nodes via a hyperplane network using either a first SDMA engine or a second SDMA engine. The first SDMA engine is the SDMA engine of the accelerator of the first computing node, and the second SDMA engine is the SDMA engine of the accelerator of the second computing node.

[0036] In this method, the first memory access module and the second memory pool management module collaborate to perform cross-node memory pass-through access using the SDMA engine, thus shortening access time. Furthermore, since data transmission does not pass through the network card, bandwidth is not limited by network card hardware, further reducing access time and improving access performance, thereby enhancing memory pool performance. A high-performance memory pool can guarantee application performance, such as AI training or AI inference performance.

[0037] In some possible implementations, the first memory access module receives a registration request from the first memory pool management module. The registration request includes the address information of the host memory managed by the first memory pool management module. Then, the first memory access module establishes a mapping relationship between the accelerator's device memory and the host memory based on the address information of the host memory.

[0038] In some possible implementations, the first memory access module receives the address information of the host memory managed by the second memory pool management module from the second memory pool management module via a virtual private cloud plane network. Accordingly, the first memory access module establishes a mapping relationship between the accelerator's device memory and the host memory based on the address information of the host memory managed by the first memory pool management module and the address information of the host memory managed by the second memory pool management module.

[0039] In some possible implementations, the first memory access module sends a registration request to the accelerator of the second computing node. The registration request includes the address information of the device memory of the first computing node's accelerator, so that the accelerator of the second computing node can establish a mapping relationship between the device memory and the host memory of the accelerator based on the address information of the device memory of the first computing node's accelerator and the address information of the host memory of the second computing node.

[0040] In some possible implementations, the first computing node and the second computing node belong to the same supernode. Accordingly, the first memory access module sends a registration request to the accelerator of the second computing node through the supernode's hyperplane network or virtual private cloud plane network.

[0041] Fourthly, this application provides a memory access system. The memory access system can be applied to a computing device cluster, which includes multiple computing nodes. At least one of the multiple computing nodes includes a host and an accelerator. The accelerator includes a System Memory Direct Access (SDMA) engine. The multiple computing nodes include a first computing node and a second computing node. The memory access system includes a first memory pool management module and a first memory access module deployed on the first computing node, and a second memory pool management module and a second memory access module deployed on the second computing node.

[0042] The first memory access module is used to receive memory access requests from the business module, wherein the memory access request includes the key of the data to be accessed;

[0043] The first memory access module is also used to route the key of the data to be accessed to the second memory pool management module;

[0044] The second memory pool management module is used to determine the address of the host memory in the second computing node based on the key of the data to be accessed;

[0045] The second memory pool management module is also used to access data between the first computing node and the second computing node through a hyperplane network based on the address of the host memory in the second computing node and using the first SDMA engine or the second SDMA engine. The first SDMA engine is the SDMA engine of the accelerator of the first computing node, and the second SDMA engine is the SDMA engine of the accelerator of the second computing node.

[0046] In some possible implementations, the first compute node and the second compute node belong to the same supernode, and the second memory pool management module is specifically used for:

[0047] The address of the host memory in the second compute node is submitted to the first SDMA engine or the second SDMA engine so that the first SDMA engine or the second SDMA engine can access data between the first compute node and the second compute node through the high-speed interconnect bus of the hyperplane network in the supernode, based on the address of the host memory in the second compute node.

[0048] In some possible implementations, the first memory access module is further configured to:

[0049] Receive a registration request from the first memory pool management module, the registration request including the address information of the host memory managed by the first memory pool management module;

[0050] Based on the address information of the host memory, establish a mapping relationship between the accelerator's device memory and the host memory;

[0051] The second memory pool management module is specifically used for:

[0052] The address of the host memory in the second computing node is submitted to the first SDMA engine so that the first SDMA engine can access data between the first computing node and the second computing node through the hyperplane network according to the mapping relationship between the device memory and host memory of the accelerator.

[0053] In some possible implementations, the first memory access module is further configured to:

[0054] The address information of the host memory managed by the second memory pool management module is received through the virtual private cloud plane network;

[0055] The first memory access module is specifically used for:

[0056] Based on the address information of the host memory managed by the first memory pool management module and the address information of the host memory managed by the second memory pool management module, a mapping relationship between the device memory and the host memory of the accelerator is established.

[0057] In some possible implementations, the first memory access module is further configured to:

[0058] A registration request is sent to the accelerator of the second computing node. The registration request includes the address information of the device memory of the accelerator of the first computing node, so that the accelerator of the second computing node can establish a mapping relationship between the device memory and the host memory of the accelerator based on the address information of the device memory of the accelerator of the first computing node and the address information of the host memory of the second computing node.

[0059] The second memory pool management module is specifically used for:

[0060] The address of the host memory in the second computing node is submitted to the second SDMA engine so that the second SDMA engine can access data between the first computing node and the second computing node through the hyperplane network according to the mapping relationship between the device memory and host memory of the accelerator.

[0061] In some possible implementations, the first computing node and the second computing node belong to the same supernode, and the first memory access module is specifically used for:

[0062] The registration request is sent to the accelerator of the second computing node through the hyperplane network or virtual private cloud plane network of the supernode.

[0063] In some possible implementations, the memory access request includes one or more of the following: a place request, a get request or a load request, and a store request.

[0064] In some possible implementations, the memory access request includes a get request or a load request, wherein the get request or the load request includes the key, address, and length of the data to be accessed, and the first memory access module is further configured to:

[0065] The address of the data to be accessed is routed to the second memory pool management module.

[0066] In some possible implementations, the data to be accessed includes checkpoint files from the training process or key-value vectors generated during inference.

[0067] In some possible implementations, the second memory pool management module is also used for:

[0068] When the usage of the memory pool reaches a threshold, the data in the memory pool is migrated to non-volatile storage.

[0069] Fifthly, this application provides a second memory pool management module. The second memory pool management module is deployed on a second computing node in the computing device cluster, and the second memory pool management module includes:

[0070] The transceiver unit is used to receive the key of the data to be accessed sent by the first memory access module, which is deployed on the first computing node in the computing device cluster.

[0071] A determining unit is configured to determine the address of the host memory in the second computing node based on the key of the data to be accessed;

[0072] The access control unit is used to access data between the first computing node and the second computing node via a hyperplane network, based on the address of the host memory in the second computing node and utilizing either the first system direct memory access SDMA engine or the second SDMA engine. The first SDMA engine is the SDMA engine of the accelerator of the first computing node, and the second SDMA engine is the SDMA engine of the accelerator of the second computing node.

[0073] In some possible implementations, the transceiver unit is further configured to:

[0074] The address information of the host memory managed by the second memory pool management module is sent to the first memory access module through the virtual private cloud plane network, so that the first memory access module can establish a mapping relationship between the device memory and the host memory of the accelerator based on the address information of the host memory.

[0075] The access control unit is specifically used for:

[0076] The address of the host memory in the second computing node is submitted to the first SDMA engine so that the first SDMA engine can access data between the first computing node and the second computing node through the hyperplane network according to the mapping relationship between the device memory and host memory of the accelerator.

[0077] In some possible implementations, the accelerator of the second computing node establishes a mapping relationship between the accelerator's device memory and the host memory; the access control unit is specifically used for:

[0078] The address of the host memory in the second computing node is submitted to the second SDMA engine so that the second SDMA engine can access data between the first computing node and the second computing node through the hyperplane network according to the mapping relationship between the device memory and host memory of the accelerator.

[0079] Sixthly, this application provides a computing device cluster. The computing device cluster includes at least one computing device, and the at least one computing device includes at least one processor and at least one memory. The at least one processor and the at least one memory communicate with each other. The at least one processor is used to execute instructions stored in the at least one memory to cause the computing device or the computing device cluster to perform the cross-node memory data access method as described in the first aspect or any implementation of the first, second, or third aspect.

[0080] In a seventh aspect, this application provides a computer-readable storage medium storing instructions that instruct a computing device or a cluster of computing devices to perform the cross-node memory data access method described in any of the implementations of the first, second, or third aspects above.

[0081] Eighthly, this application provides a computer program product containing instructions that, when run on a computing device or a cluster of computing devices, causes the computing device or cluster of computing devices to perform the cross-node memory data access method described in any of the implementations of the first, second, or third aspects above.

[0082] Based on the implementation methods provided in the above aspects, this application can be further combined to provide more implementation methods. Attached Figure Description

[0083] To more clearly illustrate the technical methods of this application, the accompanying drawings used will be briefly described below.

[0084] Figure 1 A schematic diagram of the architecture of a computing device cluster provided in this application;

[0085] Figure 2 A flowchart illustrating a cross-node memory data access method provided in this application;

[0086] Figure 3 A flowchart illustrating a cross-node memory data access method provided in this application;

[0087] Figure 4 A flowchart illustrating a cross-node memory data access method provided in this application;

[0088] Figure 5 A flowchart illustrating a cross-node memory data access method provided in this application;

[0089] Figure 6 A flowchart illustrating a cross-node memory data access method provided in this application;

[0090] Figure 7 A schematic diagram of the structure of a second memory pool management module provided in this application;

[0091] Figure 8 This application provides a hardware structure diagram of a computing device cluster. Detailed Implementation

[0092] The terms "first" and "second" used in the embodiments of this application are for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Therefore, a feature defined with "first" and "second" may explicitly or implicitly include one or more of that feature.

[0093] First, some technical terms involved in the embodiments of this application will be introduced.

[0094] A computing node is a node responsible for performing computing tasks, typically including computing devices such as servers and terminals. A computing node can include a host, which comprises a central processing unit (CPU) and host memory. Host memory may include, but is not limited to, dynamic random access memory (DRAM). Furthermore, to improve the computing power or performance of a computing node, it may also include accelerators. Accelerators are devices that accelerate the computing node, including but not limited to neural network processing units (NPUs), graphics processing units (GPUs), and tensor processing units (TPUs).

[0095] Accelerators can generate massive amounts of data during computation, which typically needs to be stored for use in later stages. To facilitate understanding, the training and inference processes of an artificial intelligence (AI) model are used as examples below.

[0096] Training AI models requires significant time and computational resources. To address this, checkpointing (ckpt) technology can be used to periodically save the AI ​​model's parameters, optimizer state, and training progress (e.g., current iteration count, loss value). If an unexpected interruption occurs during training (e.g., hardware failure, power outage), training can be resumed by loading the checkpoint file, avoiding starting from scratch and saving time and resources. Currently, the most common practice in the industry is to save the checkpoint file every fixed number of iterations (e.g., every 1000 iterations) or at fixed time intervals (e.g., every hour). Therefore, the amount of data to be saved is very large, and users will not save all checkpoint files to the accelerator's device memory. Device memory can include, but is not limited to, the high-bandwidth memory (HBM) space of the NPU or GPU. For example, some training systems typically save checkpoint files to a distributed key-value store (KVstore).

[0097] During AI model inference, each time a new token is generated, the AI ​​model needs to calculate the query (Q) vector corresponding to the new token and interact with the key (K) vectors and value (V) vectors of all previous tokens. A token, also called a word, is typically the smallest unit of text data in natural language processing. A token can be a word, a segment of words, a character, or a subword. Key-value (KV) caching technology avoids redundant calculations of KV vectors by storing previously calculated K and V vectors and reusing intermediate results, significantly reducing inference latency and improving throughput. However, for long sequences or multi-turn conversations, the amount of KV vector data that needs to be stored can be very large, making it impossible to store it all in the HBM space, as this would consume too much storage space and negatively impact inference performance. Therefore, KV cache data (such as KV vectors) can be stored in host memory. For example, some inference frameworks offload KV cache data to host memory and object storage.

[0098] To improve the available capacity and read / write performance of accelerators such as NPUs or GPUs when storing training data (e.g., checkpoint files) or inference data (e.g., key-value vectors), the host memory of multiple compute nodes is typically organized into a memory pool. The memory pool provides unified memory services to higher layers, which do not need to be aware of the data location. Since storing data in the DRAM of the same node is far more efficient than storing it across nodes, the memory pool usually allocates a cache layer within each node. Data is first saved to the cache layer, and a success message is returned. The cache layer then asynchronously transfers the data to the DRAM of other nodes.

[0099] Memory pools primarily rely on memory copying and cross-node data transfer. For example, within a memory pool, accelerators like GPUs / NPUs can use memory copy functions to copy memory from HBM to DRAM, or vice versa. Furthermore, memory pools utilize Virtual Private Cloud (VPC) networks for cross-node cache data transfer. These VPC networks can be based on protocols such as Transmission Control Protocol (TCP) or Remote Direct Memory Access (RDMA).

[0100] Taking the placement (PUT) operation of the KV cache as an example, the main process includes the following steps: 1) The NPU notifies the host CPU to perform the PUT operation, and the notification carries the device memory address and length of the NPU; 2) The CPU calls the memory copy function (such as aclrtMemCpy provided by the NPU) to copy the memory on the NPU to the DRAM of the same node; 3) The CPU transfers the DRAM memory of this node to the DRAM of the peer node through the network card for storage.

[0101] The above process involves multiple memory copies, including device-to-host (D2H) memory copies within a node, host-to-device (H2D) memory copies, and cross-node memory copies. Cross-node memory copies can be network protocol stack memory copies during cross-node network transmission. However, network transmission bandwidth is limited by network card hardware; for example, some network cards offer only 40 gigabytes per second (GB / s) of cross-node bandwidth, resulting in poor memory pool performance and impacting application performance. For instance, the performance of the KV cache memory pool directly affects the performance of AI training or inference.

[0102] In view of this, this application provides a cross-node memory data access method. This method can be applied to computing device clusters. The computing device cluster includes multiple computing nodes. At least one of the multiple computing nodes includes a host and an accelerator, and the accelerator includes a System Direct Memory Access (SDMA) engine. The SDMA engine is a distributed, decentralized DMA engine responsible for high-bandwidth, low-latency data transfer. The SDMA engine is used to accelerate accelerators such as NPUs, enabling memory processing in DDR, HBM, and between DDR and HBM. The SDMA engine can include functions such as memory copy (memcpy), memory set (memset), and HBM cache preload. Memory copy includes H2D or D2H memory pass-through copy, which refers to memory copying based on a pass-through link. Memory copy can support batch copying by row or block, especially suitable for matrix data. Memory copy also supports direct format conversion during the copying process, such as conversion from RGB format to BGR format. Furthermore, memory copy supports collaboration with HBM cache preload. For example, before executing memcpy, you can trigger HBM cache preload to load the source data into the cache in advance, and then quickly copy the data from the HBM cache to the destination node (denoted as dest).

[0103] The system comprises multiple computing nodes, including a first computing node and a second computing node. The first computing node deploys a first memory pool management module and a first memory access module, while the second computing node deploys a second memory pool management module and a second memory access module. The first SDMA engine is the SDMA engine of the accelerator on the first computing node, and the second SDMA engine is the SDMA engine of the accelerator on the second computing node.

[0104] Specifically, the first memory access module receives a memory access request from the service module. The memory access request includes the key of the data to be accessed. Then, the first memory access module routes the key of the data to be accessed to the second memory pool management module. The second memory pool management module determines the address of the host memory in the second compute node based on the key of the data to be accessed. Then, based on the address of the host memory in the second compute node, it uses either the first SDMA engine or the second SDMA engine to perform data access between the first compute node and the second compute node through a hyperplane network (e.g., cross-node memory pass-through copy), thereby realizing cross-node memory pass-through access.

[0105] In this method, the memory pool architecture can be simplified to a single-layer architecture, eliminating the need for local caching. Instead, it utilizes the SDMA engine to perform cross-node memory pass-through, thus shortening access time (e.g., copy time). Furthermore, since data transmission bypasses the network card, bandwidth is not limited by network card hardware, further reducing access time and improving cross-node memory access performance, thereby enhancing memory pool performance. A high-performance memory pool can guarantee application performance, such as AI training or AI inference performance.

[0106] To make the technical solution of this application clearer and easier to understand, the system architecture of the computing device cluster of this application is described below with reference to the accompanying drawings.

[0107] See Figure 1 The diagram illustrates an architecture of a computing device cluster, which includes multiple computing nodes. These multiple computing nodes can be multiple computing nodes within a supernode. A supernode is a large node formed by interconnecting multiple computing nodes through an interconnect network. For ease of understanding, this application uses a 384-card supernode as an example. In this example, the supernode can include 48 computing nodes, each including 8 accelerators, such as 8 NPUs. The supernode extends the scale-up domain from the industry-standard 8 cards to 384 cards, providing high-performance bus interconnects based on a fully peer-to-peer architecture within the scale-up domain. The high-performance bus can include, but is not limited to, a cache coherent system bus, such as the Huawei Cache Coherent System (HCCS) bus.

[0108] Within the same compute node of a supernode, CPUs (e.g., 4 CPUs) and 8 NPUs can be connected via a bus switch, which can include, but is not limited to, a customized L1-layer HCCS switch. Between different compute nodes within a supernode, the L1-layer bus switch can be connected via an L2-layer switch; for example, L1-layer HCCS switches can be connected via L2-layer HCCS switches. The CPUs and NPUs within a supernode are fully peer-to-peer connected, forming a hyperplane network. The bandwidth within this hyperplane network is non-convergent, and the bandwidth of a single NPU card can reach 392 GB / s.

[0109] At least one of the multiple compute nodes includes a host and an accelerator, the accelerator including an SDMA engine. For ease of description, Figure 1 The example illustrates a computing node comprising a first computing node and a second computing node. A memory access system is deployed in a distributed manner on both the first and second computing nodes. For instance, the first computing node deploys a first memory pool management module and a first memory access module from the memory access system, while the second computing node deploys a second memory pool management module and a second memory access module from the same system.

[0110] In some examples, the memory access system includes a first memory management device 100A and a second memory management device 100B. The first memory management device 100A is deployed in a first compute node 10A, and includes a first memory pool management module 102A and a first memory access module 104A. The second memory management device 100B is deployed in a second compute node 10B, and includes a second memory pool management module 102B and a second memory access module 104B. The memory pool management module, such as the first memory pool management module 102A or the second memory pool management module 102B, can be a memory pool process, and the memory access modules, such as the first memory access module 104A and the second memory access module 104B, can be a software development kit (SDK).

[0111] The first memory access module 104A is deployed in the same process or container as the business module. Taking AI business as an example, an accelerator, such as an NPU, can run the AI ​​business module, thus mounting the AI ​​process. The first memory access module 104A can be deployed within the AI ​​process; in other words, the first memory access module 104A is deployed in the same process as the AI ​​business. Similarly, the second memory access module 104B is deployed in the same process or container as the business module. Again using the AI ​​business example, the second memory access module 104B can be deployed within the AI ​​process, meaning the second memory access module 104B is deployed in the same process as the AI ​​business.

[0112] The following examples illustrate how the memory pool management module is the memory pool process and the memory access module is the SDK.

[0113] The memory pool process can be deployed on each compute node as a separate process or a separate container to manage host memory (such as DRAM). The memory pool process can organize the memory of each node through a global controller to provide host memory pooling services.

[0114] The SDK can be deployed as a library within business processes or containers (e.g., business process / container). The SDK can interface with business logic. Specifically, the SDK can receive initialization requests from business processes (e.g., AI processes) to perform cross-node memory mapping between the accelerator and memory pool processes. The SDK can also receive memory access requests from business processes (e.g., AI business processes). These memory access requests can be read / write requests, including but not limited to one or more of the following: PUT, GET, LOAD, and STORE requests. The SDK can send control requests to the memory pool process on the corresponding node based on the memory pool's globally consistent hash index. Control requests, also known as control messages, are used to obtain memory information. Taking a PUT request as an example, the control request is used to obtain information about the memory space allocated for the data to be PUT, including the address and length of that memory space. Correspondingly, when the memory pool process receives read / write requests from the SDK, it can allocate or query host memory based on key-value semantics and return the address of the host memory on the compute node where the memory pool process resides, such as the address of the allocated memory space or the address of the queried host memory. In this application, control requests can be communicated via a virtual private cloud (VPC) plane network, and data plane communication can be implemented via a hyperplane network, such as an HCCS hyperplane network.

[0115] Furthermore, the memory pool management module, such as the memory pool process, can also mount an Elastic Volume Service (EVS). EVS is a service that provides elastic block storage in cloud computing, primarily used to provide high-performance, high-reliability block storage devices for computing resources such as Elastic Cloud Servers (ECS) and containers (Kubernetes). When the available space in the memory pool is insufficient, the memory pool process can swap data in and out between the memory pool and EVS. It should be noted that EVS is merely an example in this application. In actual applications, when the usage of the memory pool reaches a threshold, the memory pool process can migrate the data in the memory pool to non-volatile storage. This non-volatile storage can include, but is not limited to, EVS and solid-state drives (SSDs).

[0116] Figure 1 The architecture of the computing device cluster is introduced below. With reference to the accompanying drawings, the cross-node memory data access method of this application is described in detail.

[0117] See Figure 2 The flowchart illustrates a cross-node memory data access method applied to a computing device cluster. The computing device cluster includes multiple computing nodes. At least one of the computing nodes includes a host and an accelerator. The accelerator includes an SDMA engine. The multiple computing nodes include a first computing node 10A and a second computing node 10B. The first computing node 10A deploys a first memory pool management module 102A and a first memory access module 104A. The second computing node 10B deploys a second memory pool management module 102B and a second memory access module 104B. The method includes the following steps:

[0118] S202, The first memory access module 104A receives the memory access request from the service module.

[0119] Memory access requests can be read or write requests. These requests can include, but are not limited to, one or more of the following: place (PUT) requests, get (GET) requests, load (LOAD) requests, and store (STORE) requests. Business modules can generate memory access requests based on business needs or user-triggered access operations. These requests are used for reading or writing data across nodes. Examples from AI training and AI inference scenarios illustrate this. In the AI ​​training scenario, memory access requests are used to write checkpoint files across nodes or read checkpoint files across nodes in case of failure. In the AI ​​inference scenario, memory access data is used to read key-value caches or key-value vectors across nodes. Key-value vectors include key vectors and value vectors generated by linearly transforming tokens, used to generate new tokens. The first memory access module 104A can receive memory access requests.

[0120] Memory access requests include the key of the data to be accessed. The key of the data to be accessed serves as an index, pointing to the data being accessed. The data to be accessed can differ in different scenarios. For example, in an AI training scenario, the data to be accessed may include checkpoint files generated during training. Or, in an AI inference scenario, the data to be accessed may include key-value vectors generated during inference.

[0121] S204, the first memory access module 104A routes the key of the data to be accessed to the second memory pool management module 102B.

[0122] In specific implementation, the first memory access module 104A can use the key of the data to be accessed as an index and route the key of the data to the corresponding compute node based on a globally consistent hash. For example, the first memory access module 104A can route the key of the data to be accessed to the second compute node 10B based on a globally consistent hash. The routing of the key of the data to be accessed can be implemented through a VPC plane network. For example, the first memory access module 104A can route the key of the data to be accessed to the second memory pool management module 102B of the second compute node 10B through a VPC plane network.

[0123] In some possible implementations, the first memory access module 104A can also route the address of the data to be accessed to the second computing node 10B, for example, to the second memory pool management module 102B. Specifically, when the memory access request is a GET request or a LOAD request, the GET request or LOAD request includes the key and address (address, addr) of the data to be accessed. The first memory access module 104A can also route the address of the data to be accessed to the second memory pool management module 102B. Similarly, if the GET request or LOAD request also includes the size of the data to be accessed, the first memory access module 104A can also route the size of the data to be accessed to the second memory pool management module 102B.

[0124] S206. The second memory pool management module 102B determines the address of the host memory in the second computing node based on the key of the data to be accessed.

[0125] Depending on the type of access request, the second memory pool management module 102B determines the address of the host memory in the second computing node 10B in different ways.

[0126] In some possible implementations, when the memory access request is a PUT or STORE request, the second memory pool management module 102B can allocate memory space from the host memory of the second computing node based on the key in the PUT or STORE request, and obtain the address of the allocated memory space. The address of the allocated memory space can be represented by a start address and an end address, or by a start address and a length.

[0127] In some other possible implementations, when the memory access request is a GET or LOAD request, the second memory pool management module 102B can query the address of the host memory corresponding to the key in the GET or LOAD request. The host memory corresponding to the key can be a block of memory in the second compute node. The address of the host memory corresponding to the key can be represented by a start address and an end address, or by a start address and a length.

[0128] S208, the second memory pool management module 102B accesses data between the first and second computing nodes through a hyperplane network based on the address of the host memory in the second computing node and using either the first SDMA engine or the second SDMA engine.

[0129] The first SDMA engine is the SDMA engine of the accelerator of the first computing node, and the second SDMA engine is the SDMA engine of the accelerator of the second computing node.

[0130] In some possible implementations, the first and second compute nodes belong to the same supernode. The second memory pool management module 102B can submit the address of the host memory in the second compute node to the first or second SDMA engine, enabling the first or second SDMA engine to access data between the first and second compute nodes via the hyperplane network in the supernode based on the address of the host memory in the second compute node, thereby achieving cross-node memory pass-through access. In the hyperplane network, processors (such as accelerators like NPUs and CPUs) can be interconnected via a high-performance bus, for example, via an HCCS bus. Based on this, the hyperplane network can include a pass-through link between the accelerator (such as an NPU) of the first compute node and the host memory of the second compute node. The first or second SDMA engine can access data between the accelerator of the first compute node and the host memory of the second compute node via the pass-through link in the hyperplane network based on the address of the host memory in the second compute node, for example, performing memory pass-through copying, memory migration, etc.

[0131] Memory pass-through is a core function of the SDMA engine. It can be divided into three phases: initialization, transfer, and completion notification. During initialization, the CPU can configure the SDMA controller registers, specifying parameters such as source address, destination address, data length, and transfer mode. During transfer, the SDMA engine reads data directly from the source memory and writes it to the destination memory based on the configuration information; the entire process requires no CPU intervention. In the completion notification phase, after the data transfer is complete, the SDMA engine notifies the CPU via an interrupt or status register. Memory pass-through significantly improves data transfer efficiency, especially suitable for moving large data blocks (such as images and feature maps).

[0132] In this application, when performing cross-node memory pass-through, the first or second SDMA engine can perform cross-node memory pass-through based on the mapping relationship between the accelerator's device memory and the host memory. After the host memory address is submitted to the first or second SDMA engine, the heterogeneous computing framework can convert the memory pass-through copy operation into SDMA-executable microcode. The microcode includes a source address and a destination address, where the source or destination address may include the aforementioned host memory address. For PUT or STORE requests, the destination address may include the aforementioned host memory address; for GET or LOAD requests, the source address may include the aforementioned host memory address. Furthermore, the microcode may also include data size and data format. The SDMA engine can execute the aforementioned microcode to directly transfer data between cross-node memories via dedicated hardware circuitry.

[0133] Based on the above description, this application provides a cross-node memory data access method. This method utilizes a first SDMA engine or a second SDMA engine to access data between a first computing node and a second computing node via a hyperplane network. This eliminates the need for an additional caching layer, simplifying the memory pool architecture. Furthermore, by using the memory pass-through capability of the SDMA engine for data transmission, data transmission can bypass the network card, eliminating bandwidth limitations imposed by the network card hardware, shortening access time, and improving access performance. This, in turn, enhances memory pool performance and the performance of memory pool-based applications (such as training or inference performance).

[0134] exist Figure 2 In the illustrated embodiment, cross-node memory pass-through access can be triggered by a first SDMA engine (such as the SDMA engine of a local NPU) or a second SDMA engine (such as the SDMA engine of a remote NPU). For example, the first SDMA engine can trigger cross-node D2H memory access, placing data from the NPU of the first compute node to the host memory of the second compute node or storing it in the host memory of the second compute node. Similarly, the second SDMA engine can trigger cross-node D2H memory access, placing data from the NPU of the first compute node to the host memory of the second compute node or storing it in the host memory of the second compute node.

[0135] The following describes the specific implementation methods for triggering cross-node memory pass-through access by the first SDMA engine and the second SDMA engine.

[0136] In the first SDMA engine-triggered cross-node memory pass-through access scheme, initialization is required before the first SDMA engine is invoked to perform cross-node memory pass-through access, enabling input / output (IO) transmission. The purpose of initialization is cross-node memory address mapping. When the supernode uses globally unified memory addressing, meaning that the addresses of the host memory and device memory (such as CPU and NPU memory) of all compute nodes within the supernode are globally unique and can be directly addressed using their respective addresses, cross-node memory address mapping can be achieved.

[0137] Specifically, the first memory access module 104A can receive a registration request from the first memory pool management module 102A. The registration request includes address information of the host memory managed by the first memory pool management module 102A. The address information may include the start and end addresses of the host memory managed by the first memory pool management module 102A, or it may include the start address and length of the host memory managed by the first memory pool management module 102A. Then, the first memory access module 104A can establish a mapping relationship between the accelerator's device memory and the host memory based on the host memory address information.

[0138] Furthermore, the first memory access module 104A can receive the address information of the host memory managed by the second memory pool management module 102B via the virtual private cloud plane network. Correspondingly, the first memory access module 104A can establish a mapping relationship between the accelerator's device memory and the host memory based on the address information of the host memory managed by the first memory pool management module 102A and the second memory pool management module 102B. The first SDMA engine can then access data between the first and second computing nodes via the hyperplane network based on this mapping relationship, thereby achieving cross-node memory pass-through access.

[0139] To make the triggering of cross-node memory pass-through access by the first SDMA engine clearer and easier to understand, a detailed explanation is provided below with reference to the accompanying diagram.

[0140] See Figure 3 The diagram shows a flowchart of a cross-node memory data access method, which may include an initialization phase and an I / O transfer phase.

[0141] During the initialization phase, all memory pool processes register their respective host memory (such as DRAM) with the SDK. The SDK establishes a memory mapping between the HBM in the NPU and the DRAM in the CPU. This memory mapping can be stored in a memory mapping table for subsequent memory access. Afterward, the SDMA engine in the NPU can identify arbitrary local HBM addresses and intra-node / cross-node DRAM addresses based on the memory mapping table, thereby enabling access and memory copying.

[0142] During the I / O transfer phase, when the AI ​​process in the first compute node 10A needs to perform a Put operation, such as a cross-node D2H operation, it carries the key to be put, along with the local HBM address and memory length. The key is then passed to the SDK. The SDK first uses the key as an index and, based on a globally consistent hash, routes the data to the corresponding compute node, such as the second compute node 10B. The SDK in the first compute node 10A can then pass the key to the memory pool process in the second compute node 10B via the VPC plane network. The memory pool process in the second compute node 10B can allocate a corresponding amount of memory space from the DRAM of the second compute node 10B based on the received key and return the address of the allocated memory space (DRAM address) to the SDK in the first compute node 10A.

[0143] The SDK in the first compute node 10A has both the HBM memory address of the local NPU (the HBM memory address of the NPU in the first compute node 10A) and the remote DRAM address (the DRAM address of the second compute node 10B). The SDK can submit the HBM memory address of the local NPU and the remote DRAM address to the first SDMA engine (the SDMA engine of the NPU in the first compute node 10A). The first SDMA engine can complete cross-node memory pass-through access according to the memory mapping relationship recorded during initialization.

[0144] Figure 3 Taking the PUT operation (D2H operation) as an example, the process of the GET operation (H2D operation) is similar to that of the PUT operation. The difference between the GET operation and the PUT operation is that the memory pool process receives the key, queries the DRAM address and length corresponding to the key, instead of allocating memory.

[0145] Furthermore, in the case of tiered caching for solid-state drives (SSDs), when the host DRAM space is insufficient, the memory pool process can further save data to remote storage (such as EVS), thereby expanding the capacity. Specifically, the memory pool process can perform swap-in / swap-out operations based on a configured threshold (e.g., a capacity threshold). For example, when the memory pool usage exceeds the threshold, the memory pool process can migrate data from the memory pool to non-volatile storage. Specifically, the memory pool process can swap DRAM memory out to SSDs. In this application, the swap-in / swap-out strategy can be configured based on the Least Recently Used (LRU) algorithm, and this application does not impose any restrictions on this.

[0146] This method utilizes the high-performance HCCS bus bandwidth to improve the access bandwidth from HBM to cross-node DRAM and the EVS hierarchical access bandwidth. Related data shows that utilizing the HCCS bus bandwidth can increase the access bandwidth from HBM to cross-node DRAM by up to 30 times and the EVS hierarchical access bandwidth by up to 10 times.

[0147] In some scenarios, the NPU can achieve arbitrary addressing, but the CPU cannot be mapped to the NPU across nodes. In such cases, a second SDMA engine can trigger cross-node memory pass-through. For example, in many supernodes, the NPU can achieve arbitrary addressing, but the CPU cannot be mapped to the NPU across nodes. In this situation, a remote second SDMA engine can trigger cross-node memory pass-through.

[0148] The first memory access module 104A can send a registration request to the accelerator of the second computing node 10B. The registration request includes the address information of the device memory of the accelerator of the first computing node 10A. The accelerator of the second computing node can establish a mapping relationship between the device memory and host memory of the accelerator based on the address information of the device memory of the first computing node and the address information of the host memory of the second computing node. In this application, the first computing node and the second computing node can belong to the same supernode. The first memory access module 104A can send the registration request to the accelerator of the second computing node through the hyperplane network or virtual private cloud plane network of the supernode. Correspondingly, the second SDMA engine can access data between the first computing node and the second computing node through the hyperplane network based on the mapping relationship between the device memory and host memory of the accelerator, thereby realizing cross-node memory pass-through access.

[0149] To make the triggering of cross-node memory pass-through access by the second SDMA engine clearer and easier to understand, a detailed explanation is provided below with reference to the accompanying diagram.

[0150] See Figure 4The diagram shows a flowchart of a cross-node memory data access method, which may include an initialization phase and an I / O transfer phase.

[0151] During the initialization phase, the SDK of the first compute node 10A can register the HBM memory of its local NPU to the remote NPU (the NPU of the second compute node 10B). This registration operation can be completed through the HCCS hyperplane. The memory pool process of the remote node (such as the second compute node 10B) can register the DRAM of the second compute node to the remote node's NPU. The remote node's NPU can then establish a memory mapping relationship. At this point, the remote node's NPU possesses the mapping relationship between its local HBM address and the remote DRAM address, enabling it to perform corresponding memory accesses.

[0152] During the I / O transfer phase, when the AI ​​process on the first compute node 10A needs to perform a PUT operation (or D2H operation), it carries the key to be PUT, along with the local HBM address and memory length. It then passes the key, HBM address, and memory length to the SDK on the first compute node 10A. The SDK first uses the key as an index and, based on globally consistent hashing, routes the key, HBM address, and memory length to the corresponding compute node, for example, to the second compute node 10B. The SDK on the first compute node 10A can then pass the key, HBM address, and memory length to the memory pool process on the second compute node 10B via the VPC plane. The memory pool process can allocate DRAM space of the corresponding size based on the received key. At this point, the remote memory pool process (the memory pool process on the second compute node 10B) simultaneously possesses the local NPU's HBM memory address and the remote DRAM address. It can then pass the source and destination addresses to be accessed to the SDMA engine of the remote NPU (the NPU on the second compute node 10B) through the host-NPU channel; this is the second SDMA engine. Correspondingly, the second SDMA engine can complete cross-node memory pass-through access based on the memory mapping relationship recorded during initialization.

[0153] Figure 4 Taking the PUT operation (D2H operation) as an example, the process of the GET operation (H2D operation) is similar to that of the PUT operation. The difference between the GET operation and the PUT operation is that after the memory pool process receives the key, it queries the DRAM address and length corresponding to the key, instead of allocating memory.

[0154] The above describes the cross-node memory data access method of this application from an interactive perspective. The following sections describe the cross-node memory data access method from the perspectives of the memory pool management module and the memory access module, respectively.

[0155] First, see Figure 5 The flowchart illustrates a cross-node memory data access method applied to a computing device cluster. The cluster includes multiple computing nodes, at least one of which includes a host and an accelerator. The accelerator includes an SDMA engine. The multiple computing nodes include a first computing node and a second computing node. The first computing node deploys a first memory pool management module and a first memory access module, and the second computing node deploys a second memory pool management module and a second memory access module. The method includes the following steps:

[0156] S502, the second memory pool management module receives the key of the data to be accessed sent by the first memory access module.

[0157] The memory access request carries the key of the data to be accessed. When the first memory access module receives the memory access request sent by the business module, it can route the key of the data to be accessed carried in the memory access request to the second memory pool management module. This allows the second memory pool management module to allocate or query memory based on the key of the data to be accessed and return the address of the allocated or queried host memory.

[0158] In some possible implementations, memory access requests can be read / write requests. Read / write requests can include, but are not limited to, one or more of the following: PUT requests, GET requests, LOAD requests, and STORE requests. The key of the data to be accessed included in the memory access request can serve as an index pointing to the data to be accessed. For example, in an AI training scenario, the data to be accessed may include checkpoint files generated during training. As another example, in an AI inference scenario, the data to be accessed may include key-value vectors generated during inference.

[0159] S504, The second memory pool management module determines the address of the host memory in the second computing node based on the key of the data to be accessed.

[0160] The first memory access module 104A can use the key of the data to be accessed as an index and route the key of the data to the corresponding compute node based on a globally consistent hash. For example, the first memory access module 104A can route the key of the data to be accessed to the second compute node 10B based on a globally consistent hash. The routing of the key of the data to be accessed can be achieved through a VPC plane network.

[0161] S506 The second memory pool management module accesses data between the first and second computing nodes through a hyperplane network based on the address of the host memory in the second computing node and using either the first or second SDMA engine.

[0162] The first SDMA engine is the SDMA engine of the accelerator of the first compute node, and the second SDMA engine is the SDMA engine of the accelerator of the second compute node. The second memory pool management module 102B can submit the address of the host memory in the second compute node to the first SDMA engine or the second SDMA engine, so that the first SDMA engine or the second SDMA engine can access data between the first compute node and the second compute node through the high-speed interconnect bus (such as the HCCS bus) of the hyperplane network in the supernode, thereby realizing cross-node memory pass-through access.

[0163] In some possible implementations, the second memory pool management module can send the address information of the host memory managed by the second memory pool management module to the first memory access module via a virtual private cloud plane network. This allows the first memory access module to establish a mapping relationship between the accelerator's device memory and the host memory based on the host memory address information. Correspondingly, the second memory pool management module submits the address of the host memory in the second compute node to the first SDMA engine, enabling the first SDMA engine to access data between the first and second compute nodes via the hyperplane network based on the mapping relationship between the accelerator's device memory and the host memory.

[0164] In some other possible implementations, the accelerator of the second compute node establishes a mapping between the accelerator's device memory and the host memory. Accordingly, the second memory pool management module can submit the address of the host memory in the second compute node to the second SDMA engine, so that the second SDMA engine can access data between the first and second compute nodes through the hyperplane network according to the mapping between the accelerator's device memory and the host memory.

[0165] Based on the above description, this application provides a cross-node memory data access method. In this method, the second memory pool management module utilizes either a first SDMA engine or a second SDMA engine to access data between the first and second computing nodes via a hyperplane network. This eliminates the need for an additional caching layer, simplifying the memory pool architecture. Furthermore, data transmission via the SDMA engine's memory pass-through capability bypasses the network card, eliminating bandwidth limitations imposed by the network card hardware, shortening access time, and improving access performance. This, in turn, enhances memory pool performance and the performance of memory pool-based applications.

[0166] Next, see Figure 6The flowchart illustrates a cross-node memory data access method applied to a computing device cluster. The cluster includes multiple computing nodes, at least one of which includes a host and an accelerator. The accelerator includes an SDMA engine. The multiple computing nodes include a first computing node and a second computing node. The first computing node deploys a first memory pool management module and a first memory access module, and the second computing node deploys a second memory pool management module and a second memory access module. The method includes the following steps:

[0167] S602, The first memory access module receives the memory access request from the service module.

[0168] The memory access request includes the key of the data to be accessed. The key of the data to be accessed points to the data to be accessed. This data to be accessed may include, but is not limited to, checkpoint files generated during training or key-value vectors generated during inference. Memory access requests may include different types, such as PUT requests, GET requests, LOAD requests, and STORE requests.

[0169] S604. The first memory access module routes the key of the data to be accessed to the second memory pool management module, so that the second memory pool management module determines the address of the host memory in the second computing node according to the key of the data to be accessed, and uses the first SDMA engine or the second SDMA engine to access the data between the first computing node and the second computing node through the hyperplane network according to the address of the host memory in the second computing node.

[0170] The first SDMA engine is the SDMA engine of the accelerator of the first computing node, and the second SDMA engine is the SDMA engine of the accelerator of the second computing node.

[0171] In some possible implementations, the first memory access module receives a registration request from the first memory pool management module, the registration request including the address information of the host memory managed by the first memory pool management module. Then, the first memory access module establishes a mapping relationship between the accelerator's device memory and the host memory based on the host memory address information. Further, the first memory access module can also receive the address information of the host memory managed by the second memory pool management module via a virtual private cloud plane network. Accordingly, the first memory access module establishes a mapping relationship between the accelerator's device memory and the host memory based on the address information of the host memory managed by the first and second memory pool management modules. In this case, the second memory pool management module can submit the address of the host memory in the second compute node to the first SDMA engine, which then triggers cross-node memory pass-through access.

[0172] In other possible implementations, the first memory access module sends a registration request to the accelerator of the second compute node. This registration request includes the address information of the device memory of the first compute node's accelerator, enabling the second compute node's accelerator to establish a mapping relationship between its device memory and host memory based on the device memory address information of the first compute node's accelerator and the host memory address information of the second compute node. In this case, the first and second compute nodes belong to the same supernode. Accordingly, the first memory access module can send the registration request to the accelerator of the second compute node through the supernode's hyperplane network or virtual private cloud plane network. In this scenario, the second memory pool management module can submit the address of the host memory in the second compute node to the second SDMA engine, which then triggers cross-node memory pass-through access.

[0173] Based on the above description, this application provides a cross-node memory data access method. In this method, a first memory access module and a second memory pool management module collaborate to utilize a first SDMA engine or a second SDMA engine to access data between the first and second computing nodes via a hyperplane network. This eliminates the need for an additional caching layer, simplifying the memory pool architecture. Furthermore, data transmission via the SDMA engine's memory pass-through capability allows data to be transmitted without passing through the network card, eliminating bandwidth limitations imposed by the network card hardware, shortening access time, and improving access performance. This, in turn, enhances memory pool performance and the performance of memory pool-based applications.

[0174] Based on the aforementioned cross-node memory data access method, this application also provides a memory access system. For example... Figure 1 As shown, the memory access system can be applied to a computing device cluster, which includes multiple computing nodes. At least one of the computing nodes includes a host and an accelerator. The accelerator includes a System Memory Direct Access (SDMA) engine. The multiple computing nodes include a first computing node 10A and a second computing node 10B. The memory access system includes a first memory pool management module 102A and a first memory access module 104A deployed on the first computing node 10A, and a second memory pool management module 102B and a second memory access module 104B deployed on the second computing node 10B.

[0175] The first memory access module 104A is used to receive memory access requests from the service module, wherein the memory access request includes the key of the data to be accessed;

[0176] The first memory access module 104A is also used to route the key of the data to be accessed to the second memory pool management module;

[0177] The second memory pool management module 102B is used to determine the address of the host memory in the second computing node based on the key of the data to be accessed;

[0178] The second memory pool management module 102B is further configured to access data between the first computing node 10A and the second computing node 10B via a hyperplane network based on the address of the host memory in the second computing node and utilizing either the first SDMA engine or the second SDMA engine. The first SDMA engine is the SDMA engine of the accelerator of the first computing node 10A, and the second SDMA engine is the SDMA engine of the accelerator of the second computing node 10B.

[0179] For example, the first memory pool management module 102A, the first memory access module 104A, the second memory pool management module 102B, and the second memory access module 104B can be implemented in hardware or in software. The first memory pool management module 102A and the first memory access module 104A can be modules in the first computing node 10A, and the second memory pool management module 102B and the second memory access module 104B can be modules in the second computing node 10B.

[0180] When implemented in software, this includes applications on the first memory pool management module 102A, the first memory access module 104A, the second memory pool management module 102B, and the second memory access module 104B. These applications can also be virtualized and provided to users as virtualization services. Virtualization services can include virtual machine (VM) services, bare metal server (BMS) services, or container services. Specifically, a VM service uses virtualization technology to create a virtual machine (VM) resource pool on multiple physical hosts, providing VMs to users on demand. A BMS service creates a virtual BMS resource pool on multiple physical hosts, providing BMS services to users on demand. A container service creates a virtual container resource pool on multiple physical hosts, providing containers to users on demand. A VM is a simulated virtual computer, or logically a computer. A BMS is a scalable, high-performance computing service with computing performance indistinguishable from traditional physical machines, featuring secure physical isolation. Containers are a kernel virtualization technology that provides lightweight virtualization to isolate user space, processes, and resources. It should be understood that the VM service, BMS service, and container service mentioned above are merely specific examples. In practical applications, virtualization services can also include other lightweight or heavyweight virtualization services, which are not specifically limited here.

[0181] When implemented in hardware, the first memory pool management module 102A, the first memory access module 104A, the second memory pool management module 102B, and the second memory access module 104B may include hardware that runs the aforementioned application.

[0182] In some possible implementations, the first compute node 10A and the second compute node 10B belong to the same supernode, and the second memory pool management module 102B is specifically used for:

[0183] The address of the host memory in the second compute node 10B is submitted to the first SDMA engine or the second SDMA engine so that the first SDMA engine or the second SDMA engine can access data between the first compute node 10A and the second compute node 10B through the hyperplane network in the supernode based on the address of the host memory in the second compute node 10B.

[0184] In some possible implementations, the first memory access module 104A is further configured to:

[0185] Receive a registration request from the first memory pool management module, the registration request including the address information of the host memory managed by the first memory pool management module;

[0186] Based on the address information of the host memory, establish a mapping relationship between the accelerator's device memory and the host memory;

[0187] The second memory pool management module 102B is specifically used for:

[0188] The address of the host memory in the second computing node is submitted to the first SDMA engine so that the first SDMA engine can access data between the first computing node and the second computing node through the hyperplane network according to the mapping relationship between the device memory and host memory of the accelerator.

[0189] In some possible implementations, the first memory access module 104A is further configured to:

[0190] The address information of the host memory managed by the second memory pool management module is received through the virtual private cloud plane network;

[0191] The first memory access module 104A is specifically used for:

[0192] Based on the address information of the host memory managed by the first memory pool management module and the address information of the host memory managed by the second memory pool management module, a mapping relationship between the device memory and the host memory of the accelerator is established.

[0193] In some possible implementations, the first memory access module 104A is further configured to:

[0194] A registration request is sent to the accelerator of the second computing node. The registration request includes the address information of the device memory of the accelerator of the first computing node, so that the accelerator of the second computing node can establish a mapping relationship between the device memory and the host memory of the accelerator based on the address information of the device memory of the accelerator of the first computing node and the address information of the host memory of the second computing node.

[0195] The second memory pool management module 102B is specifically used for:

[0196] The address of the host memory in the second computing node is submitted to the second SDMA engine so that the second SDMA engine can access data between the first computing node and the second computing node through the hyperplane network according to the mapping relationship between the device memory and host memory of the accelerator.

[0197] In some possible implementations, the first computing node and the second computing node belong to the same supernode, and the first memory access module 104A is specifically used for:

[0198] The registration request is sent to the accelerator of the second computing node through the hyperplane network or virtual private cloud plane network of the supernode.

[0199] In some possible implementations, the memory access request includes one or more of the following: a place request, a get request or a load request, and a store request.

[0200] In some possible implementations, the memory access request includes a get request or a load request, wherein the get request or the load request includes the key, address, and length of the data to be accessed, and the first memory access module 104A is further configured to:

[0201] The address of the data to be accessed is routed to the second memory pool management module.

[0202] In some possible implementations, the data to be accessed includes checkpoint files from the training process or key-value vectors generated during inference.

[0203] In some possible implementations, the second memory pool management module 102B is also used for:

[0204] When the usage of the memory pool reaches a threshold, the data in the memory pool is migrated to non-volatile storage.

[0205] This application also provides a second memory pool management module. The second memory pool management module 102B is described below from the perspective of functional modularity.

[0206] See Figure 7 The diagram shows a structure of a second memory pool management module 102B. The second memory pool management module 102B is deployed on a second computing node 10B in a computing device cluster. The second memory pool management module 102B includes:

[0207] The transceiver unit 702 is used to receive the key of the data to be accessed sent by the first memory access module, which is deployed on the first computing node in the computing device cluster.

[0208] The determining unit 704 is used to determine the address of the host memory in the second computing node based on the key of the data to be accessed;

[0209] Access control unit 706 is used to access data between the first computing node and the second computing node via a hyperplane network, using either a first system direct memory access SDMA engine or a second SDMA engine, based on the address of the host memory in the second computing node. The first SDMA engine is the SDMA engine of the accelerator of the first computing node, and the second SDMA engine is the SDMA engine of the accelerator of the second computing node.

[0210] The transceiver unit 702, the determination unit 704, and the access control unit 706 are used to implement... Figure 5 For details on the implementation of the methods illustrated in the examples, please refer to [link / reference]. Figure 5 The description of the relevant content of the illustrated embodiment, or Figure 2 The description of the method steps executed by the second memory pool management module 102B in the illustrated embodiment will not be repeated here.

[0211] In some possible implementations, the transceiver unit 702 is further configured to:

[0212] The address information of the host memory managed by the second memory pool management module is sent to the first memory access module through the virtual private cloud plane network, so that the first memory access module can establish a mapping relationship between the device memory and the host memory of the accelerator based on the address information of the host memory.

[0213] The access control unit 706 is specifically used for:

[0214] The address of the host memory in the second computing node is submitted to the first SDMA engine so that the first SDMA engine can access data between the first computing node and the second computing node through the hyperplane network according to the mapping relationship between the device memory and host memory of the accelerator.

[0215] In some possible implementations, the accelerator of the second computing node establishes a mapping relationship between the accelerator's device memory and the host memory; the access control unit 706 is specifically used for:

[0216] The address of the host memory in the second computing node is submitted to the second SDMA engine so that the second SDMA engine can access data between the first computing node and the second computing node through the hyperplane network according to the mapping relationship between the device memory and host memory of the accelerator.

[0217] This application also provides a computing device cluster. The computing device cluster includes one or more computing devices. The computing devices may include heterogeneous processors; for example, the computing device may be a heterogeneous server, which includes heterogeneous processors. Heterogeneous servers include servers that provide computing power using various different types of processors, typically used in specialized fields. The various different types of processors may include processors using different instruction sets. For example, a heterogeneous server may include at least one of a Neural-network Processing Unit (NPU), a Graphics Processing Unit (GPU), a Tensor Processing Unit (TPU), an application-specific integrated circuit (ASIC), a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), and a central processing unit (CPU).

[0218] The hardware architecture of the computing device cluster is illustrated below with reference to the accompanying drawings.

[0219] See Figure 8 The diagram shows the structure of a computing device cluster, which includes one or more computing devices 800. Each computing device 800 can be used to implement... Figure 1 The function of the first computing node 10A or the second computing node 10B.

[0220] The computing device 800 includes a host 22 and at least one device 24. The host 22 and the at least one device 24 are connected. The device 24 is used to accelerate the computing of the host 22.

[0221] The host 22 includes a processor and memory. The processor can be a central processing unit (CPU), and the memory can be a dual in-line memory module (DIMM). Specifically, the DIMM can be of double data rate (DDR) type, such as DDR4 DIMM memory. Figure 8 In the example, host 22 includes 4 CPUs and 4 DDR4 DIMM groups. Each CPU is connected to one DDR4 DIMM group, and each DDR4 DIMM group includes 8 DDR4 DIMMs. Multiple CPUs of host 22 can be connected via hydra interfaces to form a hydra mesh.

[0222] Optionally, host 22 may also include interfaces, such as one or more of the following: Serial Advanced Technology Attachment (SATA) interface, Next Generation Non-Volatile Memoryexpress (NVMe) interface, and Gigabit Ethernet (GE) interface. Host 22 may also include memory. The memory may include SATA-enabled memory or NVMe-enabled memory, such as a SATA-enabled hard disk drive (HDD) or an NVMe-enabled solid-state drive (SSD).

[0223] Device 24 includes a computing card, also known as an accelerator, for accelerating the CPU. Figure 8 In the example, the accelerator included in device 24 may be a neural network processing unit (NPU). In other possible implementations of the embodiments of this application, device 24 may also include more types or more numbers of accelerators, such as GPUs or TPUs.

[0224] In some possible implementations, one or more computing devices 800 in the computing device cluster may also store portions of the instructions used by the memory access system to execute memory data access methods across nodes. In other words, a combination of one or more computing devices 800 can jointly execute the instructions 800 uses to execute memory data access methods across nodes.

[0225] It should be noted that the memory in different computing devices 800 within the computing device cluster can store different instructions for executing certain functions of the memory access system. For example, one computing device 800 may execute instructions for the functions of the first memory pool management module 102A and the first memory access module 104A, while another computing device 800 may execute instructions for the functions of the second memory pool management module 102B and the second memory access module 104B.

[0226] This application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium capable of being stored by a computing device, or a data storage device such as a data center containing one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state drive). The computer-readable storage medium includes instructions that instruct a computing device or a cluster of computing devices to execute the aforementioned cross-node memory data access method.

[0227] This application also provides a computer program product containing instructions. The computer program product may be a software or program product containing instructions, capable of running on a computing device or stored on any available medium. When the computer program product is run on at least one computing device, it causes the at least one computing device to perform the aforementioned cross-node memory data access method.

[0228] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the protection scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for cross-node memory data access, characterized in that, An application is made to a computing device cluster, the computing device cluster including multiple computing nodes, at least one of the multiple computing nodes including a host and an accelerator, the accelerator including a System Memory Direct Access (SDMA) engine, the multiple computing nodes including a first computing node and a second computing node, the first computing node deploying a first memory pool management module and a first memory access module, the second computing node deploying a second memory pool management module and a second memory access module, the method including: The first memory access module receives a memory access request from the service module, and the memory access request includes the key of the data to be accessed; The first memory access module routes the key of the data to be accessed to the second memory pool management module; The second memory pool management module determines the address of the host memory in the second computing node based on the key of the data to be accessed; The second memory pool management module uses the first SDMA engine or the second SDMA engine to access data between the first computing node and the second computing node through a hyperplane network based on the address of the host memory in the second computing node. The first SDMA engine is the SDMA engine of the accelerator of the first computing node, and the second SDMA engine is the SDMA engine of the accelerator of the second computing node.

2. The method according to claim 1, characterized in that, The first compute node and the second compute node belong to the same supernode. The second memory pool management module, based on the address of the host memory in the second compute node, uses either the first SDMA engine or the second SDMA engine to access data between the first compute node and the second compute node via a hyperplane network, including: The second memory pool management module submits the address of the host memory in the second computing node to the first SDMA engine or the second SDMA engine, so that the first SDMA engine or the second SDMA engine can access data between the first computing node and the second computing node through the hyperplane network in the supernode according to the address of the host memory in the second computing node.

3. The method according to claim 1 or 2, characterized in that, The method further includes: The first memory access module receives a registration request from the first memory pool management module, the registration request including the address information of the host memory managed by the first memory pool management module; The first memory access module establishes a mapping relationship between the accelerator's device memory and the host memory based on the address information of the host memory; The second memory pool management module, based on the address of the host memory in the second compute node, utilizes either the first SDMA engine or the second SDMA engine to access data between the first compute node and the second compute node via a hyperplane network, including: The second memory pool management module submits the address of the host memory in the second computing node to the first SDMA engine, so that the first SDMA engine can access data between the first computing node and the second computing node through the hyperplane network according to the mapping relationship between the device memory and the host memory of the accelerator.

4. The method according to claim 3, characterized in that, The method further includes: The first memory access module receives the address information of the host memory managed by the second memory pool management module from the second memory pool management module through the virtual private cloud plane network; The first memory access module establishes a mapping relationship between the accelerator's device memory and the host memory based on the address information of the host memory, including: The first memory access module establishes a mapping relationship between the device memory and the host memory of the accelerator based on the address information of the host memory managed by the first memory pool management module and the address information of the host memory managed by the second memory pool management module.

5. The method according to claim 1 or 2, characterized in that, The method further includes: The first memory access module sends a registration request to the accelerator of the second computing node. The registration request includes the address information of the device memory of the first computing node accelerator, so that the accelerator of the second computing node can establish a mapping relationship between the device memory and the host memory of the accelerator based on the address information of the device memory of the first computing node accelerator and the address information of the host memory of the second computing node. The second memory pool management module, based on the address of the host memory in the second compute node, utilizes either the first SDMA engine or the second SDMA engine to access data between the first compute node and the second compute node via a hyperplane network, including: The second memory pool management module submits the address of the host memory in the second computing node to the second SDMA engine, so that the second SDMA engine can access data between the first computing node and the second computing node through the hyperplane network according to the mapping relationship between the device memory and the host memory of the accelerator.

6. The method according to claim 5, characterized in that, The first computing node and the second computing node belong to the same supernode. The first memory access module sends a registration request to the accelerator of the second computing node, including: The first memory access module sends a registration request to the accelerator of the second computing node through the hyperplane network or virtual private cloud plane network of the supernode.

7. The method according to any one of claims 1 to 6, wherein the memory access request includes one or more of a place request, a get request or a load request, and a store request.

8. The method according to any one of claims 1 to 7, characterized in that, The memory access request includes a fetch request or a load request, wherein the fetch request or the load request includes the key, address, and length of the data to be accessed, and the method further includes: The first memory access module routes the address of the data to be accessed to the second memory pool management module.

9. The method according to any one of claims 1 to 8, characterized in that, The data to be accessed includes checkpoint files from the training process or key-value vectors generated during inference.

10. The method according to any one of claims 1 to 9, characterized in that, The method further includes: When the usage of the memory pool reaches a threshold, the second memory pool management module migrates the data of the memory pool to non-volatile storage.

11. A method for cross-node memory data access, characterized in that, An application is made to a computing device cluster, the computing device cluster including multiple computing nodes, at least one of the multiple computing nodes including a host and an accelerator, the accelerator including a System Memory Direct Access (SDMA) engine, the multiple computing nodes including a first computing node and a second computing node, the first computing node deploying a first memory pool management module and a first memory access module, the second computing node deploying a second memory pool management module and a second memory access module, the method including: The second memory pool management module receives the key of the data to be accessed sent by the first memory access module; The second memory pool management module determines the address of the host memory in the second computing node based on the key of the data to be accessed; The second memory pool management module uses the first SDMA engine or the second SDMA engine to access data between the first computing node and the second computing node through a hyperplane network based on the address of the host memory in the second computing node. The first SDMA engine is the SDMA engine of the accelerator of the first computing node, and the second SDMA engine is the SDMA engine of the accelerator of the second computing node.

12. The method according to claim 11, characterized in that, The method further includes: The second memory pool management module sends the address information of the host memory managed by the second memory pool management module to the first memory access module through the virtual private cloud plane network, so that the first memory access module can establish a mapping relationship between the device memory of the accelerator and the host memory based on the address information of the host memory; The second memory pool management module, based on the address of the host memory in the second compute node, utilizes either the first SDMA engine or the second SDMA engine to access data between the first compute node and the second compute node via a hyperplane network, including: The second memory pool management module submits the address of the host memory in the second computing node to the first SDMA engine, so that the first SDMA engine can access data between the first computing node and the second computing node through the hyperplane network according to the mapping relationship between the device memory and the host memory of the accelerator.

13. The method according to claim 11, characterized in that, The second computing node's accelerator establishes a mapping relationship between the accelerator's device memory and the host memory; the second memory pool management module, based on the address of the host memory in the second computing node, utilizes either the first SDMA engine or the second SDMA engine to perform data access between the first and second computing nodes via a hyperplane network, including: The second memory pool management module submits the address of the host memory in the second computing node to the second SDMA engine, so that the second SDMA engine can access data between the first computing node and the second computing node through the hyperplane network according to the mapping relationship between the device memory and the host memory of the accelerator.

14. A memory access system, characterized in that, The system is applied to a computing device cluster, which includes multiple computing nodes. At least one of the multiple computing nodes includes a host and an accelerator. The accelerator includes a System Memory Direct Access (SDMA) engine. The multiple computing nodes include a first computing node and a second computing node. The memory access system includes a first memory pool management module and a first memory access module deployed on the first computing node, and a second memory pool management module and a second memory access module deployed on the second computing node. The first memory access module is used to receive memory access requests from business modules, wherein the memory access requests include the keys of the data to be accessed; The first memory access module is also used to route the key of the data to be accessed to the second memory pool management module; The second memory pool management module is used to determine the address of the host memory in the second computing node based on the key of the data to be accessed; The second memory pool management module is further configured to access data between the first computing node and the second computing node via a hyperplane network, based on the address of the host memory in the second computing node and utilizing either the first SDMA engine or the second SDMA engine. The first SDMA engine is the SDMA engine of the accelerator of the first computing node, and the second SDMA engine is the SDMA engine of the accelerator of the second computing node.

15. The system according to claim 14, characterized in that, The first compute node and the second compute node belong to the same supernode. The second memory pool management module is specifically used for: The address of the host memory in the second compute node is submitted to the first SDMA engine or the second SDMA engine so that the first SDMA engine or the second SDMA engine can access data between the first compute node and the second compute node through the hyperplane network in the supernode based on the address of the host memory in the second compute node.

16. The system according to claim 14 or 15, characterized in that, The first memory access module is also used for: Receive a registration request from the first memory pool management module, the registration request including the address information of the host memory managed by the first memory pool management module; Based on the address information of the host memory, establish a mapping relationship between the accelerator's device memory and the host memory; The second memory pool management module is specifically used for: The address of the host memory in the second computing node is submitted to the first SDMA engine so that the first SDMA engine can access data between the first computing node and the second computing node through the hyperplane network according to the mapping relationship between the device memory and host memory of the accelerator.

17. The system according to claim 16, characterized in that, The first memory access module is also used for: The address information of the host memory managed by the second memory pool management module is received through the virtual private cloud plane network; The first memory access module is specifically used for: Based on the address information of the host memory managed by the first memory pool management module and the address information of the host memory managed by the second memory pool management module, a mapping relationship between the device memory and the host memory of the accelerator is established.

18. The system according to claim 14 or 15, characterized in that, The first memory access module is also used for: A registration request is sent to the accelerator of the second computing node. The registration request includes the address information of the device memory of the accelerator of the first computing node, so that the accelerator of the second computing node can establish a mapping relationship between the device memory and the host memory of the accelerator based on the address information of the device memory of the accelerator of the first computing node and the address information of the host memory of the second computing node. The second memory pool management module is specifically used for: The address of the host memory in the second computing node is submitted to the second SDMA engine so that the second SDMA engine can access data between the first computing node and the second computing node through the hyperplane network according to the mapping relationship between the device memory and host memory of the accelerator.

19. The system according to claim 18, characterized in that, The first computing node and the second computing node belong to the same supernode, and the first memory access module is specifically used for: The registration request is sent to the accelerator of the second computing node through the hyperplane network or virtual private cloud plane network of the supernode.

20. The system according to any one of claims 14 to 19, wherein the memory access request includes one or more of a place request, a get request or a load request, and a store request.

21. The system according to any one of claims 14 to 20, characterized in that, The memory access request includes a get request or a load request, wherein the get request or the load request includes the key, address, and length of the data to be accessed, and the first memory access module is further configured to: The address of the data to be accessed is routed to the second memory pool management module.

22. The system according to any one of claims 14 to 21, characterized in that, The data to be accessed includes checkpoint files from the training process or key-value vectors generated during inference.

23. The system according to any one of claims 14 to 22, characterized in that, The second memory pool management module is also used for: When the usage of the memory pool reaches a threshold, the data in the memory pool is migrated to non-volatile storage.

24. A second memory pool management module, characterized in that, The second memory pool management module is deployed on the second computing node in the computing device cluster. The second memory pool management module includes: a transceiver unit, used to receive the key of the data to be accessed sent by the first memory access module, the first memory access module being deployed on the first computing node in the computing device cluster; A determining unit is used to determine the address of the host memory in the second computing node based on the key of the data to be accessed; The access control unit is used to access data between the first computing node and the second computing node via a hyperplane network, based on the address of the host memory in the second computing node and utilizing either the first system direct memory access SDMA engine or the second SDMA engine. The first SDMA engine is the SDMA engine of the accelerator of the first computing node, and the second SDMA engine is the SDMA engine of the accelerator of the second computing node.

25. A computing device cluster, characterized in that, The computing device cluster includes at least one computing device, the at least one computing device including at least one processor and at least one memory, the at least one memory storing computer-readable instructions; the at least one processor executes the computer-readable instructions to cause the computing device cluster to perform the cross-node memory data access method as described in any one of claims 1 to 13.

26. A computer-readable storage medium, characterized in that, Includes computer-readable instructions; the computer-readable instructions are used to implement the cross-node memory data access method according to any one of claims 1 to 13.

27. A computer program product containing instructions, characterized in that, Includes computer-readable instructions; the computer-readable instructions are used to implement the cross-node memory data access method according to any one of claims 1 to 13.