A database heterogeneous acceleration kernel configuration system based on FPGA

By using the core modeling pre-allocation and optimized configuration algorithm of FPGA chips and PCIe interfaces in the database query system, the optimal core pipeline is generated, which solves the problems of insufficient resources and insufficient kernel optimization in high-concurrency query tasks in the existing technology, and achieves Efficient database query acceleration.

CN118377750BActive Publication Date: 2024-10-01SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410822550.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-10-01
Estimated Expiration
2044-06-25

AI Technical Summary

Technical Problem

Existing database query acceleration solutions are interrupted in high-concurrency query tasks due to overly complex kernel pipeline integration and insufficient resources. They also lack a kernel optimization configuration strategy, affecting query efficiency and resource utilization.

Method used

Design a database heterogeneous acceleration kernel configuration system based on FPGA. Through the database master control server and FPGA query acceleration device, the PCIe interface and DDR4 memory are used to generate the optimal kernel pipeline using kernel modeling pre-allocation and optimization configuration algorithms. Optimize FPGA chip resource usage, reduce the number of cores and improve query efficiency.

Benefits of technology

It significantly reduces FPGA chip resource consumption, improves the processing efficiency of highly concurrent query tasks, realizes the most efficient and reasonable solution for database queries, and improves query acceleration efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118377750B_ABST
    Figure CN118377750B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of database configuration, and in particular to a database heterogeneous acceleration kernel configuration system based on FPGA. The database heterogeneous acceleration kernel configuration system based on FPGA includes a database master control server and a database query acceleration device based on FPGA. The database master control server is responsible for reading the data to be processed according to the query instruction, and sending it to the database query acceleration device based on FPGA through the PCIe interface; the database query acceleration device based on FPGA is responsible for kernel configuration of the FPGA chip, generating the optimal kernel pipeline, and executing the data query task. The database heterogeneous acceleration kernel configuration system based on FPGA is simple, convenient, and low-cost. It significantly reduces the number of on-chip acceleration kernels used in the FPGA chip, reduces the resource loss of the FPGA chip, and further improves the heterogeneous acceleration processing efficiency of high-concurrency query tasks in a single period.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of database configuration, and in particular to a database heterogeneous acceleration kernel configuration system based on FPGA. Background Art

[0002] With the continuous advancement of artificial intelligence and the information society, the types and installed capacity of databases in various industries are increasing day by day, and the application design for heterogeneous query acceleration of databases is also increasing. For example, FPGA (Field Programmable Gate Array, Field Programmable Gate Array, FPGA for short) chips are used to offload complex data query processing tasks that should be performed by the central processing unit (CPU), reduce the CPU load, and thus optimize the database query performance.

[0003] At present, since database queries involve complex query primitives and massive data exchanges, the implementation of heterogeneous acceleration kernels usually consumes a lot of on-chip resources of FPGA chips. When faced with high-concurrency query tasks in a single period, heterogeneous queries often cause interruptions and affect concurrent query efficiency due to the overly complex query kernel pipeline integration and insufficient on-chip resources. In addition, database queries often require multiple different kernels to cooperate and execute together. The existing mainstream heterogeneous database query acceleration strategies usually do not include kernel optimization configuration strategies, and cannot generate optimal kernel pipelines through kernel configuration algorithms, which in turn causes additional query cycles and affects database query processing efficiency.

[0004] Aiming at the key problems of low efficiency and high resource loss rate in the query operation process of the current mainstream heterogeneous database query acceleration solutions, the present invention proposes a database heterogeneous acceleration kernel configuration system based on FPGA. Summary of the invention

[0005] In order to overcome the defects of the prior art, the present invention provides a simple and efficient FPGA-based database heterogeneous acceleration kernel configuration system.

[0006] The present invention is achieved through the following technical solutions:

[0007] A database heterogeneous acceleration kernel configuration system based on FPGA, characterized in that: it comprises a database master control server and a database query acceleration device based on FPGA, wherein the database master control server is connected to the database query acceleration device based on FPGA through a PCIe (Peripheral Component Interconnect Express, i.e., a high-speed serial computer expansion bus standard, referred to as PCIe) interface;

[0008] The database master control server serves as the database function core, and is connected to the database user terminal, including a central processing unit (CPU) and a database memory. The central processing unit (CPU) is responsible for reading the data to be processed from the corresponding database memory address after receiving the user's query instruction, and packaging the read data to be processed and the query instruction through the PCIe interface and sending them to the FPGA-based database query acceleration device.

[0009] The FPGA-based database query acceleration device includes an FPGA chip (the FPGA chip deploys all the cores required to execute the database heterogeneous acceleration core configuration), a DDR4 (Double Data Rate Fourth SDRAM) memory, a JTAG (Joint Test Action Group) interface, a clock crystal oscillator module, a power input module, a reset module and a touch panel;

[0010] The user uses the touch panel to input the types and numbers of all query acceleration cores covered by the current FPGA chip into the FPGA chip;

[0011] The FPGA chip is responsible for performing kernel configuration on the FPGA chip through kernel modeling pre-allocation and kernel optimization configuration algorithm after receiving the query instruction, generating the optimal kernel pipeline, and then executing the data query task corresponding to the query instruction; finally, the FPGA chip packages the query results and sends them to the database master control server through the PCIe interface, and sends a transmission completion signal to the central processing unit CPU after completion.

[0012] The FPGA chip consists of two parts: a database query kernel configuration partition and a database query processing partition; in addition, the FPGA chip is also deployed with a PCIe receiving module, a PCIe sending module and a signal conversion module;

[0013] The database query kernel configuration partition is used to parse query instructions, pre-allocate the initial pipeline through kernel modeling, extract query data information, store the FPGA kernel and parameters required for database query processing, and use the kernel optimization configuration algorithm to perform kernel optimization and reconstruction on the initial pipeline to generate the optimal kernel pipeline;

[0014] The database query processing partition is used to execute the query processing operation, send the processing result to the database server terminal, and complete a single database query operation.

[0015] Among them, the database query kernel configuration partition includes a query instruction parsing module, a kernel modeling pre-allocation module, a database query kernel optimization configuration algorithm module, a query data information extraction module, a database query acceleration kernel warehouse, a proposed call kernel structure optimization module and a DDR4 reading module;

[0016] The database query acceleration kernel warehouse is used to store various FPGA kernels required for database query processing, including sorting kernels, filtering kernels, aggregation kernels and connection kernels; the number and type of each kernel are customized by the user according to the total amount of on-chip resources and requirements of the FPGA chip, and the kernels can be mobilized and applied at will.

[0017] The database query processing partition includes a query data format conversion module, a FIFO register module and a database query acceleration pipeline module. The database query acceleration pipeline is composed of a plurality of database query acceleration cores after optimized configuration.

[0018] When a database query task is generated, the PCIe receiving module is responsible for receiving the query instruction from the server and the data to be processed involved in the query, and sending the query instruction to the query instruction parsing module, and sending the data to be processed involved in the query to the query data information extraction module and the query data format conversion module respectively;

[0019] The query instruction parsing module is responsible for decomposing the database query operations (such as sorting, aggregation, filtering, merging, joining, etc.) involved in the current query instruction and confirming the number of various types of cores required to implement the database query operation, and sending the required core type code and the corresponding number code to the core modeling pre-allocation module and the database query core optimization configuration algorithm module;

[0020] The signal conversion module is responsible for sending the total number of codes of all query acceleration kernel types and numbers (total amount that can be allocated) to the kernel modeling pre-allocation module and the database query kernel optimization configuration algorithm module;

[0021] The kernel modeling pre-allocation module is responsible for judging whether the total amount of various kernels meets the application requirements based on the total number of all query acceleration kernel types and number codes (total amount that can be allocated) transmitted by the signal conversion module, and the kernel type codes and corresponding number codes (total amount required) required for the current database query operation transmitted by the query instruction parsing module:

[0022] If the application requirements are not met, the information that the application requirements are not met is sent to the central processing unit CPU;

[0023] If the application requirements are met, pre-modeling is performed to determine the location of the required kernel in the kernel warehouse, call it, and form a preliminary pipeline for the called kernel;

[0024] The query data information extraction module is responsible for extracting the quantity information of the received data to be processed, including the number of entries and the column width, and packaging the extracted quantity information and sending it to the database query kernel optimization configuration algorithm module;

[0025] The DDR4 reading module is responsible for reading the preset parameters required for executing the kernel optimization configuration algorithm from the DDR4 memory, and packaging and sending them to the database to query the kernel optimization configuration algorithm module;

[0026] The database query kernel optimization configuration algorithm module is responsible for querying and processing various pre-allocated kernel quantity parameters, algorithm preset parameters, quantity information parameters of the data to be processed and FPGA clock frequency parameters according to the input query demand parameters, executing the kernel optimization configuration algorithm to form the optimal kernel integration plan, and sending the kernel optimization integration plan to the kernel structure optimization module to be called;

[0027] The kernel structure optimization module to be called is responsible for calling the kernel from the database query acceleration kernel warehouse according to the kernel optimization integration solution, performing kernel optimization and reconstruction on the preliminary pipeline, generating the optimal kernel pipeline, and sending it to the database query acceleration pipeline module of the database query processing partition.

[0028] The query data format conversion module is responsible for performing format conversion and column splitting operations on the received data to be processed, and adding head and tail marks to each column of data to facilitate processing by the database query acceleration pipeline module; and then sending the query data format conversion result to the database query acceleration pipeline module;

[0029] The database query acceleration pipeline module is responsible for executing the user's corresponding query processing operation on the data to be processed, sending the processing result to the FIFO register module, and sending the heterogeneous acceleration processing result to the database server terminal through the PCIe sending module to complete a single database query operation.

[0030] When the database query kernel optimization configuration algorithm module executes the kernel optimization configuration algorithm to form the optimal kernel integration solution, all kernel pipeline solutions that implement the database query function are first listed; then, the longest kernel pipeline path of each solution is traversed in parallel; then, the maximum time consumption of the longest kernel pipeline path of each solution is calculated in parallel, and the kernel pipeline solutions are arbitrated according to the calculation results of the longest path of each solution, and the kernel pipeline solution with the shortest time consumption is selected; finally, the selected kernel pipeline solution is secondary optimized, including kernel integration and simplification, to obtain the optimal kernel pipeline, and output it.

[0031] The database query kernel optimization configuration algorithm module uses the kernel optimization configuration algorithm to calculate the maximum time consumption of the longest kernel pipeline path N , the calculation formula is as follows:

[0032]

[0033] Among them, n is the longest path kernel sequence number, is the time consumption of each core pipeline path, and the calculation formula is as follows:

[0034]

[0035] When there is only one kernel in the kernel pipeline path, that is, n is equal to 1, the time consumption of the kernel pipeline path is calculated as follows:

[0036]

[0037] When there are only two cores in the core pipeline path, that is, n is equal to 2, the time consumption of the core pipeline path is calculated as follows:

[0038]

[0039] Where, f is the main frequency coefficient of the FPGA chip; is the total amount of data; The width of each row of data (bit); The data processing coefficient of the kernel is set by the user. It is an integer greater than 0 and is stored in the DDR4 memory. The data processing coefficients of the same kernel are the same. It is the data loss coefficient of the core, which is set by the user and stored in the DDR4 memory. The data loss coefficients of the same cores are the same.

[0040] The beneficial effects of the present invention are as follows: the FPGA-based database heterogeneous acceleration kernel configuration system is simple, convenient, easy to develop, and low-cost. It significantly reduces the number of on-chip acceleration kernels used by the FPGA chip, reduces the resource loss of the FPGA chip, and further improves the heterogeneous acceleration processing efficiency of high-concurrency query tasks in a single period of time, thereby realizing the most efficient and reasonable solution for database query, which can enable database query to achieve better acceleration efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0042] Attached Figure 1 The schematic diagram of the system architecture of the FPGA-based database heterogeneous acceleration kernel configuration of the present invention.

[0043] Attached Figure 2 This is a schematic diagram of the FPGA module architecture of the database heterogeneous acceleration kernel configuration solution of the present invention.

[0044] Attached Figure 3 This is a schematic diagram of the database kernel optimization configuration process of the present invention.

[0045] Attached Figure 4 This is a schematic diagram of an example of the longest core pipeline path of the present invention. DETAILED DESCRIPTION

[0046] In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0047] As attached Figure 1 As shown, the FPGA-based database heterogeneous acceleration kernel configuration system includes a database master control server and an FPGA-based database query acceleration device, wherein the database master control server is connected to the FPGA-based database query acceleration device via a PCIe (Peripheral Component Interconnect Express, i.e., a high-speed serial computer expansion bus standard, referred to as PCIe) interface;

[0048] The database master control server serves as the database function core, and is connected to the database user terminal, including a central processing unit (CPU) and a database memory. The central processing unit (CPU) is responsible for reading the data to be processed from the corresponding database memory address after receiving the user's query instruction, and packaging the read data to be processed and the query instruction through the PCIe interface and sending them to the FPGA-based database query acceleration device.

[0049] The FPGA-based database query acceleration device includes an FPGA chip (the FPGA chip deploys all the cores required to execute the database heterogeneous acceleration core configuration), a DDR4 (Double Data Rate Fourth SDRAM) memory, a JTAG (Joint Test Action Group) interface, a clock crystal oscillator module, a power input module, a reset module and a touch panel;

[0050] The user uses the touch panel to input the types and numbers of all query acceleration cores covered by the current FPGA chip into the FPGA chip;

[0051] The FPGA chip is responsible for performing kernel configuration on the FPGA chip through kernel modeling pre-allocation and kernel optimization configuration algorithm after receiving the query instruction, generating the optimal kernel pipeline, and then executing the data query task corresponding to the query instruction; finally, the FPGA chip packages the query results and sends them to the database master control server through the PCIe interface, and sends a transmission completion signal to the central processing unit CPU after completion.

[0052] As attached Figure 2 As shown, the FPGA chip consists of two parts: a database query kernel configuration partition and a database query processing partition; in addition, the FPGA chip is also deployed with a PCIe receiving module, a PCIe sending module and a signal conversion module;

[0053] The database query kernel configuration partition is used to parse query instructions, pre-allocate the initial pipeline through kernel modeling, extract query data information, store the FPGA kernel and parameters required for database query processing, and use the kernel optimization configuration algorithm to perform kernel optimization and reconstruction on the initial pipeline to generate the optimal kernel pipeline;

[0054] The database query processing partition is used to execute the query processing operation, send the processing result to the database server terminal, and complete a single database query operation.

[0055] Among them, the database query kernel configuration partition includes a query instruction parsing module, a kernel modeling pre-allocation module, a database query kernel optimization configuration algorithm module, a query data information extraction module, a database query acceleration kernel warehouse, a proposed call kernel structure optimization module and a DDR4 reading module;

[0056] The database query acceleration kernel warehouse is used to store various FPGA kernels required for database query processing, including sorting kernels, filtering kernels, aggregation kernels and connection kernels; the number and type of each kernel are customized by the user according to the total amount of on-chip resources and requirements of the FPGA chip, and the kernels can be mobilized and applied at will.

[0057] The database query processing partition includes a query data format conversion module, a FIFO (First In, First Out, FIFO for short) register module and a database query acceleration pipeline module. The database query acceleration pipeline is composed of a number of database query acceleration cores after optimized configuration.

[0058] When a database query task is generated, the PCIe receiving module is responsible for receiving the query instruction from the server and the data to be processed involved in the query, and sending the query instruction to the query instruction parsing module, and sending the data to be processed involved in the query to the query data information extraction module and the query data format conversion module respectively;

[0059] The query instruction parsing module is responsible for decomposing the database query operations (such as sorting, aggregation, filtering, merging, joining, etc.) involved in the current query instruction and confirming the number of various types of cores required to implement the database query operation, and sending the required core type code and the corresponding number code to the core modeling pre-allocation module and the database query core optimization configuration algorithm module;

[0060] The signal conversion module is responsible for sending the total number of codes of all query acceleration kernel types and numbers (total amount that can be allocated) to the kernel modeling pre-allocation module and the database query kernel optimization configuration algorithm module;

[0061] The kernel modeling pre-allocation module is responsible for judging whether the total amount of various kernels meets the application requirements based on the total number of all query acceleration kernel types and number codes (total amount that can be allocated) transmitted by the signal conversion module, and the kernel type codes and corresponding number codes (total amount required) required for the current database query operation transmitted by the query instruction parsing module:

[0062] If the application requirements are not met, the information that the application requirements are not met is sent to the central processing unit CPU;

[0063] If the application requirements are met, pre-modeling is performed to determine the location of the required kernel in the kernel warehouse, call it, and form a preliminary pipeline for the called kernel (this pipeline is not the optimal processing pipeline and its structure needs to be further optimized and configured);

[0064] The query data information extraction module is responsible for extracting the quantity information of the received data to be processed, including the number of entries and the column width, and packaging the extracted quantity information and sending it to the database query kernel optimization configuration algorithm module;

[0065] The DDR4 reading module is responsible for reading the preset parameters required for executing the kernel optimization configuration algorithm from the DDR4 memory, and packaging and sending them to the database to query the kernel optimization configuration algorithm module;

[0066] The database query kernel optimization configuration algorithm module is responsible for querying and processing various pre-allocated kernel quantity parameters, algorithm preset parameters, quantity information parameters of the data to be processed and FPGA clock frequency parameters according to the input query demand parameters, executing the kernel optimization configuration algorithm to form the optimal kernel integration plan, and sending the kernel optimization integration plan to the kernel structure optimization module to be called;

[0067] The kernel structure optimization module to be called is responsible for calling the kernel from the database query acceleration kernel warehouse according to the kernel optimization integration solution, performing kernel optimization and reconstruction on the preliminary pipeline, generating the optimal kernel pipeline, and sending it to the database query acceleration pipeline module of the database query processing partition.

[0068] The query data format conversion module is responsible for performing format conversion and column splitting operations on the received data to be processed, and adding head and tail marks to each column of data to facilitate processing by the database query acceleration pipeline module; and then sending the query data format conversion result to the database query acceleration pipeline module;

[0069] The database query acceleration pipeline module is responsible for executing the user's corresponding query processing operation on the data to be processed, sending the processing result to the FIFO register module, and sending the heterogeneous acceleration processing result to the database server terminal through the PCIe sending module to complete a single database query operation.

[0070] When the database query kernel optimization configuration algorithm module executes the kernel optimization configuration algorithm to form the optimal kernel integration solution, it first lists all the kernel pipeline solutions (see Appendix) that realize the database query function. Figure 3 Then, the longest kernel pipeline path of each solution is traversed in parallel. The longest kernel pipeline path is as follows: Figure 4 As shown; then, the maximum time consumption of the longest kernel pipeline path of each solution is calculated in parallel, and the kernel pipeline solutions are arbitrated according to the calculation results of the longest path of each solution, and the kernel pipeline solution with the shortest time consumption is selected; finally, the selected kernel pipeline solution is optimized twice, including kernel integration and simplification, to obtain the optimal kernel pipeline and output it.

[0071] The database query kernel optimization configuration algorithm module uses the kernel optimization configuration algorithm to calculate the maximum time consumption of the longest kernel pipeline path N , the calculation formula is as follows:

[0072]

[0073] Among them, n is the longest path kernel sequence number, is the time consumption of each core pipeline path, and the calculation formula is as follows:

[0074]

[0075] When there is only one kernel in the kernel pipeline path, that is, n is equal to 1, the time consumption of the kernel pipeline path is calculated as follows:

[0076]

[0077] When there are only two cores in the core pipeline path, that is, n is equal to 2, the time consumption of the core pipeline path is calculated as follows:

[0078]

[0079] Where, f is the main frequency coefficient of the FPGA chip; is the total amount of data; The width of each row of data (bit); The data processing coefficient of the kernel is set by the user. It is an integer greater than 0 and is stored in the DDR4 memory. The data processing coefficients of the same kernel are the same. It is the data loss coefficient of the core, which is set by the user and stored in the DDR4 memory. The data loss coefficients of the same cores are the same.

[0080] Attach Figure 4 For example, the longest path is A1, B1, C1, D1 to E1, then , a total of five types of kernels.

[0081] Compared with the existing technology, the FPGA-based database heterogeneous acceleration kernel configuration system has the following features:

[0082] First, we use kernel modeling pre-allocation and kernel optimization configuration algorithms to collaboratively implement FPGA-based database heterogeneous acceleration kernel configuration strategies. Through collaboration between partitions, we form the optimal pipeline for database query acceleration, thereby realizing the most efficient and reasonable solution for database query, which can achieve better acceleration efficiency for database query.

[0083] It can significantly reduce the number of on-chip acceleration cores used in the FPGA, reduce FPGA resource loss, and further improve the heterogeneous acceleration processing efficiency of high-concurrency query tasks in a single period of time.

[0084] The FPGA-based database heterogeneous acceleration kernel configuration method is simple and convenient to use, easy to develop, and low-cost. The FPGA-based database query acceleration device can be used by directly inserting it into the PCIe card slot of the database server without adding additional equipment, and has high reliability.

[0085] The embodiment described above is only one specific implementation of the present invention. Common changes and substitutions made by those skilled in the art within the scope of the technical solution of the present invention should be included in the protection scope of the present invention.

Claims

1. A database heterogeneous acceleration kernel configuration system based on FPGA, Features: It includes a database master control server and a database query acceleration device based on FPGA, wherein the database master control server is connected to the database query acceleration device based on FPGA through a PCIe interface; The database master control server serves as the database function core, and is connected to the database user terminal, including a central processing unit (CPU) and a database memory. The central processing unit (CPU) is responsible for reading the data to be processed from the corresponding database memory address after receiving the user's query instruction, and packaging the read data to be processed and the query instruction through the PCIe interface and sending them to the FPGA-based database query acceleration device. The FPGA-based database query acceleration device includes an FPGA chip, a DDR4 memory, a JTAG interface, a clock crystal oscillator module, a power input module, a reset module and a touch panel; The user uses the touch panel to input the types and numbers of all query acceleration cores covered by the current FPGA chip into the FPGA chip; The FPGA chip is responsible for performing kernel configuration on the FPGA chip through kernel modeling pre-allocation and kernel optimization configuration algorithm after receiving the query instruction, generating the optimal kernel pipeline, and then executing the data query task corresponding to the query instruction; finally, the FPGA chip packages the query result and sends it to the database master control server through the PCIe interface, and sends a transmission completion signal to the central processing unit CPU after completion; The FPGA chip consists of two parts: a database query kernel configuration partition and a database query processing partition; in addition, the FPGA chip is also deployed with a PCIe receiving module, a PCIe sending module and a signal conversion module; The database query kernel configuration partition is used to parse query instructions, pre-allocate the initial pipeline through kernel modeling, extract query data information, store the FPGA kernel and parameters required for database query processing, and use the kernel optimization configuration algorithm to perform kernel optimization and reconstruction on the initial pipeline to generate the optimal kernel pipeline; The database query kernel configuration partition includes a query instruction parsing module, a kernel modeling pre-allocation module, a database query kernel optimization configuration algorithm module, a query data information extraction module, a database query acceleration kernel warehouse, a proposed call kernel structure optimization module and a DDR4 reading module; The kernel modeling pre-allocation module is responsible for judging whether the total amount of various kernels meets the application requirements based on the total number of all query acceleration kernel types and number codes transmitted by the signal conversion module, and the kernel type codes and corresponding number codes required for the current database query operation transmitted by the query instruction parsing module: If the application requirements are not met, the information that the application requirements are not met is sent to the central processing unit CPU; If the application requirements are met, pre-modeling is performed to determine the location of the required kernel in the kernel warehouse, call it, and form a preliminary pipeline for the called kernel; The database query kernel optimization configuration algorithm module is responsible for querying and processing various pre-allocated kernel quantity parameters, algorithm preset parameters, quantity information parameters of the data to be processed and FPGA clock frequency parameters according to the input query demand parameters, executing the kernel optimization configuration algorithm to form the optimal kernel integration plan, and sending the kernel optimization integration plan to the kernel structure optimization module to be called; When the database query kernel optimization configuration algorithm module executes the kernel optimization configuration algorithm to form the optimal kernel integration solution, all kernel pipeline solutions for realizing the database query function are first listed; then, the longest kernel pipeline path of each solution is traversed in parallel; Subsequently, the maximum time consumption of the longest kernel pipeline path of each solution is calculated in parallel, and the kernel pipeline solutions are arbitrated according to the calculation results of the longest paths of each solution, and the kernel pipeline solution with the shortest time consumption is selected; finally, the selected kernel pipeline solution is optimized twice, including kernel integration and simplification, to obtain the optimal kernel pipeline and output it; The proposed kernel structure optimization module is responsible for calling the kernel from the database query acceleration kernel warehouse according to the kernel optimization integration solution, performing kernel optimization and reconstruction on the preliminary pipeline, generating the optimal kernel pipeline, and sending it to the database query acceleration pipeline module of the database query processing partition; The database query processing partition is used to execute the query processing operation, send the processing result to the database server terminal, and complete a single database query operation.

2. The FPGA-based database heterogeneous acceleration kernel configuration system according to claim 1, Features: The database query acceleration kernel warehouse is used to store various FPGA kernels required for database query processing, including sorting kernels, filtering kernels, aggregation kernels and connection kernels; the number and type of each kernel are customized by the user according to the total amount of on-chip resources and requirements of the FPGA chip.

3. The FPGA-based database heterogeneous acceleration kernel configuration system according to claim 1, Features: The database query processing partition includes a query data format conversion module, a FIFO register module and a database query acceleration pipeline module. The database query acceleration pipeline is composed of a plurality of database query acceleration cores after optimized configuration.

4. The FPGA-based database heterogeneous acceleration kernel configuration system according to claim 1, Features: When a database query task is generated, the PCIe receiving module is responsible for receiving the query instruction from the server and the data to be processed involved in the query, and sending the query instruction to the query instruction parsing module, and sending the data to be processed involved in the query to the query data information extraction module and the query data format conversion module respectively; The query instruction parsing module is responsible for decomposing the database query operation involved in the current query instruction, confirming the number of various types of cores required to implement the database query operation, and sending the required core type code and the corresponding number code to the core modeling pre-allocation module and the database query core optimization configuration algorithm module; The signal conversion module is responsible for sending the total number of codes of all query acceleration kernel types and numbers to the kernel modeling pre-allocation module and the database query kernel optimization configuration algorithm module; The query data information extraction module is responsible for extracting the quantity information of the received data to be processed, including the number of entries and the column width, and packaging the extracted quantity information and sending it to the database query kernel optimization configuration algorithm module; The DDR4 reading module is responsible for reading the preset parameters required for executing the kernel optimization configuration algorithm from the DDR4 memory, and packaging and sending the preset parameters to the database query kernel optimization configuration algorithm module.

5. The FPGA-based database heterogeneous acceleration kernel configuration system according to claim 1, Features: The database query kernel optimization configuration algorithm module uses the kernel optimization configuration algorithm to calculate the maximum time consumption T of the longest kernel pipeline path N N , the calculation formula is as follows: Among them, n is the longest path kernel sequence number, t i is the time consumption of each core pipeline path, and the calculation formula is as follows: When there is only one kernel in the kernel pipeline path, that is, n is equal to 1, the time consumption of the kernel pipeline path is calculated as follows: When there are only two cores in the core pipeline path, that is, n is equal to 2, the time consumption of the core pipeline path is calculated as follows: Where f is the FPGA chip main frequency coefficient; data_volume 1 is the total amount of data; data_width 1 The width of each row of data in bits; Q i The data processing coefficient of the kernel is set by the user. It is an integer greater than 0 and is stored in the DDR4 memory. The data processing coefficients of the same kernel are the same. j It is the data loss coefficient of the core, which is set by the user and stored in the DDR4 memory. The data loss coefficients of the same cores are the same.

6. The FPGA-based database heterogeneous acceleration kernel configuration system according to claim 3, Features: The query data format conversion module is responsible for performing format conversion and column splitting operations on the received data to be processed, and adding head and tail marks to each column of data to facilitate processing by the database query acceleration pipeline module; Then the query data format conversion result is sent to the database query acceleration pipeline module; The database query acceleration pipeline module is responsible for executing the user's corresponding query processing operation on the data to be processed, sending the processing result to the FIFO register module, and sending the heterogeneous acceleration processing result to the database server terminal through the PCIe sending module to complete a single database query operation.