Acceleration equipment and data processing method
By using CXL controllers and DPUs in acceleration devices to manage multiple computing devices, the problem of idle acceleration devices and high hardware costs is solved, efficient and accurate data processing is achieved, and resource waste and hardware costs are reduced.
Patent Information
- Application Number
- CN202410533301.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-29
- Publication Date
- 2024-08-30
AI Technical Summary
Existing acceleration devices can only manage one computing device. When the computing device has no data processing requirements, it will be idle, resulting in a waste of resources and increasing hardware costs in application scenarios with multiple computing devices.
Design an acceleration device that uses a Computing Express Link (CXL) controller and a data processor (DPU). The CXL controller parses request data packets from multiple computing devices, obtains target data information and sends it to the DPU to implement DPU management. Data processing of multiple computing devices reduces DPU idle state and improves the accuracy and efficiency of data processing through encoding address mapping tables.
It enables multiple computing devices to share one acceleration device, reduces the idle rate and hardware cost of the acceleration device, improves data processing efficiency and accuracy, and reduces the insecurity in the data copy process.
Smart Images

Figure CN118568044A
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to an acceleration device and a data processing method. Background Art
[0002] Accelerators are increasingly being used because they can improve the data processing capabilities of computing devices. However, currently, one accelerator only manages the data processing of one computing device. When a computing device has no data processing requirements, the accelerator will be idle, resulting in a waste of resources for the accelerator. In addition, in application scenarios that include multiple computing devices, such as a hyper-converged data cluster environment, each computing device needs to be configured with an accelerator, which increases hardware costs. Summary of the invention
[0003] The embodiments of the present application provide an acceleration device and a data processing method for realizing sharing of one acceleration device by multiple computing devices, reducing the idle rate of the acceleration device, reducing the resource waste of the acceleration device such as a network card, and reducing the hardware cost in an application scenario including multiple computing devices.
[0004] In order to achieve the above purpose, this application adopts the following technical solutions:
[0005] In a first aspect, an embodiment of the present application provides an acceleration device, which includes a computing fast link CXL controller, a data processor DPU and multiple ports, each of the multiple ports is used to connect a computing device; one end of the CXL controller is used to connect the multiple ports; the other end of the CXL controller is used to connect the DPU; the CXL controller is used to: in response to receiving a request data packet sent by a target computing device, parse the request data packet, obtain target data information; send the target data information to the DPU; the target computing device is any computing device connected to the multiple ports, and the request data packet includes the target data information; the DPU is used to obtain the target data according to the target data information, and process the target data.
[0006] Therefore, the acceleration device provided in the embodiment of the present application realizes one DPU to manage multiple computing devices, reduces the probability of the DPU being in an idle state, and reduces the resource waste of the acceleration device such as the network card. In addition, in the application scenario including multiple computing devices, since multiple DPUs are not required, it helps to reduce the overall hardware cost.
[0007] In an achievable acceleration device, the DPU is used to obtain the target data from the memory address of the target computing device according to the memory address and data size of the target data. At this time, the DPU does not need to receive the target data directly from the CXL controller, that is, the content transmitted between the CXL controller and the DPU is the memory address and data size of the target data. Compared with the transmission of the target data, the transmission quantity is small, which helps to save transmission resources and improve transmission efficiency. And the DPU directly accesses the memory address of the computing device where the target data is located, and obtains the target data from the memory address of the computing device. Compared with copying the target data to the acceleration device, it can greatly improve the data processing efficiency and reduce the insecurity that occurs during the data copying process.
[0008] In another achievable acceleration device, the CXL controller is also used to obtain a coding address mapping table, which is an address mapping table obtained by uniformly encoding the memory addresses of computing devices corresponding to multiple ports; based on the coding address mapping table, the memory address of the target data is mapped; and the memory address and data size of the mapped target data are sent to the DPU. The DPU is also used to determine the memory address of the target computing device based on the memory address of the mapped target data received and the coding address mapping table; the DPU is used to obtain the target data from the memory address of the target computing device based on the memory address and data size of the mapped target data. The CXL controller maps the memory address of the target data according to the address coding mapping table, thereby enabling the DPU to accurately identify the memory addresses of different target data. In addition, the CXL controller uniformly encodes the addresses of all hosts, which is conducive to the DPU accurately obtaining the target data, thereby helping to improve the processing accuracy of the DPU in processing the target data.
[0009] In another achievable acceleration device, the DPU is also used to send the processing result of the accelerated processing of the target data to the CXL controller; the CXL controller is also used to encapsulate the processing result based on the CXL protocol to obtain a response data packet; and send the response data packet to the target computing device through the target port. That is, the processing result is encapsulated into a response data packet based on the CXL protocol, and the processing result can be returned to the target computing device with a higher data transmission speed, low latency, memory consistency and high energy efficiency.
[0010] Optionally, the acceleration device includes one of a network card, a graphics processing unit GPU card and a field programmable gate array FPGA card.
[0011] In a second aspect, an embodiment of the present application provides a data processing method, which is applied to an acceleration device, wherein the acceleration device includes a CXL controller, a data processing unit DPU, and multiple ports, each of the multiple ports is used to connect a computing device, one end of the CXL controller is used to connect the multiple ports, and the other end of the CXL controller is used to connect the DPU, and the method includes:
[0012] The CXL controller responds to receiving a request data packet sent by a target computing device, parsing the request data packet, and obtaining target data information; the target data information is sent to the DPU; the target computing device is any computing device connected to a plurality of ports, and the request data packet includes the target data information; the DPU is used to obtain the target data according to the target data information, and process the target data.
[0013] In a specific implementation of the second aspect, the DPU obtains the target data from the memory address of the target computing device according to the memory address and data size of the target data.
[0014] In another specific implementation of the second aspect, the CXL controller obtains a coding address mapping table, which is an address mapping table obtained by uniformly encoding the memory addresses of computing devices corresponding to multiple ports; based on the coding address mapping table, the memory address of the target data is mapped; the memory address and data size of the mapped target data are sent to the DPU; the memory address of the target computing device is determined based on the memory address of the received mapped target data and the coding address mapping table; the DPU obtains the target data from the memory address of the target computing device based on the memory address and data size of the mapped target data.
[0015] In another specific implementation of the second aspect, the DPU sends the processing result of the accelerated processing of the target data to the CXL controller; the CXL controller encapsulates the processing result based on the CXL protocol and obtains a response data packet; and sends the response data packet to the target computing device through the target port.
[0016] In another specific implementation of the second aspect, if the target port includes a first target port and a second target port, the CXL controller, in response to receiving a request data packet sent by the target computing device, parses the request data packet and obtains the target data information, including: in response to obtaining a first request data packet sent by the computing device corresponding to the first target port and obtaining a second request data packet sent by the computing device corresponding to the second target port, the CXL controller sequentially parses the first request data packet based on a serial processing rule to obtain the first target data information; parses the second request data packet to obtain the second target data information; or sequentially parses the second request data packet to obtain the second target data information; parses the first request data packet to obtain the first target data information; the first request data packet includes the first target data information, and the second request data packet includes the second target data information.
[0017] In a third aspect, an embodiment of the present application provides an acceleration device, which executes the data processing method described in any one of the second aspects.
[0018] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is run on a computer, the computer executes the operating steps of any possible data processing method of the second aspect described above.
[0019] In a fifth aspect, an embodiment of the present application further provides a computer program product, which, when running on a computer, executes the operating steps of any possible data processing method of the first aspect.
[0020] Any of the acceleration devices and data processing methods provided above, corresponding computing devices or computer-readable storage media or computer program products, etc. are used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 A schematic diagram of the structure of an acceleration device provided in an embodiment of the present application;
[0022] Figure 2 A schematic diagram of a structure in which a CXL controller 101 is integrated into a DPU chip;
[0023] Figure 3 An interactive diagram of a data processing method provided in an embodiment of the present application;
[0024] Figure 4 A schematic diagram of a task queue;
[0025] Figure 5A schematic diagram of a cabinet architecture provided in an embodiment of the present application;
[0026] Figure 6 An interactive diagram of another data processing method provided in an embodiment of the present application;
[0027] Figure 7 A schematic diagram of the structure of a computing device. DETAILED DESCRIPTION
[0028] In order to enable those skilled in the art to better understand the embodiments of the present application, technical terms are first introduced.
[0029] Compute Express Link (CXL): is a dynamic multi-protocol technology. CXL includes three protocols, namely CXL.io protocol, CXL.cache protocol and CXL.men protocol. Among them, the CXL.io protocol is used to implement the following functions: initialize the acceleration device when the acceleration device is connected to the computing device; manage the connection process between the acceleration device and the computing device, including establishing a communication channel, negotiating communication parameters, and ensuring the reliability of data transmission; provide a register access mechanism in the acceleration device, and the computing device can accurately manage the acceleration device according to the register access mechanism; discover and enumerate the acceleration device. The CXL.cache protocol defines the interaction method between the computing device and the acceleration device, allowing the acceleration device connected to the computing device to use the request and response method to cache the data stored in the main memory with low latency and high efficiency. The CXL.men protocol allows the computing device to access the slave memory connected to the acceleration device using memory access instructions with load and store semantics.
[0030] Acceleration device: An acceleration device is a device that includes a data processing unit (DPU). The acceleration device accelerates the processing of data sent by the computing device through the DPU, which can improve the computing speed and data processing ability of the computing device. Acceleration devices play an important role in the data processing of computing devices. For example, an acceleration device may include a network card, which is an acceleration device used to achieve Internet access. The working principle of the network card is: the network data sent by the computing device is processed through the DPU to achieve physical connection and data communication between the computing device and the network device. The network card plays an important role in the network communication of computing devices. For example, an acceleration device may include a graphics processing unit (GPU) card or a field programmable gate array (FPGA) card. The GPU card is used to assist the processor of the computing device in processing computing tasks.
[0031] However, currently, an acceleration device can only be connected to one computing device. When the computing device has no data processing requirements, the acceleration device will be idle, resulting in a waste of the acceleration device. In addition, in application scenarios that include multiple computing devices, such as a hyper-converged data cluster environment, each computing device is connected to an acceleration device, which will increase the overall hardware cost.
[0032] In view of the above problems, an embodiment of the present application provides an acceleration device, which includes a CXL controller, a DPU and N ports. Wherein N is an integer greater than 1. Each of the N ports can be connected to a computing device. One end of the CXL controller is connected to the N ports, and the other end is connected to the DPU. The CXL controller is used to obtain a request data packet sent by at least one of the N ports. The CXL controller parses the request data packet and obtains the target data information carried in the request data packet. The CXL controller sends the target data information to the DPU, and the DPU processes the target data corresponding to the target data information. That is, the embodiment of the present application can realize that one acceleration device manages multiple computing devices, thereby reducing the probability of the acceleration device being idle. And in an application scenario including multiple computing devices, since multiple acceleration devices are not required, it helps to reduce the overall hardware cost.
[0033] The acceleration device provided in the embodiment of the present application is described in detail and completely below in conjunction with the accompanying drawings.
[0034] Embodiment 1
[0035] See also Figure 1 , which is a schematic diagram of the structure of an acceleration device provided in an embodiment of the present application. The acceleration device 100 includes a CXL controller 101, a DPU 102, and N ports, where N is an integer greater than 1, and the N ports are, for example, port 1, port 2, ..., port N. Each of the N ports can be connected to a computing device, such as Figure 1 As shown, the acceleration device can be connected to computing device 1 via port 1, can be connected to computing device 2 via port 2, ..., and can be connected to computing device N via port N.
[0036] In the embodiment of the present application, the acceleration device 100 receives a request data packet sent by a computing device corresponding to a port. For example, the acceleration device 100 receives a request data packet sent by computing device 1 through port 1, receives a request data packet sent by computing device 2 through port 2, ..., receives a request data packet sent by computing device N through port N. The acceleration device 100 may accept a request data packet sent by one of the computing devices, or may receive request data packets sent by multiple computing devices, which is not specifically limited in the embodiment of the present application.
[0037] The request data packet sent by the computing device is a data packet based on the CXL protocol. Among them, CXL ensures cache consistency, that is, it ensures that when the acceleration device accesses the memory of the computing device, it can obtain consistent data. In addition, through the CXL protocol, the acceleration device can obtain direct access to the computing device, reducing the delay and overhead of data transmission and improving the access speed.
[0038] The request data packet includes target data information. In an embodiment of the present application, the target data information includes the target data and the request content of the target data. The request content indicates how the DPU 102 processes the target data. For example, if the request content is to process the target data online, the DPU 102 may process the target data online according to the request content. For example, if the request content is to compress the target data, the DPU 102 may compress the target data according to the request content. For example, if the request content is to perform computational processing on the target data, the DPU 102 may perform computational processing on the target data according to the request content.
[0039] Supplementary explanation: the computing device described in the embodiment of the present application refers to a computing device that can be connected to the acceleration device, such as a server, a computer, a laptop, etc. In the embodiment of the present application, port 1, port 2, ..., port N are used to represent different ports, and computing device 1, computing device 2, ..., computing device N are used to represent different computing devices.
[0040] One end of the CXL controller 101 is connected to a port, and the other end is connected to the DPU 102. The CXL controller 101 receives a request data packet sent by a computing device corresponding to the port, parses the request data packet, obtains the target data information carried in the request data packet, and then sends the target data information to the DPU 102.
[0041] DPU 102 acquires target data, processes the target data, and feeds back the processing result to CXL controller 101 , and CXL controller 101 sends the processing result to the corresponding computing device through a port.
[0042] In the embodiment of the present application, the DPU 102 processes the target data according to the request content. For example, if the request content is to process the target data online, the target data is forwarded by a network packet, routed, and flow controlled. If the request content is to compress the target data, the DPU 102 compresses the target data. If the request content is to encrypt or decrypt the target data, the DPU 102 encrypts or decrypts the target data. If the request content is to perform computational processing on the target data, the DPU 102 can perform computational processing on the target data according to the request content.
[0043] Next, DPU 102 feeds back processing results, such as network packet forwarding results, routing results, flow control results, compression results, decryption results, encryption results or calculation results, to CXL controller 101. CXL controller 101 sends the processing results to the corresponding computing device through the port corresponding to the target data.
[0044] In the embodiment of the present application, the CXL controller 101 may be a separate chip, for example, the CXL controller 101 is a dedicated CXL memory expansion controller chip. The DPU 102 is also integrated on the acceleration device as a separate chip. In addition, in order to improve the device integration, the CXL controller 101 may also be integrated on the DPU 102 chip, and integrated on the acceleration device through the DPU 102 chip, see Figure 2 FIG. 1 is a schematic diagram of a structure in which a CXL controller 101 is integrated in a DPU chip. The present application embodiment is not specifically limited.
[0045] It should be noted that the acceleration device provided in the embodiment of the present application may be a network card, or other acceleration devices for implementing the DPU function, such as a GPU card, an FPGA card, etc., which is not specifically limited in the embodiment of the present application.
[0046] For the convenience of description, the following description is schematically illustrated by taking the computing device as a network card as an example.
[0047] See also Figure 3 , which is an interactive diagram of a data processing method provided in an embodiment of the present application. The method is applied in Figure 1 The method comprises the following steps:
[0048] S31: If the computing device has a data processing requirement, the computing device encapsulates the corresponding target data information into a request data packet.
[0049] Data processing requirements refer to the requirements for data processing by the acceleration device, wherein the data that the acceleration device needs to process is called target data.
[0050] For example, when a computing device has a need to access the Internet, the data to be accessed by the acceleration device needs to be processed by the network card. Specifically, the DPU in the network card performs compression, load balancing, and other processing on the data to be accessed. Then, the DPU sends the processed data to be accessed to the network device. Among them, the need to access the Internet is a data processing demand, and the data to be accessed is the target data.
[0051] In the embodiment of the present application, the computing device encapsulates the target data information into a request data packet based on the CXL protocol.
[0052] S32 : The computing device sends a request data packet to CXL controller 101 .
[0053] The computing device sends the request data packet to CXL controller 101 through the corresponding port. Figure 1 , if computing device 1 sends the acquired request data packet to CXL controller 101 via port 1. Computing device 2 sends the acquired request data packet to CXL controller 101 via port 2. .... Computing device N sends the acquired request data packet to CXL controller 101 via port N.
[0054] For the convenience of the following description, the request data packet obtained by computing device 1 is called request data packet 1, the request data packet obtained by computing device 2 is called request data packet 2, ..., and the request data packet obtained by computing device N is called request data packet N.
[0055] S33: CXL controller 101 parses the request data packet and obtains target data information.
[0056] After receiving the request data packet, CXL controller 101 parses the request data packet and obtains the target data information in the request data packet.
[0057] In one possible manner, after receiving only one request data packet sent by a computing device, CXL controller 101 directly parses the request data packet to obtain target data information.
[0058] In another possible manner, if the CXL controller 101 receives multiple request packets within a preset time period, for example, the CXL controller 101 receives request packet 1, request packet 2, ..., request packet M, the CXL controller 101 may parse the request packets according to a first rule. Wherein, N≥M≥2, and M is an integer. Wherein, the preset time period is a time period set by those skilled in the art as needed, and is not specifically limited in the embodiments of the present application.
[0059] In a possible implementation, the first rule is a parallel processing rule, that is, after receiving multiple request data packets, CXL controller 101 processes the multiple request data packets simultaneously and sends the processing results to DPU 102. Parallel processing can improve the data processing efficiency of CXL controller 101.
[0060] In another possible implementation, the first rule is a first serial processing rule.
[0061] In one example, the first rule is to parse the request data packets in sequence according to the time sequence in which they are received. For example, if the CXL controller 101 receives request data packet 1, request data packet 2, ..., request data packet M in sequence, the CXL controller 101 parses request data packet 1, request data packet 2, ..., request data packet M in sequence to obtain target data information corresponding to each request data packet, for example, request data packet 1 corresponds to target data information 1, request data packet 2 corresponds to target data information 2, ..., request data packets correspond to target data information M.
[0062] It should be noted that the parsing timing provided in the embodiment of the present application can be directly parsed after receiving a request data packet, or can be parsed after receiving all request data packets, which is not specifically limited in the embodiment of the present application.
[0063] In another example, the first rule is to parse sequentially in a polling manner. For example, CXL controller 101 pre-stores a polling rule, such as first processing request data packet 1 obtained by port 1, then processing request data packet 2 obtained by port 2, ..., and finally processing request data packet M obtained by port M.
[0064] The embodiment of the present application can also parse data through other first rules, for example, the parsing order is determined by data priority. If the data priority corresponding to the computing device is high, the request data packet sent by the computing device is processed first. If the data priority corresponding to the computing device is low, the request data packet sent by the computing device is processed later. This makes the processing result more able to meet user needs. Among them, data priority refers to the responsiveness of the computing device to the data. If the computing device has a high degree of responsiveness to the data, it needs to be processed first, and the data priority is higher. Compared with parallel processing rules, serial processing rules do not need to occupy too much acceleration device memory space, and will not cause resource conflicts and synchronization problems.
[0065] In the embodiment of the present application, the CXL controller 101 parses the request data packet and obtains the target data information in the request data packet. Specifically, the target data and the request content in the request data packet are obtained, and the CXL controller 101 can send the target data and the request content to the DPU, and the DPU processes the target data based on the request content. For example, when the acceleration device is a network card, the target data is the data to be accessed online, the request data packet is parsed, the data to be accessed online is obtained, and the information of sending the data to be accessed online to the server corresponding to the destination address for online processing is obtained. The CXL controller 101 sends the data to be accessed online and the information of sending the data to be accessed online to the server corresponding to the destination address for online processing to the DPU 102.
[0066] S34 : CXL controller 101 sends the target data information to DPU 102 .
[0067] CXL controller 101 may send the target data information directly to DPU 102. For example, CXL controller 101 simultaneously sends the target data information corresponding to each request data packet to DPU 102 for processing.
[0068] For another example, the CXL controller 101 sequentially sends the target data information corresponding to each request data packet to the DPU 102 for processing. For example, the CXL controller 101 sends the first acquired target data information to the first row in the task queue of the DPU 102 through the task queue, and sends the later acquired target data information to the second row in the task queue of the DPU 102. Sending the target data information in the form of a task queue can avoid resource conflicts.
[0069] In addition, the embodiments of the present application may also be sent in other ways, which are not specifically limited in the embodiments of the present application.
[0070] S35: The DPU 102 obtains the target data, processes the target data, and obtains the processing result.
[0071] In the embodiment of the present application, after the DPU 102 obtains the target data information, that is, the DPU 102 obtains the target data and the request content for obtaining the target data, the DPU 102 processes the target data based on the request content.
[0072] In one example, if the target data is data to be uploaded to the Internet, and the request content is to send the data to the server corresponding to the destination address for online processing, then DPU 102 sends the target data to the server corresponding to the destination address, triggering the server to process the target data online.
[0073] In another example, if the target data is data to be encrypted, and the request content is to encrypt the data to be encrypted based on a preset encryption method, then the DPU 102 encrypts the target data using the preset encryption method.
[0074] In addition, different types of target data have different request contents and different methods of processing the target data. This application can be adaptively adjusted according to the type of target data.
[0075] In the embodiment of the present application, the DPU 102 may receive target data corresponding to multiple computing devices. The DPU 102 may process the target data based on the second rule in combination with the request content of the target data, and obtain the corresponding processing result. The second rule is a task queue rule. That is, the tasks in the front of the task queue are processed first, and the tasks in the back are processed later.
[0076] Attached Figure 4Schematic diagram of a task queue. From top to bottom, there are Task 1, Task 2, ..., Task N. The DPU processes Task N first, then Task N-1, ..., and finally Task 1. The DPU 102 uses the task queue to process the target data information, which helps to improve the reliability of the DPU processing tasks.
[0077] In one example, DPU 102 adds the received target data information to the task queue in order of time. For example, the target data information received by DPU 102 is target data information 1, target data information 2, ... target data information M in order of time, then target data information 1 is added to the position of task M, target data information 2 is added to the position of task M-1, ..., target data information M is added to the position of task 1. Then DPU1 102 first processes the target data corresponding to target data information 1 and obtains the processing result, and processes the target data corresponding to target data information 2 and obtains the processing result, ...
[0078] In another example, the DPU 102 adds the target data information to the task queue according to the processing priority of the received target data. Exemplary explanation, if the DPU 102 receives the processing priority 1 corresponding to the target data information 1, the processing priority 2 corresponding to the target data information 2, ..., and the processing priority M corresponding to the target data information M, for example, the processing priority 1>processing priority 2>...>processing priority M, wherein the higher the priority, the higher the priority, the higher the priority of the DPU 102. At this time, the target data information 1 is added to the task M position of the task queue, the target data information 2 is added to the task M position of the task queue, ..., and the target data information M is added to the task M position of the task queue. Then the DPU 102 processes the target data corresponding to the target data information 1, the target data corresponding to the target data information 2, ..., and the target data corresponding to the target data information M in turn according to the task queue. In the embodiment of the present application, the processing priority of the target data is determined by the DPU 102, that is, the DPU 102 comprehensively determines the processing priority of the target data according to factors such as the importance of the target data, the amount of data, the data type, and the source of the data, thereby ensuring that the key target data is processed first.
[0079] In addition, the DPU 102 may also add the target data information to the task queue based on other rules, and the DPU 102 processes the target data information in the task queue.
[0080] S36 : DPU 102 sends the processing result to CXL controller 101 .
[0081] DPU 102 sends the processing results to CXL controller 101 in sequence. For example, DPU 102 processes the target data corresponding to target data information 1, the target data corresponding to target data information 2, ..., the target data corresponding to target data information M in sequence, and obtains processing result 1, processing result 2, ..., processing result M, respectively. Then DPU 102 sends processing result 1, processing result 2, ..., processing result M to CXL controller 101.
[0082] S37: CXL controller 101 encapsulates the processing result into a response data packet.
[0083] The response data packet includes the processing result. Exemplarily, CXL controller 101 encapsulates processing result 1, processing result 2, ..., processing result M respectively to obtain response data packet 1, response data packet 2, ..., response data packet M respectively, each response data packet including a receiver address, a sender address and a processing result.
[0084] S38: CXL controller 101 sends a response data packet to the computing device connected to the corresponding port.
[0085] CXL controller 101 sends the response data packet to the computing device connected to the corresponding port. For example, CXL controller 101 sends response data packet 1 to computing device 1 through port 1. CXL controller 101 sends response data packet 2 to computing device 2 through port 2. ..., CXL controller 101 sends response data packet M to computing device M through port M.
[0086] S39: The computing device parses the response data packet and obtains the processing result.
[0087] In the embodiment of the present application, the computing device parses the response data packet to obtain the processing result of the target data. Figure 3 The data processing method shown realizes a method in which one DPU and one CXL controller process data of multiple computing devices. It can be understood that if some computing devices connected to the port do not have Internet access requirements, computing devices with Internet access requirements will continue to use DPU 102 for processing, so multiple computing devices sharing one acceleration device are conducive to reducing the probability of the DPU being idle. Furthermore, in the application scenario of multiple computing devices, it is not necessary for each computing device to be connected to a DPU, so the overall hardware cost is reduced compared to the prior art.
[0088] In summary, the embodiments of the present application achieve the purpose of managing multiple computing devices by one DPU through an acceleration device, reducing the probability of the DPU being idle, and in application scenarios including multiple computing devices, since multiple DPUs are not required, it helps to reduce overall hardware costs.
[0089] Embodiment 2
[0090] In the first embodiment, the computing device directly copies the target data to the DPU 102 for data processing. However, during the data copying process, on the one hand, the data processing efficiency will be affected, and on the other hand, the data copying process is also prone to cause data loss, damage and other problems, affecting the data processing results. The embodiment of the present application provides another data processing method. The data processing method provided in the embodiment of the present application is described in detail below in conjunction with the accompanying drawings.
[0091] Attached Figure 5 A schematic diagram of a cabinet architecture provided for an embodiment of the present application. The cabinet includes an acceleration device 100, a server 1, a server 2, a server 3, and a server 4. The port where the acceleration device is connected to the server is called an upstream port (UpstreamPort, UP). The port where the server is connected to the acceleration device side is called a downstream port (Downstream Port, DP). That is, server 1 is connected to the acceleration device 100 via DP1 and UP1, server 2 is connected to the acceleration device 100 via DP2 and UP2, server 3 is connected to the acceleration device 100 via DP3 and UP3, and server 4 is connected to the acceleration device 100 via DP4 and UP4.
[0092] In addition, in order to better illustrate the data processing method provided by the embodiment of the present application, the following example is taken as an example that the memory address of server 1 is 0-4GB corresponding to address 1-4, the memory address of server 2 is 0-4GB corresponding to address 1-4, the memory address of server 3 is 0-8GB corresponding to address 1-8, and the memory address of server 4 is 0-10GB corresponding to address 1-10. It should be noted that the memory addresses of the above servers are only schematic representations and do not mean that the memory addresses of the servers are the above addresses. The memory addresses of the servers are adjusted according to the needs of those skilled in the art.
[0093] The memory addresses a1 to a2GB correspond to addresses b1-b2, which means that the starting address of the memory address is address b1, and the size of the memory address space is a2-a1 (GB). For example, the memory addresses 0 to 4GB correspond to addresses 1-4, which means that the starting address of the memory address is 1, and the size of the memory address space is 4GB.
[0094] For example, server 1 is connected to the acceleration device 100 through DP1 and UP1, server 2 is connected to the acceleration device 100 through DP2 and UP2, server 3 is connected to the acceleration device 100 through DP3 and UP3, and server 4 is connected to the acceleration device 100 through DP4 and UP4. Then, server 1, server 2, server 3, and server 4 send data packets based on the CXL.io protocol to the acceleration device 100 to discover the acceleration device 100, so that server 1, server 2, server 3, and server 4 can communicate normally with the acceleration device 100.
[0095] In the embodiment of the present application, when the UP of the acceleration device is connected to the server, the CXL controller 101 first uniformly encodes the memory addresses of the computing devices corresponding to all ports to obtain an address encoding mapping table, and saves the obtained address encoding mapping table in a preset storage area.
[0096] Exemplary description: Table 1 is an address coding mapping table provided in an embodiment of the present application.
[0097] Table 1
[0098]
[0099] Among them, the CXL controller uniformly encodes the memory address of server 1 corresponding to port 1 as address 1-4, the memory address of server 2 as address 1-4, the memory address of server 3 as address 1-8, and the memory address of server 4 as address 1-10, and obtains the uniformly encoded memory addresses as encoded addresses 1-26, among which encoded addresses 1-4 are the mapping addresses corresponding to the memory address of server 1, encoded addresses 5-8 are the mapping addresses corresponding to the memory address of server 2, encoded addresses 9-16 are the mapping addresses corresponding to the memory address of server 3, and encoded addresses 17-26 are the mapping addresses corresponding to the memory address of server 4.
[0100] The following is combined with Figure 6 , is an interactive diagram of another data processing method provided in the embodiment of the present application, which is described in detail. Figure 6 The method of attaching Figure 5 The target data information described in the embodiment of the present application includes the memory address and data size of the target data, as well as the request content of the target data. Figure 6 The method shown comprises the following steps:
[0101] S61: If the server generates a data processing demand, the server generates a corresponding request data packet.
[0102] In an embodiment of the present application, the server generates a data processing demand, and the server sends the memory address and data size of the target data corresponding to the data processing demand, as well as the request content of the target data, to the acceleration device. Specifically, the server encapsulates the memory address and data size of the target data corresponding to the data processing demand, as well as the request content of the target data, into a request data packet based on the CXL protocol using the CXL protocol. Thus, the server can send the memory address and data size of the target data to the acceleration device 100, and the acceleration device 100 obtains the target data from the server based on the memory address and data size of the target data.
[0103] Among them, the memory address of the target data is used to obtain the target data from the memory address of the corresponding computing device. For example, the memory address of the target data includes the starting address for reading the target data and / or the ending address for reading the target data. For the convenience of explanation, the following description takes the memory address of the target data as the starting address for reading the target data as an example. For example, the memory address of the target data is a memory address with a starting address of address 1, and the size of the target data is 1MB, then the acceleration device can start based on the memory address with a starting address of address 1 and obtain 1MB of target data.
[0104] In the embodiment of the present application, if the server 1 generates a first data processing requirement, the server 1 encapsulates the memory address and data size of the first target data and the request content corresponding to the first data processing requirement into a first request data packet, wherein the first target data corresponds to the first data processing requirement.
[0105] If server 2 generates a second data processing requirement, server 2 encapsulates the memory address and data size of the second target data and the request content corresponding to the second data processing requirement into a second request data packet, wherein the second target data corresponds to the second data processing requirement.
[0106] If the server 3 generates a third data processing requirement, the server 3 encapsulates the memory address and data size of the third target data and the request content corresponding to the third data processing requirement into a third request data packet, wherein the third target data corresponds to the first data processing requirement.
[0107] If the server 4 generates a fourth data processing requirement, the server 4 encapsulates the memory address and data size of the fourth target data and the request content corresponding to the fourth data processing requirement into a fourth request data packet, wherein the fourth target data corresponds to the fourth data processing requirement.
[0108] In an embodiment of the present application, server 1, server 2, server 3 and server 4 can all generate data processing requirements and generate corresponding request data packets. Some servers can also generate data processing requirements and generate corresponding request data packets. The specific details are determined based on actual conditions and are not specifically limited in this application.
[0109] S62 : The server sends a request data packet to CXL controller 101 .
[0110] For example, if server 1 generates a first data processing requirement, server 1 sends a first request data packet to CXL controller 101. If server 2 generates a second data processing requirement, server 2 sends a second request data packet to CXL controller 101. If server 3 generates a third data processing requirement, server 3 sends a third request data packet to CXL controller 101. If server 4 generates a fourth data processing requirement, server 4 sends a fourth request data packet to CXL controller 101.
[0111] S63: CXL controller 101 parses the request data packet and obtains target data information.
[0112] CXL controller 101 processes in the same manner as step S33 to obtain target data information, which will not be discussed here.
[0113] S64: CXL controller 101 maps the memory address of the target data.
[0114] In the embodiment of the present application, after receiving the request data packet, the CXL controller 101 parses the request data packet, obtains the memory address of the target data corresponding to the request data packet, and maps the memory address based on the encoding address mapping table to obtain the mapped encoding address.
[0115] Exemplarily, the CXL controller parses the first request data packet, obtains the memory address of the first target data as the starting address as address 1, then the address after the memory address of the first target data is mapped is the starting address as the coded address 1. The CXL controller parses the second request data packet, obtains the memory address of the first target data as the starting address as address 1, then the address after the memory address of the second target data is mapped is the starting address as the coded address 5. The CXL controller parses the third request data packet, obtains the memory address of the third target data as the starting address as address 2, then the address after the memory address of the third target data is mapped is the starting address as the coded address 10. The CXL controller parses the fourth request data packet, obtains the memory address of the fourth target data as the starting address as address 3, then the address after the memory address of the fourth target data is mapped is the starting address as the coded address 19.
[0116] In the embodiment of the present application, CXL controller 101 maps the memory address of the target data according to the address encoding mapping table, thereby enabling the DPU to accurately identify the memory addresses of different target data.
[0117] S65 : The CXL controller sends the memory address, data size, and request content of the mapped target data to the DPU 102 .
[0118] S66: The DPU directly obtains the target data from the memory address of the corresponding server according to the memory address and data size of the mapped target data.
[0119] The memory address of the mapped target data received by DPU 102 is the memory address obtained by CXL controller 101 after unified encoding, and then DPU 102 reads the address encoding mapping table from the preset storage area. DPU 102 uses the address encoding mapping table and the memory address after unified encoding to determine the computing device corresponding to the port from which to obtain the target data, and can determine the obtained target data. Then, DPU 102 directly obtains the target data from the memory address of the corresponding server according to the memory address and data size of the target data.
[0120] For example, if the starting address of the memory address of the mapped first target data received by DPU 102 is encoding address 1, and the memory size of the target data is 1MB, DPU 102 can determine to obtain the first target data with a starting address of address 1 and a data size of 1MB from server 1 corresponding to port 1 according to the address encoding mapping table shown in Table 1. DPU 102 directly accesses server 1 and obtains the first target data from address 1 of server 1.
[0121] If the starting address of the memory address of the mapped second target data received by DPU 102 is encoding address 5, and the memory size of the target data is 1MB, DPU 102 can determine to obtain the second target data with a starting address of address 1 and a data size of 1MB from server 2 corresponding to port 2 according to the address encoding mapping table shown in Table 1. DPU 102 directly accesses server 2 and obtains the first target data from address 1 of server 2.
[0122] If the starting address of the memory address of the mapped third target data received by DPU 102 is the encoding address 10, and the memory size of the target data is 1MB, DPU 102 can determine to obtain the third target data with the starting address of address 2 and the data size of 1MB from server 3 corresponding to port 3 according to the address encoding mapping table shown in Table 1. DPU 102 directly accesses server 3 and obtains the third target data from address 2 of server 3.
[0123] If the starting address of the memory address of the mapped fourth target data received by DPU 102 is the encoding address 19, and the memory size of the target data is 1MB, DPU 102 can determine to obtain the fourth target data with the starting address of address 3 and the data size of 1MB from server 4 corresponding to port 4 according to the address encoding mapping table shown in Table 1. DPU 102 directly accesses server 4 and obtains the fourth target data from address 3 of server 4.
[0124] That is, the DPU 102 can accurately obtain the target data through the memory address encoded by the address encoding mapping table and the address encoding mapping table.
[0125] S67: DPU 102 processes the target data based on the request content and obtains the processing result.
[0126] S68 : DPU 102 sends the processing result to CXL controller 101 .
[0127] S69: CXL controller 101 encapsulates the processing result into a response data packet.
[0128] S610: CXL controller 101 sends a response data packet to a computing device connected to a corresponding port.
[0129] S611: The computing device parses the response data packet and obtains the processing result.
[0130] Steps S67 to S611 are the same as steps S35 to S39 and will not be repeated here.
[0131] In summary, in the embodiment of the present application, the acceleration device can directly access the memory address of the computing device where the target data is located based on the memory address and data size of the target data, and obtain the target data from the memory address of the computing device. Compared with copying the target data to the acceleration device, the data processing efficiency can be greatly improved, and the insecurity that occurs during the data copying process can be reduced. In addition, the CXL controller performs unified address encoding on all hosts, which is conducive to the DPU to accurately obtain the target data, and thus helps to improve the processing accuracy of the DPU in processing the target data.
[0132] like Figure 7 As shown, the embodiment of the present application further provides an accelerator 700 , and the accelerator 700 does not specifically limit the application scenario.
[0133] The accelerator 700 includes a processor 701 and a memory 702, and 701 includes the acceleration device described in any one of Embodiments 1 and 2. It is understandable that the processor 100 may include a CXL controller and a DPU, or the processor 100 may include a DPU, and the DPU includes a CXL controller. In addition, the processor 100 is electrically connected to the memory 702 respectively; the memory 702 is used to store program instructions, and the program instructions are used to implement the data processing methods involved in the above embodiments; the processor 100 is used to call the corresponding part of the above program instructions to execute the data processing methods involved in the above embodiments.
[0134] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware, or any combination thereof. When implemented using a software program, all or part of the embodiments may be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, all or part of the processes or functions in the embodiments of the present application are generated.
[0135] The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media integrated therein. The available medium may be a magnetic medium (e.g., a floppy disk, a magnetic disk, a magnetic tape), an optical medium (e.g., a digital video disc (DVD)), or a semiconductor medium (e.g., a solid state drive (SSD)), etc.
[0136] The above are only preferred embodiments of the present application, and are not intended to limit the present application in any form. Although the present application has been disclosed as above with preferred embodiments, it is not intended to limit the present application. Any technician familiar with the art can use the above disclosed methods and technical contents to make many possible changes and modifications to the technical solution of the present application without departing from the scope of the technical solution of the present application, or modify it into an equivalent embodiment of equivalent changes. Therefore, any simple modification, equivalent change and modification made to the above embodiments based on the technical essence of the present application without departing from the content of the technical solution of the present application still falls within the scope of protection of the technical solution of the present application.
Claims
1. An acceleration device, characterized in that: The acceleration device comprises a computing fast link CXL controller, a data processor DPU and a plurality of ports, each of the plurality of ports is used to connect a computing device; one end of the CXL controller is used to connect the plurality of ports; the other end of the CXL controller is used to connect the DPU; The CXL controller is used to: in response to receiving a request data packet sent by a target computing device, parse the request data packet to obtain target data information; and send the target data information to the DPU; The target computing device is any computing device connected to the multiple ports, and the request data packet includes the target data information; The DPU is used to obtain the target data according to the target data information and process the target data.
2. The device according to claim 1, characterized in that: The DPU is used to obtain the target data according to the target data information, including: The DPU is used to obtain the target data from the memory address of the target computing device according to the memory address and data size of the target data.
3. The device according to claim 2, characterized in that: The CXL controller is also used to: Acquire a coding address mapping table, where the coding address mapping table is an address mapping table obtained after the CXL controller uniformly encodes the memory addresses of the computing devices corresponding to the multiple ports; Based on the encoding address mapping table, mapping processing is performed on the memory address of the target data; Sending the memory address of the mapped target data and the data size to the DPU; The DPU is also used to: Determining a memory address of the target computing device according to the memory address of the received mapped target data and the encoding address mapping table; The DPU is used to obtain the target data from the memory address of the target computing device according to the memory address and data size of the target data, including: The DPU is used to obtain the target data from the memory address of the target computing device according to the memory address of the mapped target data and the data size.
4. The device according to claim 2 or 3, characterized in that: The DPU is further used to: send the processing result of the accelerated processing of the target data to the CXL controller; The CXL controller is further configured to: encapsulate the processing result based on the CXL protocol to obtain a response data packet; and send the response data packet to the target computing device through the target port.
5. The device according to claim 1, characterized in that: The acceleration device includes one of a network card, a graphics processing unit GPU card and a field programmable gate array FPGA card.
6. A data processing method, characterized in that: Applied to an acceleration device, the acceleration device comprises a CXL controller, a data processing unit DPU and a plurality of ports, each of the plurality of ports is used to connect a computing device, one end of the CXL controller is used to connect the plurality of ports, and the other end of the CXL controller is used to connect the DPU, the method comprises: The CXL controller, in response to receiving a request data packet sent by a target computing device, parses the request data packet to obtain target data information; and sends the target data information to the DPU; the target computing device is any computing device connected to the multiple ports, and the request data packet includes the target data information; The DPU is used to obtain the target data according to the target data information and process the target data.
7. The method according to claim 6, characterized in that: The DPU acquires the target data according to the target data information, including: The DPU obtains the target data from the memory address of the target computing device according to the memory address and data size of the target data.
8. The method according to claim 7, characterized in that: The method further comprises: The CXL controller obtains a coding address mapping table, wherein the coding address mapping table is an address mapping table obtained by uniformly encoding memory addresses of computing devices corresponding to the multiple ports; Based on the encoding address mapping table, mapping processing is performed on the memory address of the target data; and the memory address of the mapped target data and the data size are sent to the DPU; Determining a memory address of the target computing device according to the memory address of the received mapped target data and the encoding address mapping table; The DPU obtains the target data from the memory address of the target computing device according to the memory address and data size of the target data, including: The DPU obtains the target data from the memory address of the target computing device according to the memory address of the mapped target data and the data size.
9. The method according to claim 8, characterized in that: The method further comprises: The DPU sends the processing result of the accelerated processing of the target data to the CXL controller; The CXL controller encapsulates the processing result based on the CXL protocol to obtain a response data packet; and sends the response data packet to the target computing device through the target port.
10. The method according to any one of claims 5 to 8, characterized in that: If the target port includes a first target port and a second target port, the CXL controller, in response to receiving a request data packet sent by a target computing device, parses the request data packet to obtain target data information, including: In response to obtaining a first request data packet sent by a computing device corresponding to the first target port and obtaining a second request data packet sent by a computing device corresponding to the second target port, the CXL controller sequentially parses the first request data packet based on a serial processing rule to obtain the first target data information; parses the second request data packet to obtain the second target data information; or sequentially parses the second request data packet to obtain the second target data information; parses the first request data packet to obtain the first target data information; the first request data packet includes the first target data information, and the second request data packet includes the second target data information.
