Data processing system and data processing method applied to big data
By introducing GPU acceleration and concurrency models, conversion and scheduling operators into the big data processing system, the problem of high data migration costs in the scenario of separation of storage and calculation is solved, and the efficiency of data processing is improved.
Patent Information
- Application Number
- PCT/CN2024/084032
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-27
- Filing Date
- 2024-03-27
- Publication Date
- 2024-10-03
AI Technical Summary
In the scenario of separation of storage and computing, the cost of data migration in big data clusters is high, resulting in low data processing efficiency. It is difficult for existing technologies to effectively reduce data migration costs and improve processing efficiency.
A data processing system is adopted, including the implementation of the engine layer, cache acceleration layer and storage layer. The GPU processing unit is used to accelerate operator execution, convert the original operator into an intermediate representation operator, and drive execution through the concurrency model, optimizing the scheduling method to reduce Data migration and improved resource utilization.
It reduces the cost of data movement in the scenario of separation of storage and computing, improves the efficiency of data processing, and ensures the efficiency of data processing through real-time resource management and scheduling optimization of the GPU processing unit.
Smart Images

Figure CN2024084032_03102024_PF_FP_ABST
Abstract
Description
Data processing system and data processing method applied to big data
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on March 27, 2023, with application number 202310308210.6 and application name “Data processing system and data processing method applied to big data”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of cloud computing, and in particular to a data processing system and a data processing method for big data. Background Art
[0003] Early big data clusters were typically built using a storage-computing integration approach, with a fixed ratio of storage and computing resources. However, with the development of big data services and computing technologies, the demand for storage and computing resources has shifted, and this fixed ratio has made it difficult for big data clusters to adapt to new demands.
[0004] In this context, the construction of big data clusters is gradually transitioning to storage-computing separation. In this model, storage and computing resources are separated into two independent clusters, which reduces waste and improves data processing efficiency. However, this separation also brings various problems: for example, the separate configuration of storage and computing resources creates a large amount of data access and data migration requirements, resulting in reduced data processing performance. Reducing data migration costs and improving data processing efficiency in this storage-computing separation scenario has become a hot topic in this field.
[0005] Summary of the Invention
[0006] In view of this, a data processing system and a data processing method for big data are proposed. According to the data processing system of the embodiment of the present application, the data movement cost in the storage and computing separation scenario can be reduced and the data processing efficiency can be improved.
[0007] In a first aspect, an embodiment of the present application provides a data processing system for big data, the data processing system comprising a first subsystem for implementing an engine layer, a second subsystem for implementing a cache acceleration layer, and a third subsystem for implementing a storage layer, the cache acceleration layer and the storage layer comprising a GPU processing unit, the first subsystem being configured to determine an original operator and a scheduling plan to be executed by the GPU processing unit according to a query request, and outputting the scheduling plan to the second subsystem, the scheduling plan comprising the original operator and its first execution object, and an execution order; the second subsystem converts the original operator into an intermediate representation operator according to the scheduling plan and schedules it to a second execution object, the intermediate representation operator being an operator executable by the GPU processing unit; the second subsystem uses a concurrent model to drive a third execution object to execute the intermediate representation operator, the execution result being output by the third execution object to the engine layer, and the execution result being used to obtain a query result; wherein the first execution object, the second execution object, and the third execution object are determined according to the real-time resource usage of the GPU processing unit, and the third execution object is the GPU processing unit included in the cache acceleration layer and the storage layer.
[0008] According to the data processing system applied to big data in the embodiment of the present application, the first subsystem of the engine layer determines the original operator and its scheduling plan executed by the GPU processing unit according to the query request, and outputs the scheduling plan to the second subsystem, so that the computing power of the GPU processing unit can also be applied to the operator execution, which can accelerate the execution efficiency of the operator and reduce the execution pressure of the central processing unit on the operator; the second subsystem converts the original operator into an intermediate representation operator according to the scheduling plan and schedules it to the second execution object. The intermediate representation operator is an operator executable by the GPU processing unit, which can shield the hardware differences of different types of GPU processing units at the bottom layer, so that different GPU processing units can reuse the same intermediate representation operator, reducing the data processing cost of performing operator conversion separately for each GPU processing unit, and ensuring high data processing efficiency; the second subsystem uses a concurrent model to drive the third execution object to execute the intermediate representation operator, which can further improve the efficiency of the actual execution of the operator. The execution result is output to the first subsystem by the third execution object. The execution result is used to obtain the query result without having to transfer all the data to the first subsystem, which greatly reduces the amount of data moved to the first subsystem. The operator can be executed by the GPU processing unit of the storage layer, so that the total amount of data moved by the third subsystem is also reduced. Therefore, according to the data processing system of the embodiment of the present application, it is possible to reduce the data movement cost in the storage and computing separation scenario and improve data processing efficiency. The first execution object, the second execution object and the third execution object are determined according to the real-time resource usage of the GPU processing unit. The third execution object is the GPU processing unit included in the cache acceleration layer and the storage layer, so that the GPU processing unit that actually executes the operator can be the GPU processing unit that is most suitable for executing the operator among all the GPU processing units, thereby further improving the execution efficiency of the operator.
[0009] According to the first aspect, in a first possible implementation of the data processing system applied to big data, the second subsystem is further used to: when the available resources on the first execution object are greater than or equal to the resource consumption of the first execution object in executing the intermediate representation operator, use the first execution object as the second execution object; when the available resources on the first execution object are less than the resource consumption of the first execution object in executing the intermediate representation operator, determine the second execution object of the intermediate representation operator based on the real-time resource usage of each GPU processing unit and the resource consumption of the intermediate representation operator executed on the GPU processing unit.
[0010] By checking the real-time resource usage of each GPU processing unit again before scheduling the operator, the scheduling method can be adjusted in time to ensure the optimal data processing efficiency corresponding to the scheduling method.
[0011] According to the first aspect, or the first possible implementation of the first aspect, in the second possible implementation of the data processing system applied to big data, the second subsystem is also used to: when the available resources on the second execution object are greater than or equal to the resource consumption of the second execution object in executing the intermediate representation operator, use the second execution object as the third execution object; when the available resources on the second execution object are less than the resource consumption of the second execution object in executing the intermediate representation operator, determine the third execution object of the intermediate representation operator based on the real-time resource usage of each GPU processing unit and the resource consumption of the intermediate representation operator executed on the GPU processing unit.
[0012] By rechecking the real-time resource usage of each GPU processing unit before executing the operator, the scheduling method can be adjusted in time to ensure the optimal data processing efficiency corresponding to the scheduling method.
[0013] According to the first aspect, or any possible implementation of the first aspect above, in a third possible implementation of the data processing system applied to big data, the cache acceleration layer also includes a first storage unit, and the storage layer also includes a second storage unit.
[0014] According to the third possible implementation of the first aspect, in the fourth possible implementation of the data processing system applied to big data, the original operator and its scheduling plan executed by the GPU processing unit according to the query request include: determining the original operator and its execution order executed by the GPU processing unit according to the query request; determining the resource consumption of the original operator executed on each GPU processing unit; determining the first execution object of the original operator according to the real-time resource usage of each GPU processing unit and the resource consumption of the original operator executed on the GPU processing unit; wherein the resource consumption is determined based on at least one of the difference in execution effects of the original operator on different GPU processing units, the first startup delay of the GPU processing unit, the real-time transmission bandwidth between the GPU processing unit and the central processing unit, the real-time data transmission volume between the GPU processing unit and the central processing unit, the available video memory size of the GPU processing unit, and the network transmission bandwidth of the GPU processing unit.
[0015] In this way, the scheduling plan can be optimized based on the computing power of the GPU processing unit, thereby determining a more suitable first execution object for the original operator.
[0016] According to the first aspect, or any one of the first to third possible implementations of the first aspect, in the fifth possible implementation of the data processing system applied to big data, determining the original operator to be executed by the GPU processing unit and its scheduling plan based on the query request includes: determining the data movement cost when the original operator is executed on each GPU processing unit based on the storage location of the data required to execute the original operator; and determining the GPU processing unit with the smallest data movement cost as the first execution object of the original operator.
[0017] In this way, the scheduling plan can be optimized based on the storage location of the data, thereby determining a more suitable first execution object for the original operator and improving the flexibility of the method for determining the first execution object.
[0018] According to the first aspect, or any possible implementation of the first aspect above, in a sixth possible implementation of the data processing system applied to big data, the second subsystem converts the original operator into an intermediate representation operator according to the scheduling plan and schedules it to the second execution object, including: converting each original operator into a semantic layer intermediate representation operator; obtaining the data layer intermediate representation operator and / or computing layer intermediate representation operator corresponding to each original operator according to the semantic layer intermediate representation operator; grouping the data layer intermediate representation operator and computing layer intermediate representation operator corresponding to the original operator in the scheduling plan according to the real-time resource usage of each GPU processing unit to obtain multiple groups of intermediate representation operators, and the second execution objects corresponding to the intermediate representation operators in the same group are the same; fusing the intermediate representation operators in the same group; and scheduling the fused multiple groups of intermediate representation operators to the corresponding second execution objects respectively; wherein the semantic layer intermediate representation operator is used to provide logical expression capability, the data layer intermediate representation operator is used to provide data access capability, and the computing layer intermediate representation operator is used to provide computing capability.
[0019] In this way, different types of GPU processing units can execute the same intermediate representation operator without having to convert the operator separately according to the hardware characteristics of each GPU processing unit. This can simplify the operator conversion method, reduce the data processing cost required for operator conversion, and improve data processing efficiency.
[0020] According to the sixth possible implementation of the first aspect, in the seventh possible implementation of the data processing system applied to big data, the data layer intermediate representation operator supports access to variable-length data, and the second subsystem uses a continuous memory matching method to process variable-length data, and the variable-length data includes character strings.
[0021] According to the first aspect, or any possible implementation of the first aspect above, in an eighth possible implementation of the data processing system applied to big data, the second subsystem uses a concurrent model to drive the third execution object to execute the intermediate representation operator, including: for any GPU processing unit that serves as the third execution object, when the number of intermediate representation operators to be executed by the GPU processing unit is greater than a second threshold, or the execution speed of its own operator is less than a third threshold, increasing the number of concurrent execution units used to execute the intermediate representation operator, and / or, when receiving data from other GPU processing units, controlling the other GPU processing units to reduce the operator execution speed; when the number of intermediate representation operators to be executed by the GPU processing unit is less than or equal to the second threshold, or the execution speed of its own operator is greater than or equal to the third threshold, reducing the number of concurrent execution units used to execute the intermediate representation operator, and / or, when receiving data from other GPU processing units, controlling the other GPU processing units to increase the operator execution speed.
[0022] In this way, the data processing efficiency of a single GPU processing unit can be controlled, thereby controlling the data processing efficiency of the entire system and ensuring the data processing efficiency of the system.
[0023] According to any one of the third to eighth possible implementations of the first aspect, in a ninth possible implementation of the data processing system applied to big data, the second subsystem uses a concurrent model to drive the third execution object to execute the intermediate representation operator, including: when the memory of the GPU processing unit is insufficient, using the first storage unit and / or the second storage unit to store the data required for the GPU processing unit to execute the intermediate representation operator and the execution result of the intermediate representation operator.
[0024] In this way, the management of storage resources is made more flexible.
[0025] According to the first aspect, or any possible implementation of the first aspect above, in the tenth possible implementation of the data processing system applied to big data, in the system, for any GPU processing unit, when the execution result of a certain intermediate representation operator by the GPU processing unit is not used as the data required for the execution of other intermediate representation operators, the GPU processing unit outputs the execution result to the first subsystem.
[0026] In this way, the execution result received by the first subsystem can be the final execution result of the operator pushed down to the second and third subsystems, reducing the amount of execution result data moved from the second and third subsystems to the first subsystem.
[0027] According to the first aspect, or any possible implementation of the first aspect above, in an eleventh possible implementation of the data processing system applied to big data, multi-path direct interconnection channels are used to transmit data between the GPU processing units.
[0028] In this way, data transmission between GPU processing units no longer relies on the second subsystem and the central processing unit for transfer, thereby improving data transmission efficiency.
[0029] In a second aspect, an embodiment of the present application provides a data processing method, which is executed by a data processing system applied to big data, wherein the data processing system includes a first subsystem for implementing an engine layer, a second subsystem for implementing a cache acceleration layer, and a third subsystem for implementing a storage layer, wherein the cache acceleration layer and the storage layer include a GPU processing unit, and the method includes: the first subsystem determines the original operator and its scheduling plan executed by the GPU processing unit according to a query request, and outputs the scheduling plan to the second subsystem, wherein the scheduling plan includes the original operator and its first execution object and execution order; the second subsystem converts the original operator into an intermediate representation operator according to the scheduling plan and schedules it to a second execution object, wherein the intermediate representation operator is an operator executable by the GPU processing unit; the second subsystem uses a concurrent model to drive a third execution object to execute the intermediate representation operator, and the execution result is output by the third execution object to the first subsystem, and the execution result is used to obtain a query result; wherein the first execution object, the second execution object, and the third execution object are determined according to the real-time resource usage of the GPU processing unit, and the third execution object is the GPU processing unit included in the cache acceleration layer and the storage layer.
[0030] These and other aspects of the present application will become more readily apparent from the following description of the embodiment(s). BRIEF DESCRIPTION OF THE DRAWINGS
[0031] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate exemplary embodiments, features, and aspects of the application and, together with the description, serve to explain the principles of the application.
[0032] FIG1 shows an exemplary configuration of a storage and computing separation scenario in the prior art.
[0033] FIG2 illustrates an exemplary application scenario of a data processing system according to an embodiment of the present application.
[0034] FIG3 is a schematic diagram showing the structure of a data processing system according to an embodiment of the present application.
[0035] FIG4 illustrates an exemplary method for converting an original operator into an intermediate representation operator according to an embodiment of the present application.
[0036] FIG5 shows an example of data layer intermediate representation operators and computation layer intermediate representation operators before grouping and multiple groups of intermediate representation operators after grouping according to an embodiment of the present application.
[0037] FIG6 shows an example of a concurrency model according to an embodiment of the present application.
[0038] FIG7 is a schematic diagram showing the flow of a data processing method according to an embodiment of the present application. DETAILED DESCRIPTION
[0039] Various exemplary embodiments, features, and aspects of the present application will be described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise indicated.
[0040] The word “exemplary” is used exclusively herein to mean “serving as an example, example, or illustration.” Any embodiment described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.
[0041] In addition, numerous specific details are provided in the detailed description below to better illustrate the present application. Those skilled in the art will appreciate that the present application can be practiced without certain specific details. In some instances, methods, means, components, and circuits well known to those skilled in the art are not described in detail in order to highlight the main purpose of the present application.
[0042] FIG1 shows an exemplary configuration of a storage and computing separation scenario in the prior art.
[0043] As shown in Figure 1, a storage-computing separation scenario may include storage nodes and compute nodes. Storage nodes are used to provide storage resources and may include object storage services (OBS), etc. Compute nodes are used to provide computing resources and include multiple central processing units (CPUs). The CPUs can run various data analysis engines, such as Spark and Presto. The data analysis engine is used to receive query requests and generate a scheduling plan based on the query requests. The scheduling plan includes the operator corresponding to the query request, the CPU that executes the operator, and the execution order of the operators. The scheduling plan is output to the CPU that executes the operator. The CPU can obtain the data required to execute the operator from the storage node according to the scheduling plan. After obtaining the data, the operator can be executed to obtain the corresponding execution result. The execution results of each CPU are fed back to the data analysis engine for aggregation to obtain the query result corresponding to the query request.
[0044] Storage and computing separation introduces numerous challenges: CPU-centric compute nodes exhibit poor performance when handling computationally intensive operations, and scheduling plans fail to consider heterogeneous computing resources, leading to underutilization. Extensive data movement between compute and storage nodes reduces processing performance. Existing solutions offer limited success in reducing data movement costs and improving processing efficiency in storage and computing separation scenarios.
[0045] In view of this, a data processing system and data processing method for big data are proposed. This system pushes operators from the engine layer down to the cache acceleration layer and storage layer, forming a multi-level operator push-down solution. GPU processing units in the cache acceleration layer and storage layer provide computing power to execute operators, forming a multi-level heterogeneous computing power provision solution. Furthermore, the storage layer and cache acceleration layer can be used for data storage, forming a multi-level data storage solution. The data processing system and electronic device for big data according to the embodiments of the present application can reduce data movement costs in storage and computing separation scenarios and improve data processing efficiency.
[0046] FIG2 illustrates an exemplary application scenario of a data processing system according to an embodiment of the present application.
[0047] As shown in Figure 2, the data processing system of the embodiment of the present application may include a first subsystem for implementing the engine layer, a second subsystem for implementing the cache acceleration layer, and a third subsystem for implementing the storage layer. The engine layer is a data analysis engine, which is used to complete the conversion of query requests to operators and generate scheduling plans for operators. The cache acceleration layer and the storage layer can both include GPU processing units and storage units for storing data. In other words, the cache acceleration layer and the storage layer can both store data and perform certain computing tasks, and each GPU processing unit can serve as the execution object of an operator.
[0048] In the example of Figure 2, the first subsystem implementing the engine layer can be set up on a compute node in a storage-computing separation scenario, and the third subsystem implementing the storage layer can be set up on a storage node in a storage-computing separation scenario. The second subsystem implementing the cache acceleration layer can be set up on a separate service node in a storage-computing separation scenario.
[0049] When a user initiates a query request, the first subsystem receives the query request and, based on the query request, obtains the corresponding original operator and its scheduling plan. The scheduling plan (including the original operator) is then transmitted to the second subsystem. The second subsystem then converts the original operator into an intermediate representation operator based on the scheduling plan and determines the execution target for the converted intermediate representation operator. If the execution target is a GPU processing unit on a service node, the operator is transmitted to the GPU processing unit on the service node. If the execution target is a GPU processing unit on a storage node, the operator is pushed down to the GPU processing unit on the storage node. When a GPU processing unit executes an intermediate representation operator, the data used may be stored on either the storage node or the service node. If the data used is stored on the storage node, the GPU processing unit on the service node can retrieve the data from the storage node. When a GPU processing unit executes an intermediate representation operator, the data used may also be the execution results of other intermediate representation operators. Therefore, the execution results may be transmitted between any two GPU processing units on the storage node and the service node. If the execution result of an intermediate representation operator is not required for the execution of other intermediate representation operators, the execution result can be directly transmitted to the first subsystem. The first subsystem integrates all received execution results to obtain the query result corresponding to the query request. Throughout this process, operators flow in the order of first subsystem → second subsystem → third subsystem, and data (including execution results) flows in the order of third subsystem → second subsystem → first subsystem.
[0050] Those skilled in the art should understand that in actual applications, the second subsystem can also be set on a computing node, the first subsystem and the second subsystem can be set on the same computing node or on different computing nodes. As long as the third subsystem is neither set on the same node as the first subsystem nor on the same node as the second subsystem, this application does not limit the specific setting methods of the first subsystem, the second subsystem, and the third subsystem.
[0051] FIG3 is a schematic diagram showing the structure of a data processing system according to an embodiment of the present application.
[0052] As shown in FIG3 , in one possible implementation, the present application proposes a data processing system for big data, wherein the data processing system includes a first subsystem for implementing an engine layer, a second subsystem for implementing a cache acceleration layer, and a third subsystem for implementing a storage layer. The cache acceleration layer and the storage layer include GPU processing units.
[0053] The first subsystem is configured to determine the original operator to be executed by the GPU processing unit and its scheduling plan according to the query request, and output the scheduling plan to the second subsystem, where the scheduling plan includes the original operator, its first execution object, and the execution order;
[0054] The second subsystem converts the original operator into an intermediate representation operator according to the scheduling plan and schedules it to the second execution object, where the intermediate representation operator is an operator executable by the GPU processing unit;
[0055] The second subsystem uses the concurrent model to drive the third execution object to execute the intermediate representation operator. The execution result is output by the third execution object to the first subsystem, and the execution result is used to obtain the query result.
[0056] The first execution object, the second execution object and the third execution object are determined according to the real-time resource usage of the GPU processing unit, and the third execution object is the GPU processing unit included in the cache acceleration layer and the storage layer.
[0057] For example, a query request can be issued by a user, such as the statement "select count(distinct(lo_orderkey))from test_db.lineorder_1day sql" can be a query request to query all non-repeated "lo_orderkey" fields in the "test_db.lineorder_1day sql" table. The first subsystem can receive the query request and use the scheduling plan heterogeneous optimization strategy to obtain the corresponding original operator and its scheduling plan according to the query request. The scheduling plan heterogeneous optimization strategy can be implemented based on the existing technology. The programming language used by the original operator can be determined by the specific data analysis engine, and this application does not impose any restrictions on this. The original operator that can be executed by the GPU processing unit can be an operator in the data reading and / or preprocessing stage. The calculation operations involved in this part of the operators are relatively simple, making it easy to implement operator pushdown.
[0058] The scheduling plan may include the original operator and its first execution object, and the execution order. The first execution object can be selected from the GPU processing unit. The first execution object of each original operator can be a GPU processing unit. A GPU processing unit can serve as the first execution object of multiple original operators at the same time. The scheduling plan can indicate the way in which the operator is pushed down. For example, the original operator that can be executed by the GPU processing unit after the above statement conversion can include operator A expressing a filtering operation, operator B expressing a format conversion operation, operator C expressing a mapping operation, operator D expressing an aggregation operation, and operator E expressing a deduplication operation. The execution order can then be operator A → operator B → operator C → operator D → operator E. Assume that the cache acceleration layer includes GPU processing units 1-GPU processing units 3, and the storage layer includes GPU processing unit 4. According to the query request, it is determined that operators A, B, and C can be executed by GPU processing unit 4, and operators D and E can be executed by GPU processing unit 1. Then GPU processing unit 4 can serve as the first execution object of operators A, B, and C, and GPU processing unit 1 can serve as the first execution object of operators D and E.
[0059] An example of a scheduling plan may be: GPU processing unit 4 obtains the data required to execute operator A from the third subsystem that implements the storage layer and executes operator A, obtaining the execution result of operator A; GPU processing unit 4 executes operator B based on the execution result of operator A, obtaining the execution result of operator B; GPU processing unit 4 executes operator C based on the execution result of operator B, obtains the execution result of operator C, and outputs it to the third subsystem that implements the cache acceleration layer; GPU processing unit 1 executes operator D based on the execution result of operator C, obtains the execution result of operator D; GPU processing unit 1 executes operator E based on the execution result of operator D, obtains the execution result of operator E, and outputs it to the first subsystem that implements the engine layer. This application does not limit the specific form of the scheduling plan.
[0060] The method for determining the scheduling plan can be found in the further description of the first subsystem below. Exemplarily, the second subsystem can also be configured to output the scheduling plan determined by the scheduling module to the scheduling module. The programming language of the original operator may not be recognized by all GPU processing units. For example, the original operator may be written in a language recognized by the CPU processing unit, resulting in the original operator being unable to be directly executed by the GPU processing unit. Furthermore, different types of GPU processing units may recognize different languages. Therefore, the second subsystem converts the original operator into an intermediate representation operator according to the scheduling plan. The scheduling module can convert the original operator to obtain an intermediate representation operator executable by the GPU processing unit, so that the GPU processing unit can be recognized by different types of GPU processing units. For example, from operator A, operator B, operator C, operator D, and operator E (original operators), operator A1, operator B1, operator C1, operator D1, and operator E1 (intermediate representation operators) can be obtained respectively. Exemplary methods for converting to obtain the intermediate representation operators can be found in the further description of the second subsystem below. The converted operators are pushed down by the execution module to the GPU processing unit for execution.
[0061] Those skilled in the art should understand that one original operator may also obtain multiple intermediate representation operators, and this application does not limit the specific conversion method from the original operator to the intermediate representation operator.
[0062] The second execution object can be selected from the GPU processing units included in the cache acceleration layer and the storage layer. The second execution object of each intermediate representation operator can be a GPU processing unit, and a GPU processing unit can simultaneously serve as the second execution object of multiple intermediate representation operators. The second execution object of an intermediate representation operator can be the same as or different from the first execution object of the original operator corresponding to the intermediate representation operator. Whether it is the same or different is determined based on the actual resource usage of each GPU processing unit. The specific determination method is described below.
[0063] Exemplarily, an execution module may also be provided in the second subsystem, and the scheduling module transmits the intermediate representation operator that can be pushed down to the execution module, and the execution module then pushes down the intermediate representation operator to the GPU processing unit included in the cache acceleration layer and / or storage layer (which may be at least one of the dotted boxes in Figure 3).
[0064] The second subsystem uses a concurrent model to drive each GPU processing unit to execute the intermediate representation operator (IR in Figure 3). Exemplarily, it can be that the execution module uses the concurrent model to drive each GPU processing unit to execute the intermediate representation operator. Its exemplary implementation method can be found in the further description of the second subsystem below. The concurrent model can be, for example, the concurrent programming model actor of the prior art. The third execution object can be selected from the GPU processing units included in the cache acceleration layer and the storage layer. The third execution object of each intermediate representation operator can be a GPU processing unit, and a GPU processing unit can serve as the third execution object of multiple intermediate representation operators at the same time. The third execution object of the intermediate representation operator can be the same as or different from the second execution object of the intermediate representation operator. Whether it is the same can be determined based on the actual resource usage of each GPU processing unit. The specific determination method can be found in the relevant description below.
[0065] If the scheduling plan example above is followed, and the second execution object and the third execution object of the intermediate representation operator are the same, and the first execution object of the original operator corresponding to the intermediate representation operator is also the same, then the execution method of each GPU processing unit on the intermediate representation operator can be: GPU processing unit 4 obtains the data required to execute operator A1 from the storage layer and executes operator A1, obtaining the execution result of operator A1; GPU processing unit 4 executes operator B1 according to the execution result of operator A1, obtaining the execution result of operator B1; GPU processing unit 4 executes operator C1 according to the execution result of operator B1, obtains the execution result of operator C1, and outputs it to the second subsystem; GPU processing unit 1 executes operator D1 according to the execution result of operator C1, obtains the execution result of operator D1; GPU processing unit 1 executes operator E1 according to the execution result of operator D1, obtains the execution result of operator E1 and outputs it to the first subsystem.
[0066] According to the data processing system applied to big data according to the embodiment of the present application, the first subsystem of the engine layer determines the original operator and its scheduling plan executed by the GPU processing unit according to the query request, and outputs the scheduling plan to the second subsystem, so that the computing power of the GPU processing unit can also be applied to the operator execution, which can accelerate the execution efficiency of the operator and reduce the execution pressure of the central processing unit on the operator; the second subsystem converts the original operator into an intermediate representation operator according to the scheduling plan and schedules it to the second execution object. The intermediate representation operator is an operator executable by the GPU processing unit, which can shield the hardware differences of different types of GPU processing units at the bottom layer, so that different GPU processing units can reuse the same intermediate representation operator, reducing the data processing cost of performing operator conversion for each GPU processing unit separately, and ensuring high data processing efficiency; the second subsystem uses a concurrent model to drive the third execution object to execute the intermediate representation operator, which can further improve the efficiency of the actual execution of the operator. The execution result is output to the first subsystem by the third execution object. The execution result is used to obtain the query result without having to transfer all the data to the first subsystem, which greatly reduces the amount of data moved to the first subsystem. The operator can be executed by the GPU processing unit of the storage layer, so that the total amount of data moved by the third subsystem is also reduced. Therefore, according to the data processing system of the embodiment of the present application, it is possible to reduce the data movement cost in the storage and computing separation scenario and improve data processing efficiency. The first execution object, the second execution object and the third execution object are determined according to the real-time resource usage of the GPU processing unit. The third execution object is the GPU processing unit included in the cache acceleration layer and the storage layer, so that the GPU processing unit that actually executes the operator can be the GPU processing unit that is most suitable for executing the operator among all the GPU processing units, thereby further improving the execution efficiency of the operator.
[0067] In a possible implementation, the cache acceleration layer further includes a first storage unit, and the storage layer further includes a second storage unit.
[0068] The GPU processing unit of the cache acceleration layer can be independently configured from the first storage unit. Furthermore, the cache acceleration layer implemented by the second subsystem may also include a CPU processing unit, a DPU processing unit, a field programmable gate array (FPGA), etc. The CPU processing unit and the DPU processing unit can be configured to be integrated with the first storage unit. The storage unit of the storage layer includes a second storage unit, and the GPU processing unit of the storage layer can be configured to be integrated with the second storage unit.
[0069] The CPU processing unit, DPU processing unit, and field programmable logic gate array FPGA can also be used to execute operators, that is, they can replace the GPU processing unit or work in conjunction with the GPU processing unit. In this case, the intermediate representation operator can be jointly recognized by the GPU processing unit, the CPU processing unit, the DPU processing unit, and the field programmable logic gate array FPGA, and the CPU processing unit, the DPU processing unit, and the field programmable logic gate array FPGA can also be used as the first execution object, the second execution object, and the third execution object. In order to describe the request, the GPU processing unit is still used as the first execution object, the second execution object, and the third execution object as an example for description below. However, those skilled in the art should understand that this application does not limit the number and type of processing units that can execute intermediate representation operators.
[0070] An exemplary method for determining the first execution object is described below.
[0071] In one possible implementation, determining the original operator to be executed by the GPU processing unit and its scheduling plan according to the query request includes:
[0072] Determine the original operators to be executed by the GPU processing unit and their execution order according to the query request;
[0073] Determine the resource consumption of the primitive operator executed on each GPU processing unit;
[0074] Determine a first execution object of the original operator according to the real-time resource usage of each GPU processing unit and the resource consumption of the original operator executed on the GPU processing unit;
[0075] The resource consumption is determined based on at least one of the differences in execution effects of the original operator on different GPU processing units, the initial startup delay of the GPU processing unit, the real-time transmission bandwidth between the GPU processing unit and the central processing unit, the real-time data transmission volume between the GPU processing unit and the central processing unit, the available video memory size of the GPU processing unit, and the network transmission bandwidth of the GPU processing unit.
[0076] For example, the first subsystem can first determine the original operators executed by the GPU processing unit based on the query request, such as operator A, operator B, operator C, operator D, and operator E mentioned above, and determine the execution order of the original operators, such as operator A→operator B→operator C→operator D→operator E mentioned above.
[0077] After determining the original operator, the first subsystem can determine the resource consumption of the original operator executed on each GPU processing unit based on the execution capability of the original operator on different GPU processing units. The original operators that can be determined include scan, agg, join and other operators. Resource consumption can be determined based on at least one of the difference in execution effect of the original operator on different GPU processing units, the initial startup delay of the GPU processing unit, the real-time transmission bandwidth between the GPU processing unit and the central processing unit (CPU processing unit), the real-time data transmission volume between the GPU processing unit and the central processing unit, the available video memory size of the GPU processing unit, and the network transmission bandwidth of the GPU processing unit. When determining the first execution object, if the path startup cost of the original operator is too large, the first subsystem can also split the original operator and determine the first execution object based on the split parts. The specific method for determining resource consumption can be implemented based on existing technologies and will not be repeated here.
[0078] Based on the real-time resource usage of each GPU processing unit and the resource consumption of the original operator executed on that GPU processing unit, the first execution target of the original operator can be determined. For example, a GPU processing unit with available resources sufficient for the execution of the original operator and with less resource consumption can be selected as the first execution target. This embodiment of the application does not limit the specific method for determining the first execution target.
[0079] In this way, the scheduling plan can be optimized based on the computing power of the GPU processing unit, thereby determining a more suitable first execution object for the original operator.
[0080] In one possible implementation, determining the original operator to be executed by the GPU processing unit and its scheduling plan according to the query request includes:
[0081] Determine the data movement cost of the original operator when it is executed on each GPU processing unit based on the storage location of the data required to execute the original operator;
[0082] The GPU processing unit with the lowest data moving cost is determined as the first execution object.
[0083] For example, generally, all data is stored in the second storage unit of the storage layer. However, since the first storage unit on the second subsystem can also be used to store data, the full data may also be stored in the first storage unit. The data movement cost of executing an operator on a GPU processing unit varies depending on the data storage location. Therefore, to save costs, the data movement cost of executing the original operator on each GPU processing unit can be determined based on the storage location of the data required to execute the original operator. The GPU processing unit with the lowest data movement cost can then be selected as the first execution target for the original operator.
[0084] When the full amount of data is stored in both the first storage unit and the second storage unit, the data movement cost that can be considered for the GPU processing units of the cache acceleration layer and the storage layer can be the movement cost of the execution result of the operator. It can be understood that the data movement cost of transmitting the execution result from the second subsystem that implements the cache acceleration layer to the first subsystem that implements the engine layer is less than the data movement cost of transmitting the execution result from the third subsystem that implements the storage layer to the first subsystem that implements the engine layer. Therefore, the first execution object of the original operator can be selected from the GPU processing unit of the cache acceleration layer. The exemplary implementation method of selecting which GPU processing unit of the cache acceleration layer is used as the first execution object of the original operator has been described above and will not be repeated here.
[0085] When the first storage unit does not store the full amount of data, for the GPU processing units of the cache acceleration layer, the data movement cost that can be considered may include the data movement cost of the data required to execute the original operator and the data movement cost of the execution result; for the GPU processing units of the storage layer, what can be considered is the data movement cost of the execution result, and the GPU processing unit with the smallest data movement cost is determined as the first execution object of the original operator.
[0086] Furthermore, when the data movement costs of the GPU processing units are the same, the first execution object can be determined by referring to historical data. For example, the historical execution objects of the same type of original operators can be queried, and the GPU processing unit that has been selected the most times among the historical execution objects of the same type of original operators can be determined as the first execution object of the original operator.
[0087] In this way, the scheduling plan can be optimized based on the storage location of the data, thereby determining a more suitable first execution object for the original operator and improving the flexibility of the method for determining the first execution object.
[0088] The following describes an exemplary method for determining the second execution object. The second subsystem may determine the second execution object.
[0089] In a possible implementation, the second subsystem is further configured to:
[0090] When the available resources on the first execution object are greater than or equal to the resource consumption of the first execution object executing the intermediate representation operator, the first execution object is used as the second execution object;
[0091] When the available resources on the first execution object are less than the resource consumption of the first execution object executing the intermediate representation operator, the second execution object of the intermediate representation operator is determined based on the real-time resource usage of each GPU processing unit and the resource consumption of the intermediate representation operator executed on the GPU processing unit.
[0092] For example, when the first execution object is determined, the operator conversion has not yet been performed, while the second execution object is determined after the operator conversion. The resource usage of each GPU processing unit (including resource utilization, bandwidth, load, etc.) changes in real time. It may happen that after a GPU processing unit with sufficient resources is determined as the first execution object of a certain original operator, when the intermediate representation operator corresponding to the original operator is scheduled to the GPU processing unit, the resources of the GPU processing unit are insufficient to support the execution of the intermediate representation operator. At this time, if the intermediate representation operator is still scheduled to the GPU processing unit, the intermediate representation operator may need to wait until the GPU processing unit completes the execution of the operator or task that occupies the resources before it can be executed, resulting in reduced execution efficiency.
[0093] In this regard, the embodiment of the present application proposes that, based on the real-time resource usage on each GPU processing unit, when the available resources on the first execution object are greater than or equal to the resource consumption of the first execution object to execute the intermediate representation operator, the first execution object is used as the second execution object. At this time, the first execution object is the same as the second execution object; when the available resources on the first execution object are less than the resource consumption of the first execution object to execute the intermediate representation operator, the second execution object of the intermediate representation operator is determined based on the real-time resource usage of each GPU processing unit and the resource consumption of the intermediate representation operator executed on the GPU processing unit. The exemplary implementation method can refer to the method for determining the first execution object above, and the original operator can be replaced with the intermediate representation operator, which will not be repeated here. At this time, the first execution object is different from the second execution object.
[0094] By checking the real-time resource usage of each GPU processing unit again before scheduling the operator, the scheduling method can be adjusted in time to ensure the optimal data processing efficiency corresponding to the scheduling method.
[0095] The following describes an exemplary method for determining the third execution object. The second subsystem may determine the third execution object.
[0096] In a possible implementation, the second subsystem is further configured to:
[0097] When the available resources on the second execution object are greater than or equal to the resource consumption of the second execution object executing the intermediate representation operator, the second execution object is used as the third execution object;
[0098] When the available resources on the second execution object are less than the resource consumption of the second execution object executing the intermediate representation operator, the third execution object of the intermediate representation operator is determined based on the real-time resource usage of each GPU processing unit and the resource consumption of the intermediate representation operator executed on the GPU processing unit.
[0099] For example, the scheduling of operators requires a certain amount of time, and the resource usage of each GPU processing unit (including resource utilization, bandwidth, load, etc.) changes in real time. It may happen that after determining that a certain GPU processing unit has sufficient resources and can be used as the second execution object of a certain intermediate representation operator, in the process of scheduling the intermediate representation operator to the GPU processing unit, the resources of the GPU processing unit are occupied by other intermediate representation operators or tasks, resulting in the phenomenon that the resources of the GPU processing unit are insufficient to support the execution of the intermediate representation operator after the intermediate representation operator is scheduled to the GPU processing unit. At this time, if the GPU processing unit is still required to execute the intermediate representation operator, it may be necessary to wait until the GPU processing unit completes the execution of the operator or task that occupies the resources before execution, resulting in reduced execution efficiency.
[0100] In this regard, the embodiment of the present application proposes that, based on the real-time resource usage on each GPU processing unit, when the available resources on the second execution object are greater than or equal to the resource consumption of the second execution object to execute the intermediate representation operator, the second execution object is used as the third execution object. At this time, the second execution object is the same as the third execution object; when the available resources on the second execution object are less than the resource consumption of the second execution object to execute the intermediate representation operator, the third execution object of the intermediate representation operator is determined based on the real-time resource usage of each GPU processing unit and the resource consumption of the intermediate representation operator executed on the GPU processing unit. Its exemplary implementation method can refer to the method for determining the first execution object above, and the original operator can be replaced with the intermediate representation operator, which will not be repeated here. At this time, the second execution object is different from the third execution object.
[0101] By rechecking the real-time resource usage of each GPU processing unit before executing the operator, the scheduling method can be adjusted in time to ensure the optimal data processing efficiency corresponding to the scheduling method.
[0102] The following describes an exemplary method for converting an original operator into an intermediate representation operator according to an embodiment of the present application.
[0103] In a possible implementation, the second subsystem converts the original operator into an intermediate representation operator according to the scheduling plan and schedules the operator to the second execution object, including:
[0104] Convert each primitive operator into a semantic layer intermediate representation operator;
[0105] Obtain the data layer intermediate representation operator and / or computation layer intermediate representation operator corresponding to each original operator according to the semantic layer intermediate representation operator;
[0106] According to the real-time resource usage of each GPU processing unit, the data layer intermediate representation operators and the computing layer intermediate representation operators corresponding to the original operators in the scheduling plan are grouped to obtain multiple groups of intermediate representation operators. The second execution objects corresponding to the intermediate representation operators in the same group are the same;
[0107] Fuse the intermediate representation operators of the same group;
[0108] Dispatching the fused multiple groups of intermediate representation operators to corresponding second execution objects respectively;
[0109] Among them, the intermediate representation operators in the semantic layer are used to provide logical expression capabilities, the intermediate representation operators in the data layer are used to provide data access capabilities, and the intermediate representation operators in the computing layer are used to provide computing capabilities.
[0110] For example, the embodiment of the present application defines multiple layers of intermediate representation operators, including semantic layer intermediate representation operators, data layer intermediate representation operators, and computing layer intermediate representation operators. Among them, the intermediate representation operators in the semantic layer are used to provide logical expression capabilities, which are equivalent to relational algebra. For example, the intermediate representation operator selection expresses filtering operations, the intermediate representation operator projection expresses projection operations, and the intermediate representation operator aggregation expresses aggregation operations. The intermediate representation operators in the data layer are used to provide data access capabilities. For example, the intermediate representation operators CreateArrowTable / AppendArrowTable / ScanArrowTable / MaterializeArrowTable for reading and writing memory data, and CreateHashTable / HashTableInsert / LookupHashTable for reading and writing mapping tables. The intermediate representation operators in the computing layer are used to provide computing capabilities. For example, the intermediate representation operators add / sub / mlu / div / mod express basic arithmetic operations (addition, subtraction, multiplication, division, and remainder), the intermediate representation operators and / or / not express AND, OR, and NOT operations, the intermediate representation operator hash expresses mapping operations, and the intermediate representation operator compare expresses comparison operations.
[0111] Those skilled in the art should understand that the intermediate representation operators that can be defined are more than the above examples, and this application does not limit the specific definition method of the intermediate representation operator.
[0112] FIG4 illustrates an exemplary method for converting an original operator into an intermediate representation operator according to an embodiment of the present application.
[0113] As shown in Figure 4, when performing operator conversion, each original operator can be first converted into a semantic layer intermediate representation operator to obtain the logical relationship of the operator. At this time, the intermediate representation operator can be a coarse-grained operator. Then, based on the semantic layer intermediate representation operator, the data layer intermediate representation operator and / or computing layer intermediate representation operator corresponding to each original operator is obtained to shield the hardware differences between different types of GPU processing units. According to the real-time resource usage of each GPU processing unit, the data layer intermediate representation operator and computing layer intermediate representation operator corresponding to the original operator in the scheduling plan are grouped to obtain multiple groups of intermediate representation operators, completing the dynamic segmentation of the data layer intermediate representation operator and the computing layer intermediate representation operator. The obtained group of intermediate representation operators can be fine-grained operators.
[0114] Figure 5 shows an example of data layer intermediate representation operators and computing layer intermediate representation operators before grouping and multiple groups of intermediate representation operators after grouping according to an embodiment of the present application. Operators A11 to A17 can be data layer intermediate representation operators and computing layer intermediate representation operators before grouping. Grouping method 1 corresponds to the situation where the resources of GPU processing unit 3 are sufficient. Operator A11 is a group alone, and the corresponding second execution object can be GPU processing unit 1. Operators A12 to A13 are grouped together, and the corresponding second execution object can be GPU processing unit 2. Operators A14 to A17 are grouped together, and the corresponding second execution object can be GPU processing unit 3.
[0115] Grouping method 2 corresponds to the situation where the resources of GPU processing unit 3 are insufficient, where operators A11-A13 are grouped together, and the corresponding second execution object can be GPU processing unit 1; operators A14-A17 are grouped together, and the corresponding second execution object can be GPU processing unit 2.
[0116] Those skilled in the art should understand that there are more options for grouping methods. As long as the real-time resource usage of each GPU processing unit can meet the execution of multiple groups of intermediate representation operators obtained by grouping, this application does not limit the specific grouping method.
[0117] Because the second execution objects corresponding to the same set of intermediate representation operators are the same, they can be fused using the Java native interface to obtain multiple sets of fused intermediate representation operators. Each fused set of intermediate representation operators can be dispatched to the corresponding second execution object. At this point, the scheduling plan is considered updated.
[0118] In this way, different types of GPU processing units can execute the same intermediate representation operator without having to convert the operator separately according to the hardware characteristics of each GPU processing unit. This can simplify the operator conversion method, reduce the data processing cost required for operator conversion, and improve data processing efficiency.
[0119] In one possible implementation, the data layer intermediate representation operator supports access to variable-length data. The second subsystem processes variable-length data using a continuous memory matching approach, including character strings. This continuous memory matching approach can be implemented based on existing algorithms and will not be further described here.
[0120] The following describes an exemplary manner in which the second subsystem of an embodiment of the present application uses a concurrent model to drive the third execution object to execute an intermediate representation operator.
[0121] In a possible implementation, the second subsystem uses a concurrent model to drive the third execution object to execute the intermediate representation operator, including:
[0122] For any GPU processing unit that is a third execution target, when the number of intermediate representation operators to be executed by the GPU processing unit is greater than a second threshold, or the execution speed of its own operators is less than a third threshold, the number of concurrent execution units used to execute the intermediate representation operators is increased, and / or, when receiving data from other GPU processing units, the other GPU processing units are controlled to reduce the execution speed of the operators;
[0123] When the number of intermediate representation operators to be executed by the GPU processing unit is less than or equal to the second threshold, or the execution speed of its own operator is greater than or equal to the third threshold, the number of concurrent execution units used to execute the intermediate representation operators is reduced, and / or, when data is received from other GPU processing units, the other GPU processing units are controlled to increase the operator execution speed.
[0124] For example, depending on the execution order of operators, the execution of an operator that is executed later (hereinafter referred to as the prior operator) will be affected by the data processing efficiency of the execution object of the operator that was executed earlier (hereinafter referred to as the subsequent operator) and the data processing efficiency of its own execution object. For example, if the data processing speed of the execution object of the prior operator is faster and the data processing speed of the execution object of the subsequent operator is slower, when the execution result of the prior operator is output to the execution object of the subsequent operator, it may cause a large amount of accumulation due to the inability to execute in time, occupying a large amount of storage resources of the subsequent operator; if the data processing speed of the execution object of the prior operator is slower and the data processing speed of the execution object of the subsequent operator is faster, the computing resources of the execution object of the prior operator may be excessively occupied, but the execution object of the subsequent operator may be idle, resulting in uneven use of computing resources.
[0125] In order to further improve the data processing efficiency, the embodiment of the present application uses a concurrent model, which is characterized in that the number of concurrent execution units (actors) can be dynamically adjusted when resources are sufficient. For any GPU processing unit that is the third execution object, when the number of intermediate representation operators to be executed by the GPU processing unit is greater than the second threshold, or the execution speed of its own operator is less than the third threshold, it can be considered that the data processing efficiency between the GPU processing unit and other GPU processing units that execute the previous operator is unbalanced, and the method of increasing the number of concurrent execution units used to execute the intermediate representation operator can be used to improve its own data processing efficiency, and / or, when receiving data from other GPU processing units, the method of controlling other GPU processing units to reduce the execution speed of the operator can be used to reduce the efficiency of data processing of the execution object of the previous operator, thereby achieving balanced data processing efficiency between GPU processing units. The method of controlling other GPU processing units to reduce the execution speed of the operator can be to control other GPU processing units to reduce the number of concurrent execution units used to execute the intermediate representation operator.
[0126] Similarly, when the number of intermediate representation operators to be executed by the GPU processing unit is less than or equal to the second threshold, or the execution speed of its own operators is greater than or equal to the third threshold, the GPU processing unit can reduce its own data processing efficiency by reducing the number of concurrent execution units used to execute the intermediate representation operators, and / or, when receiving data from other GPU processing units, control the other GPU processing units to increase the execution speed of operators to improve the efficiency of data processing of the execution object of the previous operator, thereby achieving balanced data processing efficiency among the GPU processing units. The method of controlling the other GPU processing units to increase the execution speed of operators can be to control the other GPU processing units to increase the number of concurrent execution units used to execute the intermediate representation operators.
[0127] The second threshold and the third threshold can be set as needed, and this application does not limit the specific values of the second threshold and the third threshold.
[0128] Figure 6 illustrates an example of a concurrency model according to an embodiment of the present application. As shown in Figure 6 , assuming that according to the updated scheduling plan, GPU processing unit 1 executes operators A01-A02, and GPU processing unit 2 executes operators A03-A05, GPU processing unit 1 uses one execution unit (actor) to execute operator A01 and then detects that its own operator execution speed is less than a third threshold. Therefore, when executing operator A02, the number of concurrent execution units used to execute intermediate representation operators can be increased. In the example of Figure 6 , this can be increased to three. GPU processing unit 2 uses one execution unit each to execute operators A03-A05.
[0129] In this way, the data processing efficiency of a single GPU processing unit can be controlled, thereby controlling the data processing efficiency of the entire system and ensuring the data processing efficiency of the system.
[0130] In a possible implementation, the second subsystem uses a concurrent model to drive the third execution object to execute the intermediate representation operator, including:
[0131] When the memory of the GPU processing unit is insufficient, the first storage unit and / or the second storage unit is used to store data required for the GPU processing unit to execute the intermediate representation operator and the execution result of the intermediate representation operator.
[0132] For example, some GPU processing units may not have corresponding storage units (such as the GPU processing unit of the cache acceleration layer), so there may be insufficient memory, and the data required to execute the intermediate representation operator and the execution result of the intermediate representation operator cannot be stored. In this case, the data required to execute the intermediate representation operator and the execution result of the intermediate representation operator can be stored in the first storage unit and / or the second storage unit. The data required to execute the intermediate representation operator can be obtained from the first storage unit and / or the second storage unit when the memory of the GPU processing unit is sufficient; for the execution result of the intermediate representation operator, after being stored in the first storage unit and / or the second storage unit, any GPU processing unit can be used to complete the step of outputting the execution result to the first subsystem.
[0133] In this way, the management of storage resources is made more flexible.
[0134] In one possible implementation, in the system, for any GPU processing unit, when the execution result of a certain intermediate representation operator by the GPU processing unit is not used as data required for the execution of other intermediate representation operators, the GPU processing unit outputs the execution result to the first subsystem.
[0135] For example, the execution result of a previous operator may be data required for the execution of a subsequent operator, but may not be needed for the execution of other operators. Therefore, for any GPU processing unit, when the GPU processing unit uses the execution result of a certain intermediate representation operator as data required for the execution of other intermediate representation operators, the execution result can be output to the GPU processing unit executing the other intermediate representation operator; when the GPU processing unit does not use the execution result of a certain intermediate representation operator as data required for the execution of other intermediate representation operators, the execution result can be output to the first subsystem.
[0136] In this way, the execution result received by the first subsystem can be the final execution result of the operator pushed down to the second and third subsystems, reducing the amount of execution result data moved from the second and third subsystems to the first subsystem.
[0137] In one possible implementation, GPU processing units use multi-path direct interconnection channels to transmit data.
[0138] For example, a multi-path direct interconnection channel can be set up between GPU processing units. Based on the data storage location (first storage unit / second storage unit) and network bandwidth, the multi-path direct interconnection channel is used for data transmission between the GPU processing units. The data transmitted can be the execution results described above. The establishment of the multi-path direct interconnection channel can be implemented based on existing technologies and will not be further described here.
[0139] In this way, data transmission between GPU processing units no longer relies on the second subsystem and the central processing unit for transfer, thereby improving data transmission efficiency.
[0140] An embodiment of the present application provides a data processing method. FIG7 is a schematic diagram showing the flow of the data processing method according to the embodiment of the present application.
[0141] As shown in FIG7 , in one possible implementation, the method is performed by a data processing system for big data. The data processing system includes a first subsystem implementing an engine layer, a second subsystem implementing a cache acceleration layer, and a third subsystem implementing a storage layer. The cache acceleration layer and the storage layer include GPU processing units. For examples of data processing systems, see the above description and related descriptions of FIG3-6 .
[0142] The method comprises steps S31-S33:
[0143] Step S31: The first subsystem determines the original operator to be executed by the GPU processing unit and its scheduling plan according to the query request, and outputs the scheduling plan to the second subsystem, where the scheduling plan includes the original operator, its first execution object, and the execution order.
[0144] Step S32: the second subsystem converts the original operator into an intermediate representation operator according to the scheduling plan and schedules the operator to the second execution object, where the intermediate representation operator is an operator executable by the GPU processing unit.
[0145] Step S33: The second subsystem uses the concurrent model to drive the third execution object to execute the intermediate representation operator. The execution result is output by the third execution object to the first subsystem, and the execution result is used to obtain the query result.
[0146] The first execution object, the second execution object and the third execution object are determined according to the real-time resource usage of the GPU processing unit, and the third execution object is the GPU processing unit included in the cache acceleration layer and the storage layer.
[0147] The embodiment of the data processing method and the explanation of each step can be found in the above description of the data processing system, which will not be repeated here.
[0148] The flow charts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, systems, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a part for a module, program segment or instruction, and the part for the module, program segment or instruction comprises one or more executable instructions for realizing the logical function of the specification. In some alternative implementations, the functions marked in the box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous boxes can actually be performed substantially in parallel, and they can sometimes also be performed in the opposite order, depending on the function involved.
[0149] It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart, can be implemented by hardware (such as a circuit or ASIC (Application Specific Integrated Circuit)) that performs the corresponding function or action, or can be implemented by a combination of hardware and software, such as firmware.
[0150] Although the present invention is described herein in conjunction with various embodiments, in the process of implementing the claimed invention, those skilled in the art can understand and implement other variations of the disclosed embodiments by reviewing the drawings, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other components or steps, and "a" or "an" does not exclude multiple situations. A single processor or other unit can implement several functions listed in the claims. Certain measures are recorded in different dependent claims, but this does not mean that these measures cannot be combined to produce good results.
[0151] The embodiments of the present application have been described above. The above description is illustrative and not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope of the described embodiments. The terminology used herein is selected to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons skilled in the art to understand the embodiments disclosed herein.
Claims
1. A data processing system for big data, It is characterized in that The data processing system includes a first subsystem for implementing an engine layer, a second subsystem for implementing a cache acceleration layer, and a third subsystem for implementing a storage layer, wherein the cache acceleration layer and the storage layer include a GPU processing unit, The first subsystem is used to determine the original operator and its scheduling plan executed by the GPU processing unit according to the query request, and output the scheduling plan to the second subsystem, wherein the scheduling plan includes the original operator and its first execution object and execution order; The second subsystem converts the original operator into an intermediate representation operator according to the scheduling plan and schedules the operator to a second execution object, wherein the intermediate representation operator is an operator executable by the GPU processing unit; The second subsystem uses the concurrent model to drive the third execution object to execute the intermediate representation operator, and the execution result is output by the third execution object to the first subsystem, and the execution result is used to obtain the query result; The first execution object, the second execution object and the third execution object are determined according to the real-time resource usage of the GPU processing unit, and the third execution object is the GPU processing unit included in the cache acceleration layer and the storage layer.
2. The system according to claim 1, It is characterized in that The second subsystem is also used for: When the available resources on the first execution object are greater than or equal to the resource consumption of the first execution object executing the intermediate representation operator, using the first execution object as the second execution object; When the available resources on the first execution object are less than the resource consumption of the first execution object to execute the intermediate representation operator, the second execution object of the intermediate representation operator is determined according to the real-time resource usage of each GPU processing unit and the resource consumption of the intermediate representation operator executed on the GPU processing unit.
3. The system according to claim 1 or 2, It is characterized in that The second subsystem is also used for: When the available resources on the second execution object are greater than or equal to the resource consumption of the second execution object executing the intermediate representation operator, using the second execution object as the third execution object; When the available resources on the second execution object are less than the resource consumption of the second execution object to execute the intermediate representation operator, the third execution object of the intermediate representation operator is determined according to the real-time resource usage of each GPU processing unit and the resource consumption of the intermediate representation operator executed on the GPU processing unit.
4. The system according to any one of claims 1 to 3, It is characterized in that The cache acceleration layer further includes a first storage unit, and the storage layer further includes a second storage unit.
5. The method according to claim 4, It is characterized in that The determining, according to the query request, the original operator to be executed by the GPU processing unit and its scheduling plan includes: Determine the original operators executed by the GPU processing unit and their execution order according to the query request; Determining resource consumption of executing the primitive operator on each GPU processing unit; Determine a first execution object of the original operator according to the real-time resource usage of each GPU processing unit and the resource consumption of the original operator executed on the GPU processing unit; The resource consumption is determined based on at least one of the difference in execution effects of the original operator in different GPU processing units, the initial startup delay of the GPU processing unit, the real-time transmission bandwidth between the GPU processing unit and the central processing unit, the real-time data transmission volume between the GPU processing unit and the central processing unit, the available video memory size of the GPU processing unit, and the network transmission bandwidth of the GPU processing unit.
6. The system according to any one of claims 1 to 4, It is characterized in that The determining, according to the query request, the original operator to be executed by the GPU processing unit and its scheduling plan includes: Determining, according to the storage location of the data required for executing the original operator, the data movement cost when the original operator is executed on each GPU processing unit; A GPU processing unit with the lowest data movement cost is determined as the first execution object of the original operator.
7. The system according to any one of claims 1 to 6, It is characterized in that The second subsystem converts the original operator into an intermediate representation operator according to the scheduling plan and schedules the operator to the second execution object, including: Convert each primitive operator into a semantic layer intermediate representation operator; Obtaining a data layer intermediate representation operator and / or a computing layer intermediate representation operator corresponding to each original operator according to the semantic layer intermediate representation operator; According to the real-time resource usage of each GPU processing unit, the data layer intermediate representation operators and the computing layer intermediate representation operators corresponding to the original operators in the scheduling plan are grouped to obtain multiple groups of intermediate representation operators, and the second execution objects corresponding to the intermediate representation operators in the same group are the same; Fuse the intermediate representation operators in the same group; Dispatching the fused multiple groups of intermediate representation operators to corresponding second execution objects respectively; Among them, the semantic layer intermediate representation operator is used to provide logical expression capability, the data layer intermediate representation operator is used to provide data access capability, and the computing layer intermediate representation operator is used to provide computing capability.
8. The system according to claim 7, It is characterized in that The data layer intermediate representation operator supports access to variable-length data, and the second subsystem processes the variable-length data using a continuous memory matching method, where the variable-length data includes character strings.
9. The system according to any one of claims 1 to 8, It is characterized in that The second subsystem uses a concurrent model to drive the third execution object to execute the intermediate representation operator, including: For any GPU processing unit that is a third execution object, when the number of intermediate representation operators to be executed by the GPU processing unit is greater than the second threshold, or the execution speed of its own operators is less than the third threshold, the number of concurrent execution units used to execute the intermediate representation operators is increased, and / or, when receiving data from other GPU processing units, other GPU processing units are controlled to reduce the execution speed of operators; When the number of intermediate representation operators to be executed by the GPU processing unit is less than or equal to a second threshold, or the operator execution speed thereof is greater than or equal to a third threshold, the number of concurrent execution units used to execute the intermediate representation operators is reduced, and / or, when receiving data from other GPU processing units, other GPU processing units are controlled to increase the operator execution speed.
10. The system according to any one of claims 4 to 9, It is characterized in that The second subsystem uses a concurrent model to drive the third execution object to execute the intermediate representation operator, including: When the memory of the GPU processing unit is insufficient, the first storage unit and / or the second storage unit is used to store the data required by the GPU processing unit to execute the intermediate representation operator and the execution result of the intermediate representation operator.
11. The system according to any one of claims 1 to 10, It is characterized in that In the system, for any GPU processing unit, when the execution result of a certain intermediate representation operator by the GPU processing unit is not used as data required for the execution of other intermediate representation operators, the GPU processing unit outputs the execution result to the first subsystem.
12. The system according to any one of claims 1 to 11, It is characterized in that The GPU processing units transmit data via a multi-path direct interconnection channel.
13. A data processing method, It is characterized in that The method is performed by a data processing system applied to big data, the data processing system includes a first subsystem for implementing an engine layer, a second subsystem for implementing a cache acceleration layer, and a third subsystem for implementing a storage layer, the cache acceleration layer and the storage layer include a GPU processing unit, and the method includes: The first subsystem determines the original operator and its scheduling plan executed by the GPU processing unit according to the query request, and outputs the scheduling plan to the second subsystem, wherein the scheduling plan includes the original operator and its first execution object and execution order; The second subsystem converts the original operator into an intermediate representation operator according to the scheduling plan and schedules the operator to a second execution object, wherein the intermediate representation operator is an operator executable by the GPU processing unit; The second subsystem uses the concurrent model to drive the third execution object to execute the intermediate representation operator, and the execution result is output by the third execution object to the first subsystem, and the execution result is used to obtain the query result; The first execution object, the second execution object and the third execution object are determined according to the real-time resource usage of the GPU processing unit, and the third execution object is the GPU processing unit included in the cache acceleration layer and the storage layer.
Citation Information
Patent Citations
Data processing system and data processing method applied to big data
CN118760509A
Fine-grained stream data processing method and system in heterogeneous system
CN112084140A
Scheduling management method and system for distributed database actuator
CN113495923A
Method for accelerating GPU operator execution in heterogeneous database system and application
CN115794874A
Processor for database analytics processing
US9830369B1
