Storage system, data processing method, device, storage system and electronic equipment
By introducing accelerated processors and memory into the storage system, FPGA read and write operations are performed directly in the memory, which solves the problem of large FPGA access delays and improves computing efficiency and system performance.
Patent Information
- Application Number
- CN202110424855.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-20
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2041-04-20
AI Technical Summary
FPGA has a large delay problem when accessing the memory of the central processing unit CPU, which affects computing efficiency.
By introducing an acceleration processor, network card and memory into the storage system, the network card receives network data packets, the acceleration processor determines the request type and directly performs read and write operations in the memory, avoiding access to the memory of the central processing unit CPU through the PCIe bus, shortening access path.
It effectively shortens the access delay of FPGA, improves the response speed of data reading and writing, and offloads the reading and writing operation load of the central processing unit CPU, improving the system processing performance.
Smart Images

Figure CN113157628B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a storage system, a data processing method, an apparatus, a storage system, an electronic device, a storage medium, and a program product. Background Art
[0002] Heterogeneous computing has become an important way to improve computing power and operating efficiency in the development of big data and artificial intelligence. As an important branch of heterogeneous computing, FPGA (Field Programmable Gate Array) has broad application prospects in unloading the CPU load and providing higher computing power due to its high throughput, low latency and reprogrammable characteristics.
[0003] In the related art, FPGA interacts with the central processing unit (CPU) through the PCIe bus (Peripheral Component Interconnect Express, a high-speed serial bus), and FPGA needs to access the memory of the central processing unit (CPU) through the PCIe bus to perform storage query tasks. However, in the related art, there is a problem of large access delay of FPGA. Summary of the invention
[0004] The present disclosure provides a storage system, a data processing method, an apparatus, a storage system, an electronic device, a storage medium and a program product to at least solve the problem of large access delay of FPGA in the related art. The technical solution of the present disclosure is as follows:
[0005] According to a first aspect of an embodiment of the present disclosure, there is provided a storage system, including:
[0006] A network card, used for receiving a network data packet, wherein the network data packet carries an external request;
[0007] An acceleration processor is installed at one end of the board and connected to the network card through a network port, and is used to determine whether the external request is a read-write request. If it is determined that the external request is a read-write request, the memory is called to perform the read-write operation;
[0008] The memory is installed at one end of the board, and the memory is mounted on the acceleration processor, and is used to store data corresponding to the read and write operations.
[0009] In one embodiment, the storage system further includes: a central processing unit connected to the acceleration processor via a high-speed serial bus, wherein:
[0010] The acceleration processor is further configured to forward the external request to the central processor when determining that the external request is not a read or write request;
[0011] The central processing unit is used for processing external requests which are not read or write requests.
[0012] In one embodiment, the memory includes: an input and output interface, and the acceleration processor calls the input and output interface of the memory to perform read and write operations.
[0013] In one of the embodiments, the acceleration processor is also used to parse the header information of the network data packet to determine the request mode of the external request; when the external request is a query request, the network data packet is parsed to obtain the target key carried by the network data packet; and the corresponding value data is obtained from the storage address corresponding to the target key through the input and output interface; wherein the target key is used to identify the storage address information of the data.
[0014] In one of the embodiments, the acceleration processor is further used to parse the target key according to a pre-agreed storage protocol to obtain a storage address corresponding to the target key; the storage protocol is a storage method of data in the memory.
[0015] In one of the embodiments, the acceleration processor is also used to parse the network data packet when the external request is an update request to obtain the key to be updated and the corresponding update data carried by the network data packet; and write the update data into the storage address corresponding to the key to be updated through the input and output interface.
[0016] In one of the embodiments, the acceleration processor is further used to parse the key to be updated according to a pre-agreed storage protocol to obtain a storage address corresponding to the key to be updated.
[0017] In one of the embodiments, the acceleration processor is further used to obtain status information of the update data; the status information is used to indicate whether the update data is successfully written into the storage address corresponding to the key to be updated.
[0018] In one of the embodiments, the network card is further configured to return a network packet including the results of the read and write operations.
[0019] In one embodiment, the acceleration processor has a dynamic random access memory, the memory and the dynamic random access memory have the same hardware interface, and the hardware interface is used to adapt to the acceleration processor.
[0020] According to a second aspect of an embodiment of the present disclosure, there is provided a data processing method, including:
[0021] The network card receives a network data packet; the network data packet carries an external request, the network card is connected to an acceleration processor through a network port, and the acceleration processor is installed at one end of the board;
[0022] The acceleration processor determines whether the external request is a read-write request. If it is determined that the external request is a read-write request, the memory is called to perform the read-write operation; the memory is installed at one end of the board, and the memory is mounted on the acceleration processor to store data corresponding to the read-write operation.
[0023] In one embodiment, the method further comprises:
[0024] When it is determined that the external request is not a read / write request, the acceleration processor forwards the external request to the central processor; the central processor is connected to the acceleration processor via a high-speed serial bus;
[0025] The central processing unit processes external requests that are not read or write requests.
[0026] In one embodiment, calling the memory to perform the read and write operations includes:
[0027] The input and output interfaces of the memory are called to perform read and write operations.
[0028] In one embodiment, calling the input and output interface of the memory to perform the read and write operations includes:
[0029] Parsing the header information of the network data packet to determine the request mode of the external request;
[0030] In the case where the external request is a query request, parsing the network data packet to obtain a target key carried by the network data packet;
[0031] The corresponding value data is obtained from the storage address corresponding to the target key through the input and output interface; wherein the target key is used to identify the storage address information of the data.
[0032] In one embodiment, the method of determining the storage address corresponding to the target key includes:
[0033] The target key is parsed according to a pre-agreed storage protocol to obtain a storage address corresponding to the target key; the storage protocol is a storage method of data in the memory.
[0034] In one embodiment, calling the input and output interface of the memory to perform read and write operations further includes:
[0035] In the case where the external request is an update request, the network data packet is parsed to obtain the key to be updated and the corresponding update data carried by the network data packet; the key to be updated and the corresponding update data are key-value data that need to be stored in the memory.
[0036] In one embodiment, the method of determining the storage address corresponding to the key to be updated includes:
[0037] The key to be updated is parsed according to a pre-agreed storage protocol to obtain a storage address corresponding to the key to be updated; the storage protocol is a storage method of data in the memory.
[0038] In one embodiment, the method further comprises:
[0039] The acceleration processor obtains status information of the update data; the status information is used to indicate whether the update data is successfully written into the storage address corresponding to the key to be updated.
[0040] In one embodiment, the method further comprises:
[0041] The acceleration processor returns a network packet including the results of the read and write operations.
[0042] In one embodiment, the acceleration processor has a dynamic random access memory, the memory and the dynamic random access memory have the same hardware interface, and the hardware interface is used to adapt to the acceleration processor.
[0043] According to a third aspect of an embodiment of the present disclosure, there is provided a data processing device, including:
[0044] A data packet receiving module, running on the network card, is configured to receive a network data packet; the network data packet carries an external request, the network card is connected to an acceleration processor through a network port, and the acceleration processor is installed at one end of the board;
[0045] The read / write operation execution module runs on the acceleration processor and is configured to determine whether the external request is a read / write request. If it is determined that the external request is a read / write request, the memory is called to execute the read / write operation; the memory is installed at one end of the board, and the memory is mounted on the acceleration processor to store data corresponding to the read / write operation.
[0046] In one of the embodiments, the device further includes an external request forwarding module and an external request processing module;
[0047] The external request forwarding module runs on the acceleration processor and is configured to forward the external request to the central processor when it is determined that the external request is not a read or write request; the central processor is connected to the acceleration processor via a high-speed serial bus;
[0048] The external request processing module runs on the central processing unit and is configured to execute and process external requests that are not read or write requests.
[0049] In one embodiment, the read / write operation execution module is further configured to execute calls to the input / output interface of the memory to perform read / write operations.
[0050] In one of the embodiments, the read-write operation execution module is further configured to parse the header information of the network data packet to determine the request mode of the external request; when the external request is a query request, parse the network data packet to obtain the target key carried by the network data packet; obtain the corresponding value data from the storage address corresponding to the target key through the input-output interface; wherein the target key is used to identify the storage address information of the data.
[0051] In one of the embodiments, the device also includes a target address determination module, which is configured to perform parsing of the target key according to a pre-agreed storage protocol to obtain a storage address corresponding to the target key; the storage protocol is a storage method of data in the memory.
[0052] In one of the embodiments, the read-write operation execution module is also configured to parse the network data packet when the external request is an update request to obtain the key to be updated and the corresponding update data carried by the network data packet; the key to be updated and the corresponding update data are key-value data that need to be stored in the memory.
[0053] In one of the embodiments, the device also includes an update address determination module, which is configured to perform parsing of the key to be updated according to a pre-agreed storage protocol to obtain a storage address corresponding to the key to be updated; the storage protocol is a storage method of data in the memory.
[0054] In one of the embodiments, the device further includes a status information acquisition module, which runs on the acceleration processor and is configured to execute acquisition of status information of the update data; the status information is used to indicate whether the update data is successfully written into the storage address corresponding to the key to be updated.
[0055] In one of the embodiments, the device further includes a result network packet returning module, which runs on the acceleration processor and is configured to execute and return a network packet including a result of the read and write operation execution.
[0056] In one embodiment, the acceleration processor has a dynamic random access memory, the memory and the dynamic random access memory have the same hardware interface, and the hardware interface is used to adapt to the acceleration processor.
[0057] According to a fourth aspect of an embodiment of the present disclosure, there is provided an electronic device, including:
[0058] processor;
[0059] a memory for storing instructions executable by the processor;
[0060] The processor is configured to execute the instructions to implement the data processing method described in any one of the embodiments of the second aspect.
[0061] According to a fifth aspect of an embodiment of the present disclosure, a storage medium is provided. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the data method described in any one of the embodiments of the second aspect.
[0062] According to a sixth aspect of an embodiment of the present disclosure, a computer program product is provided, the program product comprising a computer program, the computer program being stored in a readable storage medium, at least one processor of a device reading and executing the computer program from the readable storage medium, so that the device executes the data processing method described in any one of the embodiments of the second aspect.
[0063] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects: the network card receives a network data packet carrying an external request, and the network card is connected to the acceleration processor through the network port, and the acceleration processor is mounted with a memory for storing data corresponding to the read and write operations, then the acceleration processor determines whether the external request is a read and write request, and when it is determined that the external request is a read and write request, calls the memory to perform the read and write operations. In the present disclosure, the data read and write operations are completed by the acceleration processor, and the data read and write operations can be performed by directly accessing the memory mounted thereon by the acceleration processor, and there is no need to access the memory of the central processing unit CPU through the PCIe bus, thereby shortening the access path and reducing the access delay.
[0064] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.
[0066] Figure 1 The invention is an application environment diagram of a data processing method according to an exemplary embodiment.
[0067] Figures 2 to 4 The diagram is a schematic diagram of the architecture of a storage system according to an exemplary embodiment.
[0068] Figure 5 The invention is a flowchart of a data processing method according to an exemplary embodiment.
[0069] Figure 6 The invention is a flowchart of a data processing method according to an exemplary embodiment.
[0070] Figure 7 The figure is a flowchart showing steps of performing read and write operations according to an exemplary embodiment.
[0071] Figure 8a The invention is a flowchart of a data processing method according to an exemplary embodiment.
[0072] Figure 8b The invention is a flowchart of a data processing method according to an exemplary embodiment.
[0073] Fig. 9 The invention is a flowchart of a data processing method according to an exemplary embodiment.
[0074] Fig.10 It is a block diagram of a data processing device according to an exemplary embodiment.
[0075] Fig.11 The figure is a diagram showing the internal structure of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0076] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.
[0077] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0078] The data processing method provided by the present disclosure can be applied to Figure 1 In the application environment shown. The terminal 110 interacts with the server 120 through the network. The terminal 110 may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, and portable wearable devices. The server 120 may be a server including a storage system. The storage system may be a key-value storage system. The storage system may include at least one of a central processing unit CPU, an application-specific integrated circuit ASIC, a field programmable gate array FPGA, an artificial intelligence (AI) chip, a system on chip (SoC), or a complex programmable logic device (CPLD). In some embodiments, as Figure 2 As shown, the storage system includes a network card, an acceleration processor and a memory. The network card is used to receive a network data packet, wherein the network data packet carries an external request. The acceleration processor is installed at one end of the board, and the acceleration processor is connected to the network card through a network port. The acceleration processor can be used to determine whether the external request is a read or write request. When it is determined that the external request is a read or write request, the memory is called to perform the read or write operation. The memory is installed at one end of the board, the memory is mounted on the acceleration processor, and the memory is used to store data corresponding to the read and write operations. The memory mounted on the acceleration processor can use persistent memory PMEM or dynamic random access memory DRAM.
[0079] In some embodiments, Figure 3 As shown, the storage system includes a central processing unit CPU, a memory of the central processing unit (CPU DRAM), an acceleration processor FPGA, a memory of the acceleration processor FPGA (dynamic random access memory DRAM), and a hard disk DISK. The hard disk DISK is connected to the central processing unit CPU via a high-speed serial bus PCIe, and the acceleration processor FPGA is connected to the central processing unit CPU via a high-speed serial bus PCIe. Further, as Figure 4As shown, in addition to the dynamic random access memory DRAM of the acceleration processor FPGA, the acceleration processor FPGA is also mounted with a persistent memory PMEM, which is used to expand the storage capacity of the acceleration processor and provide read and persistent write functions. Therefore, through the acceleration processor network port, the acceleration processor FPGA obtains the network data packet; the network data packet is parsed to obtain the target data carried by the network data packet; the target data is an identifier for obtaining value data from the persistent memory, or key-value data that needs to be stored in the persistent memory; through the input and output interface of the persistent memory, data read and write operations are performed in the persistent memory according to the target data. It can be seen that in the process of the above-mentioned data reading and writing operations, the acceleration processor FPGA directly accesses the persistent memory PMEM installed thereon, which not only shortens the access link of the FPGA and reduces the access delay, but also unloads the load caused by the central processing unit CPU performing data reading and writing operations. In addition, the network port of the central processing unit CPU is directly connected to the central processing unit CPU through the high-speed serial bus PCIe, which is used to provide the central processing unit CPU and the mainboard with other functions except data query and data update, and the working status of the acceleration processor FPGA can also be remotely monitored and queried through the central processing unit CPU.
[0080] It should be noted that the data processing method disclosed in the present invention can be used in storage systems, such as KVS (Key-Value Store, key-value storage system, and can also be used in other distributed storage systems such as redis and memcached.
[0081] Figure 5 is a flow chart of a data processing method according to an exemplary embodiment. Figure 5 As shown, the data processing method is used in the server 120, and includes the following steps:
[0082] In step S510, the network card receives a network data packet.
[0083] Among them, a network card is a piece of computer hardware designed to allow computers to communicate on a computer network. A network data packet can be a data packet sent by a client to a server to perform data read and write operations on the server. For example, a network data packet can be an update request (PUT request) or a query request (GET request). The number of data read and write operation requests in a network data packet can be one or more. Specifically, a client sends a network data packet to a server via a network. The server has a network card, and the network card receives the network data packet.
[0084] In step S520, the acceleration processor determines whether the external request is a read-write request. If it is determined that the external request is a read-write request, the memory is called to perform the read-write operation.
[0085] Among them, the network data packet carries an external request, and the network card is connected to the acceleration processor through the network port. The acceleration processor is installed at one end of the board. The memory is installed at one end of the board. The memory is the basis for the operation of the computer. The memory is mounted on the acceleration processor. When the memory is used in combination with the acceleration processor, it can run the instruction set (program) and store working data. For example, the memory can be used to store the data corresponding to the read and write operations.
[0086] Specifically, the network card receives a network data packet sent by the client, and the network card is connected to the acceleration processor through the network port, so the acceleration processor can receive the network data packet. The acceleration processor determines the type of the external request carried by the network data packet, and determines whether the external request is a read-write request. If the external request is determined to be a read-write request, the acceleration processor calls the memory to perform the read-write operation.
[0087] In the above data processing method, the network card receives a network data packet carrying an external request, and the network card is connected to the acceleration processor through the network port. The acceleration processor is mounted with a memory for storing data corresponding to the read and write operations. The acceleration processor determines whether the external request is a read and write request. When it is determined that the external request is a read and write request, the memory is called to perform the read and write operations. In the present disclosure, the data read and write operations are completed by the acceleration processor. On the one hand, more key-value query requests are obtained through the network port of the acceleration processor, which shortens the request delay and improves the response speed. On the other hand, the acceleration processor can directly access the memory mounted thereon to perform data read and write operations, and no longer needs to access the memory of the central processing unit CPU through the PCIe bus, which shortens the access path and thus reduces the access delay.
[0088] In an exemplary embodiment, the central processing unit is connected to the acceleration processing unit via a high-speed serial bus. Figure 6 As shown, the data processing method also includes: in step S610, when it is determined that the external request is not a read or write request, the acceleration processor forwards the external request to the central processor, and the central processor processes the external request that is not a read or write request.
[0089] Specifically, the network card receives a network data packet sent by the client, and the network card is connected to the acceleration processor through the network port, so the acceleration processor can receive the network data packet. The acceleration processor determines the type of external request carried by the network data packet. When it is determined that the external request is not a read-write request, the acceleration processor forwards the external request to the central processor, and the central processor can process the external request that is not a read-write request. The external request that is not a read-write request can be some requests with complex processing processes, such as some requests that require multiple judgments. The computational complexity of similar requests is relatively large, and the central processor can be used to process them.
[0090] The above data processing method uses the acceleration processor to process read and write requests, and uses the central processor to process external requests that are not read and write requests. The query load and update load of the central processor CPU are completely unloaded, and the central processor can be used to process other more complex external requests, thereby improving the processing performance of the system.
[0091] In an exemplary embodiment, calling the memory to perform the read and write operations includes: calling the input and output interface of the memory to perform the read and write operations.
[0092] Among them, the memory has an input and output interface, and the input and output interface of the memory is an interface for data, information exchange and control between the memory and the acceleration processor. Specifically, the acceleration processor receives an external request through the acceleration processor network port and parses the received external request. Through the input and output interface of the memory, the acceleration processor performs data read and write operations in the memory according to the external request. When the external request is an update request, the network data packet is parsed according to the protocol to obtain the key Key and the corresponding value data Value carried by the network data packet. And through the input and output interface of the memory, the acceleration processor writes the key Key and the corresponding value data Value into the memory. When the external request is a query request, the network data packet is parsed according to the protocol to obtain the key Key carried by the network data packet. And through the input and output interface of the memory, the acceleration processor queries in the memory according to the key Key to obtain the corresponding value data Value.
[0093] The above data processing method accelerates the processor to call the input and output interface of the memory to perform read and write operations, thereby unloading the read and write operation load of the central processing unit CPU. Furthermore, the acceleration processor can perform data read and write operations by directly accessing the memory mounted thereon through the input and output interface of the memory, and no longer needs to access the memory of the central processing unit CPU through the PCIe bus, thereby shortening the access path and thus reducing the access delay.
[0094] In an exemplary embodiment, if Figure 7 As shown, calling the memory input and output interface to perform read and write operations can be implemented through the following steps:
[0095] In step S710, the header information of the network data packet is parsed to determine the request mode of the external request.
[0096] The network data packet includes header information, and the header information includes a number of flags, one of which is used to indicate the request mode of the network data packet. The request mode includes query (GET mode) and update (PUT mode). Specifically, the acceleration processor parses the header information of the network data packet to determine whether the request mode of the external request is GET mode or PUT mode.
[0097] In step S720, when the external request is a query request, the network data packet is parsed to obtain the target key carried by the network data packet.
[0098] In step S730, the corresponding value data is obtained from the storage address corresponding to the target key through the input and output interface.
[0099] Among them, the target key is an identifier for obtaining value data from persistent memory. A query request is a request sent by a client to a server to perform a value data query operation on the server. The target key is used to identify the storage address information of the data. Specifically, when the external request is parsed as a query request, the acceleration processor parses the network data packet according to the protocol, and obtains the target key from the network data packet, that is, the key used for querying in the memory (such as persistent memory). Then, the acceleration processor accesses the memory through the input and output interface of the memory, and obtains the corresponding value data from the storage address corresponding to the target key.
[0100] In the above data processing method, the acceleration processor parses the header information of the network data packet to determine the request mode of the network data packet. If the network data packet is determined to be a query request, the network data packet is parsed to obtain the target key carried by the network data packet, which provides an accurate target key for accessing the persistent memory mounted by itself through the acceleration processor. Moreover, by accessing its own persistent memory through the acceleration processor, the occupancy of the high-speed serial bus bandwidth between the acceleration processor and the central processing unit can be reduced.
[0101] In an exemplary embodiment, the method of determining the storage address corresponding to the target key includes: parsing the target key according to a pre-agreed storage protocol to obtain the storage address corresponding to the target key.
[0102] Among them, the storage protocol is the storage method of data in the memory. The storage protocol can be understood as a pre-agreed data storage method. During the data storage process, the acceleration processor calculates the storage location of the target data in the persistent memory according to the storage protocol, and stores the target data in the persistent memory according to the storage location; and during the data reading process, similarly, the acceleration processor calculates the storage location of the target data in the persistent memory according to the storage protocol, and reads the data in the storage location from the persistent memory. The storage protocol can also be very extensive, for example, a hash algorithm or a search tree can also be used as a storage protocol, or the storage protocol can be flexibly determined according to specific business or storage requirements. Specifically, the data in the persistent memory is stored according to the pre-agreed storage protocol, and the acceleration processor parses the target key according to the storage protocol to obtain the storage address corresponding to the target key. The data stored in the storage address is the target data corresponding to the query request.
[0103] In the above data processing method, the acceleration processor parses the target key according to the storage protocol of the data in the persistent memory to obtain the storage address corresponding to the target key, which not only enables the acceleration processor to bear the load of data query, but also allows the central processing unit to perform more other tasks, thereby improving the performance of the system.
[0104] In an exemplary embodiment, calling the input and output interface of the memory to perform read and write operations also includes: when the external request is an update request, parsing the network data packet to obtain the key to be updated and the corresponding update data carried by the network data packet.
[0105] Among them, the update request can be a key-value write request (PUT request). The key-value update request carries the key to be updated and the update data. The key to be updated is a request key Key used to update the value data in the memory (such as persistent memory). The key to be updated and the corresponding update data are key-value data that need to be stored in the memory. Specifically, the client sends a network data packet to the server, and the server can receive the network data packet through the acceleration processor network port. The acceleration processor parses the header information of the network data packet to determine whether the request method of the network data packet is GET or PUT. In the case where it is parsed that the request network packet is an update request, the acceleration processor parses the network data packet according to the protocol, and obtains the key to be updated and the corresponding update data from the network data packet.
[0106] In the above data processing method, if the requested network packet is an update request, the acceleration processor parses the network data packet to obtain the key to be updated and the corresponding update data carried by the network data packet. On the basis of using the acceleration processor to bear the query load of the central processing unit CPU, the acceleration processor is further used to bear the update load of the central processing unit CPU, completely unloading the read and write operation load of the central processing unit CPU, and the central processing unit CPU can be used to provide other services, thereby improving the performance of the system.
[0107] In an exemplary embodiment, a method of determining a storage address corresponding to the key to be updated includes: parsing the key to be updated according to a pre-agreed storage protocol to obtain the storage address corresponding to the key to be updated.
[0108] Among them, the storage protocol is the storage method of data in the memory. The storage protocol can also be very extensive, such as a hash algorithm or a search tree can also be used as a storage protocol, or the storage protocol can be flexibly determined according to specific business or storage requirements. Specifically, the data to be written into the memory (such as persistent memory) needs to be stored according to a pre-agreed storage protocol, and the acceleration processor parses the key to be updated according to the storage protocol to obtain the storage address corresponding to the key to be updated. Thus, the acceleration processor accesses the memory through the storage address and writes the update data to the storage address corresponding to the key to be updated. In some embodiments, taking persistent memory as an example, the search in the memory of the acceleration processor according to the key to be updated includes the following two situations: one is that the key to be updated already exists in the persistent memory, and the other is that the key to be updated does not exist in the persistent memory. Therefore, writing the update data to the storage address corresponding to the key to be updated includes the following two situations: when the key to be updated already exists in the persistent memory, the update data carried by the update request is used to overwrite the historical value data corresponding to the key to be updated. When the key to be updated does not exist in the persistent memory, a new key value data is inserted into the persistent memory.
[0109] The above data processing method accelerates the processor to parse the key to be updated according to the storage protocol, obtains the storage address corresponding to the key to be updated, and can update the data in the storage address to ensure timely update of the data in the memory, thereby ensuring the accuracy of the query.
[0110] In an exemplary embodiment, the data processing method further includes: accelerating the processor to obtain status information of the updated data.
[0111] Among them, the status information is used to characterize whether the update data is successfully written to the storage address corresponding to the key to be updated. Specifically, if the network data packet is an update request, the acceleration processor parses the update request, obtains the key to be updated and the corresponding update data carried by the network data packet, and then parses the key to be updated according to the storage protocol, obtains the storage address corresponding to the key to be updated, and writes the update data to the storage address corresponding to the key to be updated. Furthermore, to write the update data into the memory, the acceleration processor needs to return the status information of whether the update data is successfully written. Therefore, the acceleration processor obtains the status information of the update data, and can use the status information of whether the update data is successfully written to reorganize the network packet, and return it to the caller.
[0112] The above data processing method accelerates the processor to repackage using the status information of the updated data after completing the data update operation, thereby unloading the update load of the central processing unit CPU.
[0113] In an exemplary embodiment, the data processing method further includes: the acceleration processor returns a network packet including the execution result of the read and write operations.
[0114] Specifically, after the acceleration processor completes the query operation, it uses the acquired value data and the target key to reassemble the packet to generate a first target network packet. Through the acceleration processor network port, the acceleration processor returns the generated first target network packet to the caller. After the acceleration processor completes the update operation, the acceleration processor obtains the status information of the updated data, and uses the status information of whether the updated data is successfully written to reassemble the network packet to generate a second target network packet, and returns the second target network packet to the caller through the acceleration processor network port.
[0115] In the above data processing method, after the acceleration processor completes the read and write operations, it uses the read and write operation execution results to re-packetize, generate network packets, and return the network packets to the caller through the acceleration processor network port, thereby unloading the load of the central processing unit CPU and further improving the performance of the system.
[0116] Figure 8a is a flow chart of a data processing method according to an exemplary embodiment. Figure 8a As shown, the data processing method is used in the server 120, and includes the following steps:
[0117] In step S810a, a network data packet is obtained through the acceleration processor network port.
[0118] Among them, the server can adopt a heterogeneous server with a central processing unit CPU-accelerated processor architecture based on a high-speed serial bus. For example, a heterogeneous server is a server that uses GPU, FPGA, ASIC and other processors together with the central processing unit CPU to form a server, and GPU, FPGA, ASIC and other processors can be used as accelerated processors. The network port is responsible for converting the data to be transmitted into a format that can be recognized by other devices on the network and transmitting it through the network medium. Data is transmitted in parallel in the computer bus, that is, data is transmitted side by side, while in the physical cable of the network, data is transmitted in a serial bit stream. The network port is responsible for the conversion between serial data and parallel data. The accelerated processor network port can be a network adapter that converts the operation request that the user needs to transmit into a format that can be recognized by the accelerated processor.
[0119] Persistent memory (PMEM) is also called non-volatile memory (NVM). Even after power failure, persistent memory can keep data from being lost. Applications that are sensitive to downtime and require high performance can use persistent memory. The acceleration processor in the present disclosure is mounted with persistent memory, and the persistent memory is used to expand the storage capacity of the acceleration processor and provide read function and persistent write function. The acceleration processor itself has a storage unit, and the storage unit of the acceleration processor is a dynamic random access memory DRAM. The dynamic random access memory DRAM can use a double data rate (Double Data Rate, DDR) memory. A network data packet is a data packet sent by a client to a server to perform data read and write operations on the server. For example, a network data packet can be an update request (PUT request) or a query request (GET request). The number of data read and write operation requests in a network data packet can be one or more. Specifically, the client sends a network data packet to the server via a network. The server receives the network data packet through the acceleration processor network port.
[0120] In step S820a, the network data packet is parsed to obtain the target data carried by the network data packet.
[0121] In step S830a, data read and write operations are performed in the persistent memory according to the target data through the input and output interface of the persistent memory.
[0122] Among them, in the KVS storage system, the key is the index used to access the data, and the data (value) is the data to be accessed. The target data is an identifier for obtaining the value data from the persistent memory, or the target data is the key-value data (Key-Value) that needs to be stored in the persistent memory. The input and output interface of the persistent memory is an interface for data and information exchange and control between the persistent memory PMEM and the acceleration processor. Specifically, the acceleration processor receives the network data packet through the acceleration processor network port, and parses the received network data packet to obtain the target data from the network data packet. Through the input and output interface of the persistent memory, the acceleration processor performs data read and write operations in the persistent memory PMEM according to the target data. When the network data packet is an update request, the network data packet is parsed according to the protocol to obtain the key Key and the corresponding value data Value carried by the network data packet. And through the input and output interface of the persistent memory, the acceleration processor writes the key Key and the corresponding value data Value to the persistent memory. When the network data packet is a query request, the network data packet is parsed according to the protocol to obtain the key Key carried by the network data packet. And through the input and output interface of the persistent memory, the acceleration processor searches the persistent memory according to the key Key to obtain the corresponding value data Value.
[0123] In the above data processing method, the acceleration processor is mounted with a persistent memory, and the persistent memory is used to expand the storage capacity of the acceleration processor and provide a read function and a persistent write function. Through the acceleration processor network port, the acceleration processor obtains the network data packet, parses the network data packet, obtains the target data carried by the network data packet, and performs data read and write operations in the persistent memory according to the target data through the input and output interface of the persistent memory. It can be seen that in the present disclosure, the data read and write operations are completed by the acceleration processor. Obtaining a greater number of key-value query requests through the acceleration processor network port can not only shorten the request delay and improve the response speed, but also completely unload the read and write operation load of the central processing unit CPU. Furthermore, the acceleration processor can directly access the persistent memory mounted thereon to perform data read and write operations, and no longer needs to access the memory of the central processing unit CPU through the PCIe bus, which shortens the access path and thus reduces the access delay.
[0124] In an exemplary embodiment, the acceleration processor has a dynamic random access memory, the memory and the dynamic random access memory have the same hardware interface, and the hardware interface is used to adapt to the acceleration processor.
[0125] Specifically, taking persistent memory PMEM as an example, persistent memory PMEM is used as a tool for memory capacity expansion of the acceleration processor. The current PMEM capacity specifications include 128GBytes, 256GBbytes and 512GBytes, which are significantly higher than the memory capacity of the acceleration processor. Since PMEM has the same hardware interface as DRAM, it can be directly adapted to the existing acceleration processor board. Exemplarily, by mounting persistent memory PMEM on the acceleration processor FPGA, and completing the request and processing links in the acceleration processor FPGA by redesigning the acceleration processor FPGA program, a new key-value storage system is constructed. By accessing the PMEM mounted on the acceleration processor, on the one hand, the length of the FPGA access storage path is shortened, the response speed of the FPGA is improved, and the storage capacity that the FPGA can manage is greatly improved, which is conducive to improving the throughput performance of the FPGA. On the other hand, the data read and write operations in the present disclosure are completely independent of the central processing unit CPU and the dynamic random access memory DRAM of the central processing unit CPU. Furthermore, under the premise that the power supply meets the requirements, the central processing unit CPU can provide other services, which is conducive to enhancing the overall service capability of the key-value storage system and improving the economy of the system.
[0126] In some embodiments, Figure 8b As shown, the data processing method also includes the following steps:
[0127] In step S802b, the persistent memory mounted on the acceleration processor is divided into a plurality of storage areas, and the number of access requests to each storage area is counted.
[0128] Specifically, a number of value data are stored in the persistent memory mounted on the acceleration processor. In order to record the number of access requests for the value data, the persistent memory is divided into several storage areas (parts), that is, the data in the persistent memory is divided into the same number of data. For example, if the persistent memory is divided into 16 storage areas, the data in the persistent memory is divided into 16 data. The access requests for the data in each storage area are recorded, and the number of access requests for the data in each storage area is counted.
[0129] In step S804b, a preset number of storage areas are selected from high to low according to the number of access requests of each storage area.
[0130] Among them, as mentioned above, among the data in these storage areas, some storage areas have data with more access requests, while some storage areas have data with fewer access requests, and the data with more access requests is the data to be cached (i.e., data that needs to be accessed frequently). The data to be cached in the persistent memory can be cached in the dynamic random access memory DRAM of the acceleration processor. Therefore, when the server receives a query request from the client, it obtains the query request through the acceleration processor network port and obtains the corresponding value data from the dynamic random access memory DRAM of the acceleration processor.
[0131] Specifically, the access requests for data in each storage area are recorded, the number of access requests for data in each storage area is counted, the number of access requests for each storage area is sorted in descending order, and a preset number of storage areas are selected therefrom. It should be noted that the preset number may be determined by the space size of the dynamic random access memory DRAM of the acceleration processor.
[0132] In step S806b, the acceleration processor FPGA caches the data in the preset number of storage areas into the dynamic random access memory DRAM of the FPGA.
[0133] The number of access requests for data in each storage area is different. Among the data in these storage areas, some storage areas have more access requests, while some storage areas have less access requests. According to the number of access requests for data in each storage area, a cache strategy is formulated for caching data from the persistent memory to the dynamic random access memory DRAM of the acceleration processor.
[0134] Specifically, after counting the number of access requests in each storage area, the number of access requests in each storage area is obtained. It is determined whether the number of access requests in each storage area meets the preset conditions. If the number of access requests in any storage area meets the preset conditions, the data in the storage area is cached from the persistent memory to the dynamic random access memory DRAM. The preset conditions can be set in combination with actual conditions, such as the space size of the dynamic random access memory DRAM of the acceleration processor. For example, if the space size of the persistent memory is 256G, and the persistent memory is divided into 128 storage areas, the data size in each storage area is 2G. The space size of the dynamic random access memory DRAM is 32G, then the dynamic random access memory DRAM can accommodate 32G of data, that is, the data of 16 storage areas. The number of access requests of the 128 storage areas is sorted from high to low, the top 16 storage areas are determined, and the data in these 16 storage areas are cached in the 32G storage space of the dynamic random access memory DRAM.
[0135] In step S808b, the number of access requests for each storage area is counted regularly to obtain a new number of access requests for each storage area.
[0136] In step S810b, the data in the storage area whose number of new access requests meets a preset condition is determined to be new data to be cached.
[0137] In step S812b, the data in the dynamic random access memory DRAM is updated using the new data to be cached.
[0138] Specifically, at different moments, the number of access requests for each storage area may change over time. For example, if the data in a storage area is hot data at a certain moment A, then at the next moment B, the data in the storage area is cold data. Therefore, in order to ensure that the data in the dynamic random access memory DRAM is hot data, the number of access requests for each storage area is regularly counted to obtain the new number of access requests for each storage area. It is determined whether the new number of access requests for any storage area meets the preset conditions. If so, it is determined that the data in the storage area is new data to be cached. The acceleration processor caches the new data to be cached from the persistent memory to the dynamic random access memory DRAM of the acceleration processor, overwriting the original data in the dynamic random access memory DRAM of the acceleration processor, that is, the data in the dynamic random access memory DRAM of the acceleration processor is updated using the new data to be cached.
[0139] In step S814b, a query request is obtained through the acceleration processor network port.
[0140] The query request carries the target key. Specifically, the client sends a query request to the server through the network. The server receives the query request through the acceleration processor network port and parses the received query request. Since the query request carries the target key, the key used for the query is obtained from the query request.
[0141] In step S816b, a query is made in the dynamic random access memory DRAM of the acceleration processor to determine whether the target key exists.
[0142] In step S818b, if the target key exists in the dynamic random access memory DRAM, the value data corresponding to the target key is obtained from the dynamic random access memory DRAM and the value data is returned.
[0143] Specifically, the acceleration processor parses the target key from the query request, and uses the target key to search whether the target key exists in the dynamic random access memory DRAM of the acceleration processor. If the target key exists in the dynamic random access memory DRAM of the acceleration processor, it indicates that the value data corresponding to the target key is stored in the dynamic random access memory DRAM of the acceleration processor. Then, the value data corresponding to the target key is obtained from the dynamic random access memory DRAM of the acceleration processor by direct address search, and the obtained value data is returned to the client. For example, according to the target key, the storage address storing the corresponding value value is found in the dynamic random access memory DRAM of the acceleration processor, the value corresponding to the target key is obtained, and the corresponding key-value pair (key-value) is returned to the client.
[0144] In step S820b, if the target key does not exist in the dynamic random access memory DRAM, the acceleration processor accesses the persistent memory mounted on the acceleration processor through the input and output interface of the persistent memory, and obtains the value data corresponding to the target key from the persistent memory.
[0145] Specifically, if the target key does not exist in the dynamic random access memory DRAM, it means that there is no value data corresponding to the target key in the dynamic random access memory DRAM of the acceleration processor, and further query is required in the persistent memory of the acceleration processor. The acceleration processor accesses the persistent memory mounted on the acceleration processor through the input and output interface of the persistent memory, and queries the persistent memory mounted on the acceleration processor according to the target key carried in the query request, obtains the value data corresponding to the target key, and returns the value data obtained by the query to the client.
[0146] In the above data processing method, the number of access requests of each storage area is counted regularly to obtain the new number of access requests of each storage area, and the data in the storage area whose new number of access requests meets the preset conditions is determined to be new hot data, so as to update the data in the dynamic random access memory DRAM of the acceleration processor using the new hot data. It ensures that the data in the dynamic random access memory DRAM is hot data, avoids obtaining value data from the persistent memory PMEM through the acceleration processor to the greatest extent possible, further shortens the access delay, and improves the overall performance of the system.
[0147] Fig. 9 It is a flowchart of a data processing method according to an exemplary embodiment. The data processing method is used in an acceleration processor FPGA, and the acceleration processor FPGA is connected to the central processing unit CPU through a high-speed serial bus PCIe. In addition to the memory (FPGA DRAM) of the acceleration processor FPGA, a persistent memory PMEM is also mounted on the acceleration processor FPGA. The persistent memory PMEM is used to expand the storage capacity of the acceleration processor and provide a read function and a persistent write function. The network data packet is directly received through the network port of the acceleration processor FPGA, and the acceleration processor FPGA parses the network data packet and returns the corresponding network packet through the network port of the acceleration processor FPGA. The acceleration processor can also count the data read and write operations to obtain statistical information of the data read and write operations. The data processing method includes the following steps:
[0148] In step S902, a network data packet is obtained through the acceleration processor network port.
[0149] In step S904, the header information of the network data packet is parsed to determine the request mode of the network data packet.
[0150] In step S906, if the network data packet is a query request, the network data packet is parsed to obtain the target key carried by the network data packet.
[0151] The target key is the identifier for obtaining the value data from the persistent memory.
[0152] In step S908, the target key is parsed according to the storage protocol of the data in the persistent memory to obtain a storage address corresponding to the target key.
[0153] In step S910, corresponding value data is obtained from the storage address corresponding to the target key through the input and output interface of the persistent memory.
[0154] In step S912, a first target network packet is generated according to the acquired value data and the target key, and the first target network packet is returned through the acceleration processor network port.
[0155] In step S914, if the network data packet is an update request, the network data packet is parsed to obtain the key to be updated and the corresponding update data carried by the network data packet.
[0156] The key to be updated and the corresponding update data are key-value data that need to be stored in the persistent memory.
[0157] In step S916, the key to be updated is parsed according to the storage protocol of the data in the persistent memory to obtain a storage address corresponding to the key to be updated.
[0158] In step S918, the update data is written into the storage address corresponding to the key to be updated through the input and output interface of the persistent memory.
[0159] In step S920, status information of the updated data is obtained; the status information is used to indicate whether the updated data is successfully written into the storage address corresponding to the key to be updated.
[0160] In step S922, a second target network packet is generated according to the state information, and the second target network packet is returned through the acceleration processor network port.
[0161] It should be understood that, although the various steps in the above flowchart are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the above flowchart may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0162] Fig.10 is a block diagram of a data processing device according to an exemplary embodiment. Fig.10 The device 1000 includes a data packet receiving module 1002 and a read / write operation execution module 1004.
[0163] The data packet receiving module 1002 runs on the network card and is configured to receive a network data packet; the network data packet carries an external request, the network card is connected to the acceleration processor through the network port, and the acceleration processor is installed at one end of the board;
[0164] The read-write operation execution module 1004 runs on the acceleration processor and is configured to execute the judgment whether the external request is a read-write request. When it is judged that the external request is a read-write request, the memory is called to execute the read-write operation; the memory is installed at one end of the board, and the memory is mounted on the acceleration processor to store the data corresponding to the read-write operation.
[0165] In an exemplary embodiment, the apparatus further includes an external request forwarding module and an external request processing module;
[0166] The external request forwarding module runs on the acceleration processor and is configured to forward the external request to the central processor when it is determined that the external request is not a read or write request; the central processor is connected to the acceleration processor via a high-speed serial bus;
[0167] The external request processing module runs on the central processing unit and is configured to execute and process external requests that are not read or write requests.
[0168] In an exemplary embodiment, the read / write operation execution module is further configured to execute calling the input / output interface of the memory to perform the read / write operation.
[0169] In an exemplary embodiment, the read-write operation execution module is also configured to parse the header information of the network data packet to determine the request mode of the external request; when the external request is a query request, parse the network data packet to obtain the target key carried by the network data packet; obtain the corresponding value data from the storage address corresponding to the target key through the input-output interface; wherein the target key is used to identify the storage address information of the data.
[0170] In an exemplary embodiment, the device also includes a target address determination module, which is configured to perform parsing of the target key according to a pre-agreed storage protocol to obtain a storage address corresponding to the target key; the storage protocol is a storage method of data in the memory.
[0171] In an exemplary embodiment, the read-write operation execution module is also configured to execute, when the external request is an update request, parsing the network data packet to obtain the key to be updated and the corresponding update data carried by the network data packet; the key to be updated and the corresponding update data are key-value data that need to be stored in the memory.
[0172] In an exemplary embodiment, the device also includes an update address determination module, which is configured to perform parsing of the key to be updated according to a pre-agreed storage protocol to obtain a storage address corresponding to the key to be updated; the storage protocol is a storage method of data in the memory.
[0173] In an exemplary embodiment, the device further includes a status information acquisition module, which runs on the acceleration processor and is configured to execute acquisition of status information of the update data; the status information is used to indicate whether the update data is successfully written into the storage address corresponding to the key to be updated.
[0174] In an exemplary embodiment, the device further comprises a result network packet returning module, which runs on the acceleration processor and is configured to execute and return a network packet including a result of the read and write operation execution.
[0175] In an exemplary embodiment, the acceleration processor has a dynamic random access memory, the memory and the dynamic random access memory have the same hardware interface, and the hardware interface is used to adapt to the acceleration processor.
[0176] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0177] In an exemplary embodiment, a storage system is also provided, including: a network card, an acceleration processor and a memory. Specifically, the network card is used to receive a network data packet, wherein the network data packet carries an external request; the acceleration processor is installed at one end of the board card, connected to the network card through a network port, and is used to determine whether the external request is a read-write request. If the external request is determined to be a read-write request, the memory is called to perform the read-write operation; the memory is installed at one end of the board card, and the memory is mounted on the acceleration processor, and is used to store the data corresponding to the read-write operation.
[0178] In an exemplary embodiment, the storage system also includes: a central processing unit, which is connected to the acceleration processor via a high-speed serial bus, wherein the acceleration processor is also used to forward the external request to the central processing unit when it is determined that the external request is not a read or write request; and the central processing unit is used to process external requests that are not read or write requests.
[0179] In an exemplary embodiment, the memory includes: an input-output interface, and the acceleration processor calls the input-output interface of the memory to perform read and write operations.
[0180] In an exemplary embodiment, the acceleration processor is also used to parse the header information of the network data packet to determine the request mode of the external request; when the external request is a query request, the network data packet is parsed to obtain the target key carried by the network data packet; and the corresponding value data is obtained from the storage address corresponding to the target key through the input and output interface; wherein the target key is used to identify the storage address information of the data.
[0181] In an exemplary embodiment, the acceleration processor is further used to parse the target key according to a pre-agreed storage protocol to obtain a storage address corresponding to the target key; the storage protocol is a storage method of data in the memory.
[0182] In an exemplary embodiment, the acceleration processor is also used to parse the network data packet when the external request is an update request to obtain the key to be updated and the corresponding update data carried by the network data packet; and write the update data into the storage address corresponding to the key to be updated through the input and output interface.
[0183] In an exemplary embodiment, the acceleration processor is further configured to parse the key to be updated according to a pre-agreed storage protocol to obtain a storage address corresponding to the key to be updated.
[0184] In an exemplary embodiment, the acceleration processor is further used to obtain status information of the update data; the status information is used to indicate whether the update data is successfully written into the storage address corresponding to the key to be updated.
[0185] In an exemplary embodiment, the network card is further configured to return a network packet including a result of executing the read and write operations.
[0186] In an exemplary embodiment, the acceleration processor has a dynamic random access memory, the memory and the dynamic random access memory have the same hardware interface, and the hardware interface is used to adapt to the acceleration processor.
[0187] Regarding the storage system in the above embodiment, the specific manner in which each component performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0188] Fig.11 1 is a block diagram of a device 1100 for data processing according to an exemplary embodiment. For example, the device 1100 may be a server. Fig.11, the device 1100 includes a processing component 1120, which further includes one or more processors, and a memory resource represented by a memory 1122 for storing instructions that can be executed by the processing component 1120, such as an application. The application stored in the memory 1122 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 1120 is configured to execute instructions to perform the above-mentioned data processing method.
[0189] The device 1100 may also include a power component 1124 configured to perform power management of the device 1100, a wired or wireless network interface 1126 configured to connect the device 1100 to a network, and an input / output (I / O) interface 1128. The device 1100 may operate based on an operating system stored in the memory 1122, such as Windows Server, Mac OSX, Unix, Linux, FreeBSD, or the like.
[0190] In an exemplary embodiment, a storage medium including instructions is also provided, such as a memory 1122 including instructions, which can be executed by a processor of the device 1100 to perform the above method. The storage medium can be a non-transitory computer-readable storage medium, for example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0191] In an exemplary embodiment, a computer program product is also provided, including a computer program, wherein when the computer program is executed by a processor, the data processing method described above is implemented.
[0192] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0193] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A storage system, characterized in that: include: A network card, used for receiving a network data packet, wherein the network data packet carries an external request; An acceleration processor is installed at one end of the board and connected to the network card through a network port, and is used to determine whether the external request is a read-write request. If it is determined that the external request is a read-write request, the memory mounted by the acceleration processor is called to perform the read-write operation; The memory includes a dynamic random access memory DRAM and a persistent memory PMEM. The memory is installed at one end of the board and mounted on the acceleration processor to store data corresponding to the read and write operations. The acceleration processor is also used to obtain the data corresponding to the read and write operations from the dynamic random access memory DRAM. If the data corresponding to the read and write operations do not exist in the dynamic random access memory DRAM, the data corresponding to the read and write operations are obtained from the persistent memory PMEM.
2. The storage system according to claim 1, characterized in that: The storage system further includes: a central processing unit connected to the acceleration processor via a high-speed serial bus, wherein: The acceleration processor is further configured to forward the external request to the central processor when determining that the external request is not a read or write request; The central processing unit is used for processing external requests which are not read or write requests.
3. The storage system according to claim 1 or 2, characterized in that: The memory includes: an input and output interface, and the acceleration processor calls the input and output interface of the memory to perform read and write operations.
4. The storage system according to claim 3, characterized in that: The acceleration processor is also used to parse the header information of the network data packet to determine the request mode of the external request; when the external request is a query request, the network data packet is parsed to obtain the target key carried by the network data packet; and the corresponding value data is obtained from the storage address corresponding to the target key through the input and output interface; wherein the target key is used to identify the storage address information of the data.
5. The storage system according to claim 4, characterized in that: The acceleration processor is also used to parse the target key according to a pre-agreed storage protocol to obtain a storage address corresponding to the target key; the storage protocol is a storage method of data in the memory.
6. The storage system according to claim 3, characterized in that: The acceleration processor is also used to parse the network data packet when the external request is an update request to obtain the key to be updated and the corresponding update data carried by the network data packet; and write the update data into the storage address corresponding to the key to be updated through the input and output interface.
7. The storage system according to claim 6, characterized in that: The acceleration processor is further configured to parse the key to be updated according to a pre-agreed storage protocol to obtain a storage address corresponding to the key to be updated.
8. The storage system according to claim 7, characterized in that: The acceleration processor is further used to obtain status information of the update data; the status information is used to indicate whether the update data is successfully written into the storage address corresponding to the key to be updated.
9. The storage system according to claim 1, characterized in that: The network card is also used to return a network packet including the execution results of the read and write operations.
10. The storage system according to claim 1, characterized in that: The acceleration processor has a dynamic random access memory, the memory and the dynamic random access memory have the same hardware interface, and the hardware interface is used to adapt to the acceleration processor.
11. A data processing method, characterized in that: include: The network card receives network data packets; The network data packet carries an external request, the network card is connected to an acceleration processor via a network port, and the acceleration processor is installed at one end of the board; The acceleration processor determines whether the external request is a read / write request, and if it is determined that the external request is a read / write request, calls the memory mounted by the acceleration processor to perform the read / write operation; The memory is installed at one end of the board, and the memory is mounted on the acceleration processor, and is used to store the data corresponding to the read and write operations; wherein the memory includes a dynamic random access memory DRAM and a persistent memory PMEM; wherein the acceleration processor is also used to obtain the data corresponding to the read and write operations from the dynamic random access memory DRAM, and when the data corresponding to the read and write operations does not exist in the dynamic random access memory DRAM, the data corresponding to the read and write operations is obtained from the persistent memory PMEM.
12. The data processing method according to claim 11, characterized in that: The method further comprises: In the case where it is determined that the external request is not a read / write request, the acceleration processor forwards the external request to the central processor; the central processor is connected to the acceleration processor via a high-speed serial bus; The central processing unit processes external requests that are not read or write requests.
13. The data processing method according to claim 11 or 12, characterized in that: The calling memory to perform read and write operations includes: The input and output interfaces of the memory are called to perform read and write operations.
14. The data processing method according to claim 13, characterized in that: The calling of the input and output interface of the memory to perform the read and write operations includes: Parsing the header information of the network data packet to determine the request mode of the external request; In the case where the external request is a query request, parsing the network data packet to obtain a target key carried by the network data packet; The corresponding value data is obtained from the storage address corresponding to the target key through the input and output interface; wherein the target key is used to identify the storage address information of the data.
15. The data processing method according to claim 14, characterized in that: The method of determining the storage address corresponding to the target key includes: The target key is parsed according to a pre-agreed storage protocol to obtain a storage address corresponding to the target key; the storage protocol is a storage method of data in the memory.
16. The data processing method according to claim 13, characterized in that: The calling of the input and output interface of the memory to perform the read and write operations also includes: In the case where the external request is an update request, the network data packet is parsed to obtain the key to be updated and the corresponding update data carried by the network data packet; the key to be updated and the corresponding update data are key-value data that need to be stored in the memory.
17. The data processing method according to claim 16, characterized in that: The method of determining the storage address corresponding to the key to be updated includes: The key to be updated is parsed according to a pre-agreed storage protocol to obtain a storage address corresponding to the key to be updated; the storage protocol is a storage method of data in the memory.
18. The data processing method according to claim 17, characterized in that: The method further comprises: The acceleration processor obtains status information of the update data; the status information is used to indicate whether the update data is successfully written into the storage address corresponding to the key to be updated.
19. The data processing method according to claim 11, characterized in that: The method further comprises: The acceleration processor returns a network packet including the results of the read and write operations.
20. The data processing method according to claim 11, characterized in that: The acceleration processor has a dynamic random access memory, the memory and the dynamic random access memory have the same hardware interface, and the hardware interface is used to adapt to the acceleration processor.
21. A data processing device, characterized in that: include: The data packet receiving module runs on the network card and is configured to receive network data packets; The network data packet carries an external request, the network card is connected to an acceleration processor via a network port, and the acceleration processor is installed at one end of the board; a read / write operation execution module, running on the acceleration processor, configured to execute a determination as to whether the external request is a read / write request, and in the case where it is determined that the external request is a read / write request, calling the memory mounted by the acceleration processor to execute the read / write operation; The memory is installed at one end of the board, and the memory is mounted on the acceleration processor, and is used to store the data corresponding to the read and write operations; wherein the memory includes a dynamic random access memory DRAM and a persistent memory PMEM; wherein the acceleration processor is also used to obtain the data corresponding to the read and write operations from the dynamic random access memory DRAM, and when the data corresponding to the read and write operations does not exist in the dynamic random access memory DRAM, the data corresponding to the read and write operations is obtained from the persistent memory PMEM.
22. The data processing device according to claim 21, characterized in that: The device also includes an external request forwarding module and an external request processing module; The external request forwarding module runs on the acceleration processor and is configured to forward the external request to the central processor when it is determined that the external request is not a read or write request; the central processor is connected to the acceleration processor via a high-speed serial bus; The external request processing module runs on the central processing unit and is configured to execute and process external requests that are not read or write requests.
23. The data processing device according to claim 21 or 22, characterized in that: The read-write operation execution module is further configured to execute and call the input and output interface of the memory to perform the read-write operation.
24. The data processing device according to claim 23, characterized in that: The read-write operation execution module is also configured to parse the header information of the network data packet to determine the request mode of the external request; when the external request is a query request, parse the network data packet to obtain the target key carried by the network data packet; obtain the corresponding value data from the storage address corresponding to the target key through the input and output interface; wherein the target key is used to identify the storage address information of the data.
25. The data processing device according to claim 24, characterized in that: The device also includes a target address determination module, which is configured to perform parsing of the target key according to a pre-agreed storage protocol to obtain a storage address corresponding to the target key; the storage protocol is a storage method of data in the memory.
26. The data processing device according to claim 23, characterized in that: The read-write operation execution module is also configured to parse the network data packet when the external request is an update request to obtain the key to be updated and the corresponding update data carried by the network data packet; the key to be updated and the corresponding update data are key-value data that need to be stored in the memory.
27. The data processing device according to claim 26, characterized in thatThe device also includes an update address determination module, which is configured to parse the key to be updated according to a pre-agreed storage protocol to obtain a storage address corresponding to the key to be updated; the storage protocol is a storage method of data in the memory.
28. The data processing device according to claim 27, characterized in that: The device also includes a status information acquisition module, which runs on the acceleration processor and is configured to execute acquisition of status information of the update data; the status information is used to indicate whether the update data is successfully written into the storage address corresponding to the key to be updated.
29. The data processing device according to claim 21, characterized in that: The device also includes a result network packet returning module, which runs on the acceleration processor and is configured to execute and return a network packet including a result of the read and write operation execution.
30. The data processing device according to claim 21, characterized in that: The acceleration processor has a dynamic random access memory, the memory and the dynamic random access memory have the same hardware interface, and the hardware interface is used to adapt to the acceleration processor.
31. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the data processing method according to any one of claims 11 to 20.
32. A computer-readable storage medium, when instructions in the computer-readable storage medium are executed by a processor of an electronic device, enables the electronic device to execute the data processing method according to any one of claims 11 to 20.
33. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the data processing method according to any one of claims 11 to 20 is implemented.
Citation Information
Patent Citations
Data reading and writing method and main board
CN105138469A
NVM block equipment driving method and system for accelerating file system read-write
CN107577492A
Method and apparatus for processing access requests in storage devices
CN109564502B
Data query method and system, heterogeneous computing acceleration platform and storage medium
CN111046072A
Method and system for status monitoring of acceleration kernels in storage device
CN111858228A
