Storage system, data processing method, device, electronic device and storage medium
By introducing accelerated processors and persistent memory into the data storage system to parse and search data, the problem of slow CPU response speed of the central processing unit is solved, and the query response speed and performance of the system are improved.
Patent Information
- Application Number
- CN202110423700.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-20
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2041-04-20
AI Technical Summary
In large-scale data storage query systems, the central processing unit (CPU) has a slow response speed when faced with a huge amount of requests due to limitations in computing efficiency.
The acceleration processor is combined with the central processing unit and connected to the persistent memory through a high-speed serial bus. The acceleration processor is responsible for parsing query requests and finding target data in the persistent memory, reducing the query burden on the central processor.
By accelerating the processor to complete the data query operation, the request delay is shortened, the response speed is improved, the query burden of the central processor is offloaded, and the system performance is improved.
Smart Images

Figure CN113157609B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a key-value storage system, a data processing method, a device, an electronic device, a storage medium, and a computer program product. Background Art
[0002] With the rise of big data and artificial intelligence, the efficient storage and processing of massive data has become a problem that needs to be solved urgently. The computing unit uses a central processing unit CPU, a graphics processing unit GPU, a dedicated integrated chip ASIC, etc., and the storage unit uses memory to achieve high-speed computing.
[0003] In the related art, in a large-scale data storage and query system, a data query request is generally received through a network port of a central processing unit, and then the central processing unit CPU performs a query in the memory and returns the queried data.
[0004] However, in the related art, due to the limitations of the computing efficiency of the central processing unit (CPU) itself and the huge amount of requests, there is a technical problem of slow response speed. Summary of the invention
[0005] The present disclosure provides a key-value storage system, a data processing method, an apparatus, an electronic device, a storage medium, and a computer program product to at least solve the problem of slow response speed of a central processing unit (CPU) when there is a huge amount of requests in the related art. The technical solution of the present disclosure is as follows:
[0006] According to a first aspect of an embodiment of the present disclosure, a key-value storage system is provided, the key-value storage system comprising a central processing unit and an acceleration processor, the acceleration processor being connected to the central processing unit via a high-speed serial bus;
[0007] The central processing unit is mounted with a persistent memory, the persistent memory is used to expand the storage capacity of the central processing unit, and the persistent memory is connected to the acceleration processor through a high-speed serial bus;
[0008] The acceleration processor is configured to execute a query request obtained through the acceleration processor network port, parse the query request, obtain a target key carried by the query request, access the persistent memory through the high-speed serial bus, search the persistent memory according to the target key, obtain target data, and return the target data, wherein the target key is used to identify storage address information of the data, and the target data is value data corresponding to the target key.
[0009] In one of the embodiments, the acceleration processor is further configured to execute according to a pre-agreed storage protocol, parse the target key, obtain a first storage address corresponding to the target key, access the persistent memory through the high-speed serial bus, and obtain the target data from the first storage address corresponding to the target key; the storage protocol is a storage method of data in the persistent memory.
[0010] In one of the embodiments, the central processing unit is configured to execute an acquisition update request and store the key to be updated and the corresponding update data carried in the update request into the persistent memory.
[0011] In one of the embodiments, the central processing unit is further configured to execute obtaining the update request through a central processing unit network port.
[0012] In one of the embodiments, the central processing unit is further configured to parse the key to be updated, obtain a second storage address of the update data in the persistent memory, and write the update data into the second storage address.
[0013] In one of the embodiments, the central processing unit is connected to the persistent memory via a memory bus;
[0014] The central processing unit is further configured to access the persistent memory through a memory bus and write the updated data into a second storage address of the persistent memory.
[0015] In one of the embodiments, the central processing unit further has a dynamic random access memory, and the dynamic random access memory and the persistent memory constitute a storage module;
[0016] The central processing unit is further configured to obtain statistical information of the storage module from the register of the acceleration processor, where the statistical information is information obtained by the acceleration processor performing statistics on data query operations.
[0017] According to a second aspect of an embodiment of the present disclosure, there is provided a data processing method, including:
[0018] Obtain query requests through the acceleration processor network port;
[0019] The acceleration processor parses the query request to obtain a target key carried by the query request; the target key is used to identify storage address information of the data;
[0020] The acceleration processor accesses the persistent memory through a high-speed serial bus, searches the persistent memory according to the target key, obtains the target data, and returns the target data;
[0021] Among them, the target data is the value data corresponding to the target key, the persistent memory is mounted on the central processing unit to expand the storage capacity of the central processing unit, and the persistent memory is connected to the acceleration processor through the high-speed serial bus.
[0022] In one embodiment, the acceleration processor accesses the persistent memory through a high-speed serial bus, searches the persistent memory according to the target key, and obtains the target data, including:
[0023] The acceleration processor parses the target key according to the pre-agreed storage protocol to obtain a first storage address corresponding to the target key; the storage protocol is a storage method of data in the persistent memory;
[0024] The acceleration processor accesses the persistent memory through the high-speed serial bus and obtains the target data from the first storage address corresponding to the target key.
[0025] In one embodiment, the method further comprises:
[0026] The central processing unit obtains an update request; the update request carries a key to be updated and corresponding update data;
[0027] The central processing unit stores the to-be-updated key and the corresponding update data in the persistent memory.
[0028] In one embodiment, the central processor obtains the update request, including:
[0029] The central processing unit obtains the update request through the central processing unit network port.
[0030] In one embodiment, storing the to-be-updated key and the corresponding update data in the persistent memory includes:
[0031] The central processing unit parses the key to be updated to obtain a second storage address of the update data in the persistent memory;
[0032] The central processing unit writes the update data into the second storage address.
[0033] In one embodiment, the central processing unit writes the update data into the second storage address, including:
[0034] The central processing unit accesses the persistent memory through a memory bus, and writes the updated data into a second storage address of the persistent memory.
[0035] In one embodiment, the central processing unit further has a dynamic random access memory, and the dynamic random access memory and the persistent memory constitute a storage module; the method further includes:
[0036] The central processing unit obtains statistical information of the storage module from the register of the acceleration processor, and the statistical information is information obtained by the acceleration processor performing statistics on data query operations.
[0037] According to a third aspect of an embodiment of the present disclosure, there is provided a data processing device, including:
[0038] A query request acquisition module is configured to execute and acquire a query request through an acceleration processor network port;
[0039] A query request parsing module, running on the acceleration processor, is configured to parse the query request to obtain a target key carried by the query request; the target key is used to identify storage address information of the data;
[0040] a target data search module, running on the acceleration processor, configured to access the persistent memory through the high-speed serial bus, search the persistent memory according to the target key, obtain the target data, and return the target data;
[0041] Among them, the target data is the value data corresponding to the target key, the persistent memory is mounted on the central processing unit to expand the storage capacity of the central processing unit, and the persistent memory is connected to the acceleration processor through the high-speed serial bus.
[0042] In one of the embodiments, the target data search module is further configured to execute a storage protocol of the data in the persistent memory, parse the target key, and obtain a first storage address corresponding to the target key; access the persistent memory through the high-speed serial bus, and obtain the target data from the first storage address corresponding to the target key.
[0043] In one embodiment, the data processing device further includes an update request acquisition module and an update data storage module; wherein:
[0044] The update request acquisition module runs on the central processing unit and is configured to execute and acquire an update request; the update request carries a key to be updated and corresponding update data;
[0045] The update data storage module runs on the central processing unit and is configured to store the to-be-updated key and the corresponding update data in the persistent memory.
[0046] In one of the embodiments, the update request acquisition module is further configured to execute acquisition of the update request through a central processing unit network port.
[0047] In one of the embodiments, the update data storage module is further configured to parse the key to be updated to obtain a second storage address of the update data in the persistent memory; and write the update data into the second storage address.
[0048] In one of the embodiments, the update data storage module is further configured to access the persistent memory through a memory bus and write the update data into a second storage address of the persistent memory.
[0049] In one embodiment, the central processing unit also has a dynamic random access memory, and the dynamic random access memory and the persistent memory constitute a storage module; the data processing device also includes a statistical information acquisition module, which runs on the central processing unit and is configured to execute the acquisition of statistical information of the storage module from the register of the acceleration processor, and the statistical information is information obtained by the acceleration processor through statistics of data query operations.
[0050] According to a fourth aspect of an embodiment of the present disclosure, there is provided an electronic device, including:
[0051] processor;
[0052] a memory for storing instructions executable by the processor;
[0053] 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.
[0054] 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 processing method described in any one of the embodiments of the second aspect.
[0055] 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.
[0056] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:
[0057] A persistent memory is mounted on the central processing unit, and the persistent memory is connected to the acceleration processor through a bus, and the query request is obtained through the network port of the acceleration processor; the acceleration processor parses the query request to obtain the target key carried in the query request; the acceleration processor accesses the persistent memory through a high-speed serial bus, searches the persistent memory according to the target key, obtains the target data corresponding to the target key, and returns the target data to the client. It can be seen that the data query operation in the present disclosure is completed by the acceleration processor, and obtaining an order of magnitude more query requests through the network port of the acceleration processor can not only shorten the request delay, but also improve the response speed.
[0058] 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
[0059] 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.
[0060] Figure 1a The diagram is a schematic diagram of the architecture of a key-value storage system according to an exemplary embodiment.
[0061] Figure 1b The invention is an application environment diagram of a data processing method according to an exemplary embodiment.
[0062] Figure 1c The diagram is a schematic diagram of the architecture of a key-value storage system according to an exemplary embodiment.
[0063] Figure 2 The invention is a flowchart of a data processing method according to an exemplary embodiment.
[0064] Figure 3 is a flowchart of step S230 according to an exemplary embodiment.
[0065] Figure 4 The invention is a flowchart of a data processing method according to an exemplary embodiment.
[0066] Figure 5 is a flowchart of step S420 according to an exemplary embodiment.
[0067] Figure 6 The invention is a flowchart of a data processing method according to an exemplary embodiment.
[0068] Figure 7a The invention is a flowchart of a data processing method according to an exemplary embodiment.
[0069] Figure 7bThe diagram is a schematic diagram of the architecture of a key-value storage system according to an exemplary embodiment.
[0070] Figure 8 It is a block diagram of a data processing device according to an exemplary embodiment.
[0071] Fig. 9 The figure is a diagram showing the internal structure of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0072] 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.
[0073] 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.
[0074] In related technologies, such as Figure 1aAs shown, the key-value storage system includes a central processing unit CPU and a memory (dynamic random access memory DRAM) of the central processing unit CPU. The central processing unit CPU is connected to the dynamic random access memory DRAM through a memory bus (Memory Bus), and the central processing unit network port (Network) is connected to the central processing unit CPU through a high-speed serial bus (Peripheral Component Interconnect Express, PCIe). In general, if a data query or data update task is to be performed, it is generally divided into a request acquisition stage, a data query stage, and a data sending stage. In a large-scale data storage and query system, first, a request (query request or update request) from the network is received through the central processing unit network port, and then the central processing unit CPU queries the corresponding return data from the dynamic random access memory DRAM, and finally the central processing unit CPU sends the return data obtained from the query through the central processing unit network port. It can be seen that both the request path and the reply path need to pass through the central processing unit network port, PCIe bus, central processing unit CPU, memory bus, and dynamic random access memory DRAM. That is, when executing data query or data update tasks, the central processing unit CPU is involved. However, as a general-purpose computing device, the central processing unit (CPU) also has to undertake operating system tasks such as system resource management. Therefore, there is a technical problem in the related technology that the response speed of data query is relatively slow.
[0075] The data processing method provided by the present disclosure can be applied to Figure 1b 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 key-value storage system. The key-value storage system may include 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 a chip (SoC), or a complex programmable logic device (CPLD). For example, Figure 1cAs shown, the key-value storage system includes a central processing unit CPU, a memory (dynamic random access memory DRAM) of the central processing unit CPU, an acceleration processor FPGA, and a memory (dynamic random access memory DRAM) of the acceleration processor FPGA. The acceleration processor FPGA is connected to the central processing unit CPU through a high-speed serial bus PCIe. The central processing unit CPU is also mounted with a persistent memory PMEM, which is connected to the central processing unit CPU through a memory bus. The persistent memory PMEM is used as the storage space of the central processing unit, which can expand the storage capacity of the central processing unit and provide a read function and a persistent write function. In order to unload the query load of the central processing unit CPU, a query request is obtained through the acceleration processor network port; the acceleration processor parses the query request to obtain the target key carried by the query request; the target key is used to identify the storage address information of the data; the acceleration processor accesses the persistent memory through a high-speed serial bus, searches in the persistent memory according to the target key, obtains the target data, and returns the target data; wherein the target data is the value data corresponding to the target key. It should be noted that the data processing method disclosed in the present invention can be used for KVS (Key-Value Store, key-value storage system, and can also be used for other distributed storage systems such as redis and memcached.
[0076] Figure 2 is a flow chart of a data processing method according to an exemplary embodiment. Figure 2 As shown, the data processing method is used in the server 120, comprising the following steps:
[0077] In step S210, a query request is obtained through the acceleration processor network port.
[0078] Among them, the server can adopt a heterogeneous server of a central processing unit CPU-accelerator processor architecture based on a high-speed serial bus. For example, a heterogeneous server is a server that uses a GPU, FPGA, ASIC and other processors together with a central processing unit CPU to form a server, and the GPU, FPGA, ASIC and other processors can be used as an acceleration processor. 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 a parallel manner in the computer bus, that is, the data is transmitted side by side, while in the physical cable of the network, the data is transmitted in a serial bit stream manner. The network port is responsible for the conversion between serial data and parallel data. The acceleration 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 acceleration processor. The query request is a request sent by the client to the server to perform a value data query operation on the server. For example, the query request can be a read request (GET request). The number of query requests can be one or more. The query request carries a target key, which is used to identify the storage address information of the data. The corresponding storage address can be accessed through the target key to obtain the corresponding value data. The query request may also carry the number of request keys (key_num), the key length (key_len) corresponding to the request key, etc. Specifically, the client sends the query request to the server through the network, and the server receives the query request through the acceleration processor network port.
[0079] In step S220, the acceleration processor parses the query request to obtain the target key carried in the query request.
[0080] The target key is used to identify the storage address information of the data. Specifically, the acceleration processor receives the query request through the acceleration processor network port, and then parses the received query request to obtain the target key carried by the query request from the query request.
[0081] In step S230, the acceleration processor accesses the persistent memory through the high-speed serial bus, searches the persistent memory according to the target key, obtains the target data, and returns the target data.
[0082] Among them, the bus is a communication trunk for transmitting information between the acceleration processor and the central processor, and the bus can be a PCIe (Peripheral Component Interconnect Express, a high-speed serial bus) bus. 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 central processor in the present disclosure is mounted with persistent memory, and the persistent memory is used to expand the storage capacity of the central processor, and provides a read function and a persistent write function, which can ensure that the stored content is not lost after power failure, which expands the application scenario of the key-value storage system from a continuous working scenario to a scenario that can be started and stopped at any time. Persistent memory is mounted on the central processor as the storage space of the central processor, used to expand the storage capacity of the central processor, and the persistent memory is connected to the acceleration processor via a high-speed serial bus. Key-value data is stored in the persistent memory, and the key-value data is data stored in a key-value manner. The key-value data can be key-value data. In the KVS storage system, a key is an index used to access data, and data is accessed data. In addition, the central processing unit itself has a storage unit, and the storage unit of the acceleration processor is a dynamic random access memory DRAM, and the dynamic random access memory DRAM can use a double data rate (Double Data Rate, DDR) memory. The target data is the value data corresponding to the target key.
[0083] Specifically, the acceleration processor is connected to the persistent memory through a high-speed serial bus. After the acceleration processor parses the target key from the query request, the acceleration processor accesses the persistent memory through the high-speed serial bus, and uses the target key to search the persistent memory for the existence of the target key. If the target key exists in the persistent memory, it indicates that the value data corresponding to the target key is stored in the persistent memory, then the value data corresponding to the target key is obtained from the persistent memory, and the obtained value data is returned to the client. For example, according to the target key key, the persistent memory PMEM is searched to obtain the value corresponding to the target key, and the target key and the value corresponding to the target key are repackaged to return the corresponding key-value pair (key-value) to the client.
[0084] In the above data processing method, a persistent memory is mounted on the central processing unit, and the persistent memory is connected to the acceleration processor through a high-speed serial bus, and the query request is obtained through the network port of the acceleration processor; the acceleration processor parses the query request to obtain the target key carried by the query request; the acceleration processor accesses the persistent memory through the high-speed serial bus, searches the persistent memory according to the target key, obtains the target data corresponding to the target key, and returns the target data to the client. It can be seen that the data query operation in the present disclosure is completed by the acceleration processor, and obtaining an order of magnitude more query requests through the network port of the acceleration processor can not only shorten the request delay and improve the response speed, but also completely unload the query burden of the central processing unit.
[0085] In an exemplary embodiment, if Figure 3 As shown, in step S230, the acceleration processor accesses the persistent memory through the high-speed serial bus, searches the persistent memory according to the target key, and obtains the target data, which can be specifically implemented by the following steps:
[0086] In step S310, the acceleration processor parses the target key according to the pre-agreed storage protocol to obtain a first storage address corresponding to the target key.
[0087] In step S320, the acceleration processor accesses the persistent memory through the high-speed serial bus and obtains the target data from the first storage address corresponding to the target key.
[0088] Among them, the storage protocol is the storage method of data in the persistent memory, and 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 in 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, 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 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 first storage address corresponding to the target key, and the data stored in the first storage address is the target data corresponding to the query request. Thus, the acceleration processor accesses the persistent memory through a high-speed serial bus and obtains the corresponding value data from the first storage address corresponding to the target key.
[0089] 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; thereby obtaining the corresponding value data from the storage address corresponding to the target key through the bus, so that the acceleration processor bears the load of data query, while the central processing unit can perform more other tasks, thereby improving the performance of the system.
[0090] In an exemplary embodiment, if Figure 4 As shown, the method further comprises the following steps:
[0091] In step S410, the CPU obtains an update request.
[0092] Among them, the update request is a request sent by the client to the server to perform a value data update operation on the server. For example, the update request can be a key-value write request (PUT request). The update request carries the key to be updated and the update data. The key to be updated is the request key (key) used to update the value data in the key-value storage system. Specifically, the client sends an update request to the server, and the server receives the update request through the central processing unit.
[0093] In step S420, the CPU stores the key to be updated and the corresponding update data in the persistent memory.
[0094] Specifically, the server receives an update request sent by the client, and the update request carries the key to be updated and the update data. The central processing unit searches in the persistent memory of the central processing unit according to the key to be updated, including 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, storing the key to be updated and the corresponding update data in the persistent memory includes the following two situations: when the key to be updated already exists in the persistent memory, the central processing unit uses the update data carried by the update request 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, the central processing unit inserts a new key value data in the persistent memory.
[0095] The above data processing method obtains the query request through the acceleration processor network port and obtains the update request through the central processing unit network port. The query burden of the central processing unit is unloaded, and the central processing unit can perform more other tasks, thereby improving the performance of the system. Further, the central processing unit obtains the update request and stores the key to be updated and the corresponding update data in the persistent memory. The data in the persistent memory of the central processing unit is updated to ensure that the data in the persistent memory is updated in a timely manner, thereby ensuring the accuracy of the query. It should be noted that in the embodiment of the present disclosure, the persistent memory PMEM is used as the storage element of the central processing unit CPU, the storage space of the central processing unit CPU is expanded, and the central processing unit CPU is used to perform the update operation, and the acceleration processor is used to perform the update operation. In addition, compared with the acceleration processor, the central processing unit CPU can implement complex processes and logic, and is more suitable for executing some control instructions that require more judgment jumps, such as the storage content needs to be updated according to time, or the invalid content is discarded, or the program is initialized; and the acceleration processor is more suitable for instruction tasks with relatively simple logic and high concurrency.
[0096] In an exemplary embodiment, the central processing unit obtains the update request, including: the central processing unit obtains the update request through a central processing unit network port.
[0097] As mentioned above, the key-value storage system provides key-based query operations (Get(Key)) and update operations (Put(Key,Value)). To perform an update operation, the caller needs to provide the key (Key) and data (Value) to the key-value storage system to write the data into the permanent memory of the central processing unit, and use the key as the index of the written data. To perform a query operation, the caller needs to provide the key to the key-value storage system, and the storage finds the data based on the key and returns the data to the caller. In general, the number of key-value query requests is greater than the number of key-value update requests, for example, the order of magnitude ratio of query requests to update requests is about 15:1, or higher.
[0098] Specifically, the acceleration processor is mainly responsible for accelerating query operations with a higher level, and the update operation can be performed by the central processing unit CPU. Therefore, the client sends an update request to the server, and the server receives the update request through the central processing unit network port.
[0099] In the above data processing method, more query requests are obtained through the acceleration processor network port, and update requests are obtained through the central processing unit network port. On the one hand, the query burden of the central processing unit is unloaded, and the central processing unit can perform more other tasks, thereby improving the performance of the system; on the other hand, obtaining more query requests through the acceleration processor network port can shorten the request delay and improve the response speed.
[0100] In an exemplary embodiment, if Figure 5 As shown, in step S420, the central processor stores the key to be updated and the corresponding update data in the persistent memory, which can be specifically implemented by the following steps:
[0101] In step S510, the central processing unit parses the key to be updated to obtain a second storage address of the update data in the persistent memory.
[0102] In step S520, the CPU writes the update data into the second storage address.
[0103] Among them, the storage protocol can be understood as a pre-agreed data storage method. 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 persistent memory needs to be stored according to the pre-agreed storage protocol, and the central processor parses the key to be updated according to the storage protocol to obtain the second storage address corresponding to the key to be updated. Thus, the central processor accesses the persistent memory mounted thereon and writes the updated data to the second storage address corresponding to the key to be updated. As mentioned above, it can be understood that searching in the persistent memory of the central 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, the central processor writes the updated data to the second storage address, including the following two situations: when the key to be updated already exists in the persistent memory, the historical value data corresponding to the key to be updated is overwritten with the updated data carried by the update request. When the key to be updated does not exist in the persistent memory, a new key value data is inserted into the persistent memory.
[0104] In the above data processing method, the central processing unit parses the key to be updated according to the storage protocol of the data in the persistent memory, obtains the second storage address corresponding to the key to be updated, and writes the update data into the second storage address corresponding to the key to be updated. This realizes updating the data in the persistent memory of the central processing unit, ensuring that the data in the persistent memory is updated in a timely manner, thereby ensuring the accuracy of the query.
[0105] In an exemplary embodiment, the central processing unit writes the update data into the second storage address, including: the central processing unit accesses the persistent memory through the memory bus, and writes the update data into the second storage address of the persistent memory.
[0106] Specifically, the CPU parses the key to be updated according to the storage protocol to obtain the second storage address corresponding to the key to be updated. Since the persistent memory is mounted on the CPU via the memory bus, the CPU accesses the persistent memory mounted thereon via the memory bus and writes the update data into the second storage address corresponding to the key to be updated.
[0107] In the above data processing method, the central processing unit accesses the persistent memory through the memory bus, writes the updated data into the second storage address of the persistent memory, and updates the data in the persistent memory, ensuring that the data in the persistent memory is updated in a timely manner, thereby ensuring the accuracy of the query.
[0108] In an exemplary embodiment, the central processing unit also has a dynamic random access memory, and the dynamic random access memory and the persistent memory constitute a storage module. The data processing method also includes: the central processing unit obtains statistical information of the storage system from the register of the acceleration processor.
[0109] Among them, statistical information is information obtained by the acceleration processor counting data query operations. Specifically, the acceleration processor performs data query operations, and the acceleration processor can record the number of data query operations in a specific register within it. The register of the acceleration processor can be understood as a channel for information exchange between the acceleration processor and the central processing unit. The acceleration processor can be triggered by writing trigger information in the register to trigger certain functions of the acceleration processor, and the current working status of the acceleration processor can also be obtained by reading the information in the register. For example, the acceleration processor performs some statistical information calculation tasks and stores the results in the register, and the central processing unit CPU reads the statistical information of the storage system from the register.
[0110] Furthermore, before the storage system starts working for the first time, the data processing method further includes: the central processing unit obtains storage status information of the storage system, and configures the storage space accessed by the acceleration processor according to the storage status information.
[0111] Specifically, the central processing unit can obtain a configuration file from a local computing device or a server connected to a network of the local computing device, and the configuration file stores the configuration information of the acceleration processor and the configuration information of the storage system. The acceleration processor is configured according to the configuration information read. The central processing unit can configure the accessible storage space for the acceleration processor according to the storage status of the dynamic random access memory and the persistent memory. In addition, the operation tasks that the acceleration processor needs to perform can also be configured, such as configuring the acceleration processor to perform data query operations and counting the performed data query operations.
[0112] In an exemplary embodiment, a central processing unit (CPU) is connected to an acceleration processor, the central processing unit (CPU) has a dynamic random access memory (DRAM) and a persistent memory (PMEM), and the acceleration processor has a dynamic random access memory (DRAM). The key-value data in the persistent memory (PMEM) can be cached in the dynamic random access memory (DRAM) of the acceleration processor, so that when executing a data query task, the key-value query request is obtained through the acceleration processor network port, and the acceleration processor can access its own dynamic random access memory (DRAM). Specifically, Figure 6 As shown, the data processing method also includes the following steps:
[0113] In step S602, the persistent memory mounted on the central processing unit is divided into a plurality of storage areas, and the number of access requests to each storage area is counted.
[0114] Specifically, a number of value data are stored in the persistent memory mounted on the CPU. 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.
[0115] In step S604, a preset number of storage areas are selected from high to low according to the number of access requests of each storage area.
[0116] Among the data in these storage areas, some storage areas have more access requests, while some storage areas have fewer access requests. The data with more access requests is the data to be cached (which can be considered as hot data, i.e., data that needs to be accessed frequently). The hot data in the persistent memory can be cached in the dynamic random access memory DRAM of the acceleration processor. Therefore, when the server receives the 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.
[0117] 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.
[0118] In step S606 , the CPU caches the data in the preset number of storage areas into the dynamic random access memory DRAM of the FPGA.
[0119] 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.
[0120] 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.
[0121] In step S608, the number of access requests for each storage area is counted regularly to obtain a new number of access requests for each storage area.
[0122] In step S610, it is determined that data in a storage area whose number of access requests meets a preset condition is new data to be cached.
[0123] In step S612, the data in the dynamic random access memory DRAM is updated using the new data to be cached.
[0124] 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 hot data. The acceleration processor caches the new hot data 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, using the new hot data to update the data in the dynamic random access memory DRAM of the acceleration processor.
[0125] In step S614, a query request is obtained through the acceleration processor network port.
[0126] 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.
[0127] In step S616, a query is made in the dynamic random access memory DRAM of the acceleration processor to determine whether the target key exists.
[0128] In step S618, 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.
[0129] 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 directly seeking the address, and the obtained value data is returned to the client.
[0130] In step S620, if the target key does not exist in the dynamic random access memory DRAM, the acceleration processor accesses the persistent memory mounted on the central processor to obtain the value data corresponding to the target key from the persistent memory.
[0131] 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 central processor. The acceleration processor accesses the persistent memory mounted on the central processor through the PCIe bus, 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.
[0132] 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 the new data to be cached, so as to update the data in the dynamic random access memory DRAM of the acceleration processor using the new data to be cached. It ensures that the data in the dynamic random access memory DRAM is the data to be cached, and avoids obtaining value data from the persistent memory PMEM through the acceleration processor to the greatest extent possible, further shortening the access delay and improving the overall performance of the system.
[0133] Figure 7a is a flow chart of a data processing method according to an exemplary embodiment. Figure 7b As shown, the central processing unit CPU is mounted with persistent memory PMEM and dynamic random access memory DRAM, and the dynamic random access memory and persistent memory constitute a storage module. The persistent memory PMEM is used to expand the storage capacity of the central processing unit CPU and provide read function and persistent write function. The persistent memory PMEM is connected to the central processing unit CPU through the memory bus, and the persistent memory PMEM is connected to the acceleration processor FPGA through the high-speed serial bus PCIe. The query request network packet is directly received through the network port of the acceleration processor, and the update request network packet is directly received through the network port of the central processing unit CPU. Specifically, the data processing method includes the following steps:
[0134] In step S702, a query request is obtained through the acceleration processor network port.
[0135] In step S704, the acceleration processor parses the query request to obtain the target key carried in the query request.
[0136] The target key is used to identify the storage address information of the data.
[0137] In step S706, the acceleration processor parses the target key according to the pre-agreed storage protocol to obtain a first storage address corresponding to the target key.
[0138] The storage protocol is a method of storing data in the persistent memory.
[0139] In step S708, the acceleration processor accesses the persistent memory through the high-speed serial bus and obtains the target data from the first storage address corresponding to the target key.
[0140] The target data is the value data corresponding to the target key.
[0141] In step S710, the CPU obtains an update request through the CPU network port.
[0142] The update request carries the key to be updated and the corresponding update data.
[0143] In step S712, the central processing unit parses the key to be updated to obtain a second storage address of the update data in the persistent memory.
[0144] In step S714, the central processing unit accesses the persistent memory through the memory bus and writes the updated data into the second storage address of the persistent memory.
[0145] In step S716, the central processing unit obtains statistical information of the storage system from the register of the acceleration processing unit. The statistical information is information obtained by the acceleration processing unit performing statistics on data query operations.
[0146] 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.
[0147] Figure 8 is a block diagram of a data processing device according to an exemplary embodiment. Figure 8 The device includes a query request acquisition module 810, a query request parsing module 820 and a target data search module 830.
[0148] The query request acquisition module 810 is configured to execute the query request acquisition through the acceleration processor network port;
[0149] The query request parsing module 820 runs on the acceleration processor and is configured to parse the query request to obtain a target key carried by the query request; the target key is used to identify storage address information of the data;
[0150] A target data search module 830, running on the acceleration processor, is configured to access the persistent memory through the high-speed serial bus, search the persistent memory according to the target key, obtain the target data, and return the target data;
[0151] The target data is the value data corresponding to the target key, the persistent memory is mounted on the central processing unit to expand the storage capacity of the central processing unit, and the persistent memory is connected to the acceleration processor via the high-speed serial bus.
[0152] In an exemplary embodiment, the target data search module is further configured to execute a storage protocol of the data in the persistent memory, parse the target key, and obtain a first storage address corresponding to the target key; access the persistent memory through the high-speed serial bus, and obtain the target data from the first storage address corresponding to the target key.
[0153] In an exemplary embodiment, the data processing device further includes an update request acquisition module and an update data storage module; wherein:
[0154] The update request acquisition module runs on the central processing unit and is configured to execute and acquire an update request; the update request carries a key to be updated and corresponding update data;
[0155] The update data storage module runs on the central processing unit and is configured to store the to-be-updated key and the corresponding update data in the persistent memory.
[0156] In an exemplary embodiment, the update request acquisition module is further configured to execute acquisition of the update request through the network port of the central processing unit.
[0157] In an exemplary embodiment, the update data storage module is further configured to perform parsing on the key to be updated to obtain a second storage address of the update data in the persistent memory; and the central processing unit writes the update data into the second storage address.
[0158] In an exemplary embodiment, the update data storage module is further configured to execute the central processor to access the persistent memory through a memory bus, and write the update data into a second storage address of the persistent memory.
[0159] In an exemplary embodiment, the central processing unit also has a dynamic random access memory, and the dynamic random access memory and the persistent memory constitute a storage module; the data processing device also includes a statistical information acquisition module, which runs on the central processing unit and is also configured to execute the acquisition of statistical information of the storage system from the register of the acceleration processor, and the statistical information is information obtained by the acceleration processor performing statistics on data query operations.
[0160] 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.
[0161] In an exemplary embodiment, the present disclosure also provides a key-value storage system, which includes a central processing unit and an acceleration processor, and the acceleration processor is connected to the central processing unit via a bus; the central processing unit is mounted with a persistent memory, and the persistent memory is used to expand the storage capacity of the central processing unit, and the persistent memory is connected to the acceleration processor via a high-speed serial bus; the acceleration processor is configured to execute a query request obtained through a network port of the acceleration processor, parse the query request, obtain a target key carried by the query request, and access the persistent memory through the high-speed serial bus, search the persistent memory according to the target key, obtain target data, and return the target data, the target key is used to identify the storage address information of the data, and the target data is the value data corresponding to the target key.
[0162] In an exemplary embodiment, the acceleration processor is further configured to execute according to a pre-agreed storage protocol, parse the target key, obtain a first storage address corresponding to the target key, access the persistent memory through the high-speed serial bus, and obtain the target data from the first storage address corresponding to the target key; the storage protocol is a storage method of data in the persistent memory.
[0163] In an exemplary embodiment, the central processing unit is configured to execute an acquisition update request, and store the to-be-updated key and the corresponding update data carried in the update request into the persistent memory.
[0164] In an exemplary embodiment, the central processing unit is further configured to execute obtaining the update request through a central processing unit network port.
[0165] In an exemplary embodiment, the central processing unit is further configured to parse the key to be updated, obtain a second storage address of the update data in the persistent memory, and write the update data into the second storage address.
[0166] In an exemplary embodiment, the central processing unit is connected to the persistent memory via a memory bus. The central processing unit is further configured to access the persistent memory via the memory bus and write the updated data into a second storage address of the persistent memory.
[0167] In an exemplary embodiment, the central processor further has a dynamic random access memory, and the dynamic random access memory and the persistent memory constitute a storage module. The central processor is further configured to obtain statistical information of the storage module from the register of the acceleration processor, and the statistical information is information obtained by the acceleration processor performing statistics on data query operations.
[0168] Regarding the key-value storage system in the above embodiment, the specific manner in which the acceleration processor, central processing unit and other components perform operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0169] Fig. 9 is a block diagram of a device 900 for data processing according to an exemplary embodiment. For example, the device 900 may be a server. Fig. 9 , the device 900 includes a processing component 920, which further includes one or more processors, and a memory resource represented by a memory 922 for storing instructions that can be executed by the processing component 920, such as an application. The application stored in the memory 922 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 920 is configured to execute instructions to perform the above-mentioned data processing method.
[0170] The device 900 may also include a power component 924 configured to perform power management of the device 900, a wired or wireless network interface 926 configured to connect the device 900 to a network, and an input / output (I / O) interface 928. The device 900 may operate based on an operating system stored in the memory 922, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, or the like.
[0171] In an exemplary embodiment, a storage medium including instructions is also provided, such as a memory 922 including instructions, which can be executed by a processor of the device 900 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.
[0172] In an exemplary embodiment, a computer program product is also provided, including a computer program, and when the computer program is executed by a processor, the above-mentioned data processing method is implemented.
[0173] 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.
[0174] 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 key-value storage system, characterized in that: The key-value storage system includes a central processing unit and an acceleration processor, wherein the acceleration processor is connected to the central processing unit via a high-speed serial bus; The central processing unit is mounted with a persistent memory, the persistent memory is used to expand the storage capacity of the central processing unit, and the persistent memory is connected to the acceleration processor through a high-speed serial bus; The acceleration processor is configured to execute a query request obtained through the acceleration processor network port, parse the query request, obtain a target key carried by the query request, access the persistent memory through the high-speed serial bus, search the persistent memory according to the target key, obtain target data, and return the target data, wherein the target key is used to identify storage address information of the data, and the target data is value data corresponding to the target key; The central processing unit is configured to execute an acquisition update request, and store the to-be-updated key and the corresponding update data carried in the update request into the persistent memory; The central processing unit also has a dynamic random access memory, and the central processing unit is also configured to: before the key-value storage system starts working for the first time, the central processing unit obtains the storage status of the dynamic random access memory and the persistent memory, and configures the storage space accessed by the acceleration processor according to the storage status.
2. The key-value storage system according to claim 1, characterized in that: The acceleration processor is further configured to execute, according to a pre-agreed storage protocol, to parse the target key, obtain a first storage address corresponding to the target key, access the persistent memory through the high-speed serial bus, and obtain the target data from the first storage address corresponding to the target key; The storage protocol is the way data is stored in the persistent memory.
3. The key-value storage system according to claim 1, characterized in that: The central processing unit is further configured to execute acquiring the update request through the central processing unit network port.
4. The key-value storage system according to claim 3, characterized in that: The central processing unit is further configured to parse the key to be updated, obtain a second storage address of the update data in the persistent memory, and write the update data into the second storage address.
5. The key-value storage system according to claim 4, characterized in that: The central processing unit is connected to the persistent memory via a memory bus; The central processing unit is further configured to access the persistent memory through a memory bus and write the updated data into a second storage address of the persistent memory.
6. The key-value storage system according to any one of claims 1 to 5, characterized in that: The dynamic random access memory and the persistent memory constitute a storage module; The central processing unit is further configured to obtain statistical information of the storage module from the register of the acceleration processor, where the statistical information is information obtained by the acceleration processor performing statistics on data query operations.
7. A data processing method, characterized in that: include: Obtain query requests through the acceleration processor network port; The acceleration processor parses the query request to obtain a target key carried in the query request; The target key is used to identify the storage address information of the data; The acceleration processor accesses the persistent memory through a high-speed serial bus, searches the persistent memory according to the target key, obtains the target data, and returns the target data; The target data is the value data corresponding to the target key, the persistent memory is mounted on the central processing unit to expand the storage capacity of the central processing unit, and the persistent memory is connected to the acceleration processor through the high-speed serial bus; The central processor obtains an update request; the update request carries a key to be updated and corresponding update data; the central processor stores the key to be updated and the corresponding update data in the persistent memory; The central processing unit also has a dynamic random access memory. Before obtaining the query request through the acceleration processor network port, the central processing unit obtains the storage status of the dynamic random access memory and the persistent memory, and configures the storage space accessed by the acceleration processor according to the storage status.
8. The data processing method according to claim 7, characterized in that: The acceleration processor accesses the persistent memory through a high-speed serial bus, searches the persistent memory according to the target key, and obtains the target data, including: The acceleration processor parses the target key according to a pre-agreed storage protocol to obtain a first storage address corresponding to the target key; the storage protocol is a storage method of data in the persistent memory; The acceleration processor accesses the persistent memory through the high-speed serial bus and obtains the target data from the first storage address corresponding to the target key.
9. The data processing method according to claim 7, characterized in that: The central processing unit obtains an update request, including: The central processing unit obtains the update request through the central processing unit network port.
10. The data processing method according to claim 9, characterized in that: The storing the to-be-updated key and the corresponding update data in the persistent memory comprises: The central processing unit parses the key to be updated to obtain a second storage address of the update data in the persistent memory; The central processing unit writes the update data into the second storage address.
11. The data processing method according to claim 10, characterized in that: The central processing unit writes the update data into the second storage address, comprising: The central processing unit accesses the persistent memory through a memory bus, and writes the updated data into a second storage address of the persistent memory.
12. The data processing method according to any one of claims 7 to 11, characterized in that: The dynamic random access memory and the persistent memory constitute a storage module; the method further comprises: The central processing unit obtains statistical information of the storage module from the register of the acceleration processor, and the statistical information is information obtained by the acceleration processor performing statistics on data query operations.
13. A data processing device, characterized in that: include: A query request acquisition module is configured to execute and acquire a query request through an acceleration processor network port; A query request parsing module, running on the acceleration processor, is configured to parse the query request to obtain a target key carried by the query request; The target key is used to identify the storage address information of the data; a target data search module, running on the acceleration processor, configured to access the persistent memory through the high-speed serial bus, search the persistent memory according to the target key, obtain the target data, and return the target data; The target data is the value data corresponding to the target key, the persistent memory is mounted on the central processing unit to expand the storage capacity of the central processing unit, and the persistent memory is connected to the acceleration processor through the high-speed serial bus; The data processing device further includes an update request acquisition module, an update data storage module and a storage space configuration module; wherein: The update request acquisition module runs on the central processing unit and is configured to execute and acquire an update request; the update request carries a key to be updated and corresponding update data; The update data storage module, running on the central processing unit, is configured to execute the storage of the to-be-updated key and the corresponding update data in the persistent memory; The storage space configuration module runs on the central processing unit, and the central processing unit also has a dynamic random access memory. Before the query request acquisition module obtains the query request through the acceleration processor network port, the storage space configuration module is configured to execute the acquisition of the storage status of the dynamic random access memory and the persistent memory, and configure the storage space accessed by the acceleration processor according to the storage status.
14. The data processing device according to claim 13, characterized in that: The target data search module is further configured to execute, according to a storage protocol of the data in the persistent memory, parsing the target key to obtain a first storage address corresponding to the target key; The persistent memory is accessed through the high-speed serial bus, and the target data is obtained from a first storage address corresponding to the target key.
15. The data processing device according to claim 13, characterized in that: The update request acquisition module is further configured to execute acquisition of the update request through the network port of the central processing unit.
16. The data processing device according to claim 15, characterized in that: The update data storage module is further configured to parse the key to be updated to obtain a second storage address of the update data in the persistent memory; and write the update data into the second storage address.
17. The data processing device according to claim 15, characterized in that: The update data storage module is further configured to access the persistent memory through a memory bus and write the update data into a second storage address of the persistent memory.
18. The data processing device according to any one of claims 13 to 17, characterized in that: The central processing unit also has a dynamic random access memory, and the dynamic random access memory and the persistent memory constitute a storage module; the data processing device also includes a statistical information acquisition module, which runs on the central processing unit and is configured to execute the acquisition of statistical information of the storage module from the register of the acceleration processor, and the statistical information is information obtained by the acceleration processor performing statistics on data query operations.
19. 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 7 to 12.
20. A storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the data processing method as claimed in any one of claims 7 to 12.
21. 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 7 to 12 is implemented.
Citation Information
Patent Citations
Content searching chip based on interconnecting bus of periphery part and system
CN103034602A
Protocol key value obtaining method, device and system
CN107172039A
Method for simultaneous execution of two input events, and computer storage medium
CN109173238A
Embedded system administration
US20050060567A1
