Heterogeneous computing resource scheduling method and device based on multi-objective optimization

By using multi-objective optimization and reinforcement learning technology in a heterogeneous computing environment, a Markov decision-making process model is constructed, which solves the problem of low efficiency in heterogeneous computing resource scheduling and improves resource utilization and task throughput.

CN118642841AActive Publication Date: 2024-09-13709TH RESEARCH INSTITUTE CHINA STATE SHIPBUILDING CORP LTD

Patent Information

Application Number
CN202410671907.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-28
Publication Date
2024-09-13
Estimated Expiration
2044-05-28

AI Technical Summary

Technical Problem

Existing technology is difficult to achieve efficient task scheduling in a heterogeneous computing resource environment, resulting in low resource utilization, low task throughput, and uneven performance.

Method used

Using a heterogeneous computing resource scheduling method based on multi-objective optimization, by selecting optimization goals from two dimensions: task and resource, establishing a multi-objective optimization model, and combining queuing theory and reinforcement learning technology to build a Markov decision-making process model to achieve Adaptive multi-tasking heterogeneous computing resource scheduling.

Benefits of technology

It improves the resource utilization and task throughput of heterogeneous computing resources, maximizes the efficiency and effectiveness of multi-task scheduling, and solves the problem of low resource mapping and scheduling efficiency in heterogeneous computing environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118642841A
    Figure CN118642841A
Patent Text Reader

Abstract

The invention belongs to the technical field of parallel task scheduling, and particularly discloses a heterogeneous computing resource scheduling method and device based on multi-objective optimization, and the method comprises the steps: selecting at least two performance indexes from two dimensions of task and resource as optimization objectives, and building a multi-objective optimization model of heterogeneous computing resource scheduling; converting the calculation task request process into a calculation task waiting model based on a queuing theory; based on the observed resource state, constructing a multi-task adaptive scheduling model based on reinforcement learning; based on a multi-objective optimization model and a calculation task waiting model, constructing a multi-task-oriented heterogeneous calculation resource scheduling problem and a resource mapping process into a Markov decision process model; based on a Markov decision process model and a multi-task adaptive scheduling model, adaptive multi-task heterogeneous computing resource scheduling is realized. According to the embodiment of the invention, the problem that the scheduling method of the isomorphic computing resources is difficult to adapt to the scheduling of the heterogeneous computing resources is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of parallel task scheduling, and more specifically, to a heterogeneous computing resource scheduling method and device based on multi-objective optimization. Background Art

[0002] In recent years, with the explosive growth of data scale, algorithm complexity, computing power requirements, and the emergence of various coprocessors, computer architectures are being driven towards heterogeneous parallelization. Faced with a large number of concurrent task requirements from users, general-purpose processors and coprocessors coexist heterogeneously in the existing architecture. Traditional resource scheduling methods are difficult to fully utilize the computing power advantages of various types of processors, resulting in many performance issues such as high heterogeneous resource scheduling overhead, low task throughput, and low resource utilization. Unilaterally satisfying a certain performance indicator usually means sacrificing other performance indicators. Therefore, balancing various performance indicators to maximize utility has been a key issue in the field of computing resource scheduling in recent years.

[0003] In the related art, most of the problems regarding complex parallel task scheduling use the directed acyclic graph (DAG) model, which uses a directed acyclic graph to represent parallel tasks, thereby eliminating the limitations of other models on the number of subtasks and the order of multiple tasks. The DAG-based parallel task scheduling method is mainly implemented in three ways: a decomposition-based scheduling method, a global-based scheduling method, and a federal scheduling-based method. The decomposition-based scheduling method decomposes the task into a set of sequential subtasks, and then schedules them using a traditional multi-processor scheduling algorithm; the global-based scheduling method performs a schedulability analysis on the global task, and then performs load balancing scheduling, and the task is dynamically assigned to the processor at runtime; the federal scheduling method executes tasks separately according to their utilization and other characteristics, with high-utilization tasks running independently on dedicated processors, and the other part running sequentially on a single processor.

[0004] However, most of the above scheduling algorithms are aimed at parallel systems based on homogeneous processors, and it is difficult to achieve efficient mapping between heterogeneous processors and tasks, which leads to many performance problems such as low execution efficiency and insufficient resource sharing. Summary of the invention

[0005] In view of the defects existing in the related technologies, the embodiments of the present application provide a heterogeneous computing resource scheduling method and device based on multi-objective optimization, aiming to solve the problem that the scheduling method of homogeneous computing resources is difficult to adapt to the scheduling of heterogeneous computing resources.

[0006] In a first aspect, an embodiment of the present application provides a heterogeneous computing resource scheduling method based on multi-objective optimization, including:

[0007] Select at least two performance indicators from the two dimensions of tasks and resources as optimization targets, and establish a multi-objective optimization model for heterogeneous computing resource scheduling; transform the computing task request process into a computing task waiting model based on queuing theory; and build a multi-task adaptive scheduling model based on reinforcement learning based on the observed resource status;

[0008] Based on the multi-objective optimization model and the computing task waiting model, the multi-task heterogeneous computing resource scheduling problem and resource mapping process are constructed as a Markov decision process model;

[0009] Based on the Markov decision process model and the trained multi-task adaptive scheduling model, adaptive multi-task heterogeneous computing resource scheduling is achieved.

[0010] In a second aspect, the embodiment of the present application further provides a heterogeneous computing resource scheduling device based on multi-objective optimization, including:

[0011] The first building block includes:

[0012] The first construction submodule is used to select at least two performance indicators from the two dimensions of task and resource as optimization targets, and establish a multi-objective optimization model for heterogeneous computing resource scheduling;

[0013] The second construction submodule is used to convert the computing task request process into a computing task waiting model based on queuing theory;

[0014] The third construction submodule is used to build a multi-task adaptive scheduling model based on reinforcement learning based on the observed resource status;

[0015] The second building module is used to construct the multi-task oriented heterogeneous computing resource scheduling problem and resource mapping process into a Markov decision process model based on the multi-objective optimization model and the computing task waiting model;

[0016] The scheduling module is used to realize adaptive multi-task heterogeneous computing resource scheduling based on the Markov decision process model and the trained multi-task adaptive scheduling model.

[0017] In a third aspect, an embodiment of the present application further provides an electronic device, comprising: at least one memory for storing programs; and at least one processor for executing the programs stored in the memory. When the program stored in the memory is executed, the processor is used to execute the method described in the first aspect or any possible implementation of the first aspect.

[0018] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program runs on a processor, the processor executes the method described in the first aspect or any possible implementation of the first aspect.

[0019] In a fifth aspect, an embodiment of the present application further provides a computer program product, which, when executed on a processor, enables the processor to execute the method described in the first aspect or any possible implementation of the first aspect.

[0020] The heterogeneous computing resource scheduling method and device based on multi-objective optimization provided in the embodiments of the present application realize adaptive scheduling of heterogeneous computing resources for multiple tasks by constructing a multi-objective optimization model for heterogeneous computing resources, modeling the arrival process of computing request tasks, modeling resource scheduling and resource mapping, and an improved reinforcement learning model based on resource reservation, thereby solving the problem that the scheduling method of homogeneous computing resources is difficult to adapt to the scheduling of heterogeneous computing resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions in the present application or related technologies, the following is a brief introduction to the drawings required for use in the embodiments or related technical descriptions. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0022] Figure 1 It is a flow chart of a heterogeneous computing resource scheduling method based on multi-objective optimization provided in an embodiment of the present application;

[0023] Figure 2 It is a schematic diagram of the principle of the computing task waiting model provided in the embodiment of the present application;

[0024] Figure 3 It is a schematic diagram of the principle of a multi-task adaptive scheduling model provided in an embodiment of the present application;

[0025] Figure 4 It is a structural schematic diagram of a heterogeneous computing resource scheduling device based on multi-objective optimization provided in an embodiment of the present application;

[0026] Figure 5 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0027] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0028] Figure 1 is a flow chart of a heterogeneous computing resource scheduling method based on multi-objective optimization provided in an embodiment of the present application, such as Figure 1As shown, the method at least includes the following steps:

[0029] S101. Select at least two performance indicators from the two dimensions of tasks and resources as optimization targets, and establish a multi-objective optimization model for heterogeneous computing resource scheduling; transform the computing task request process into a computing task waiting model based on queuing theory; and construct a multi-task adaptive scheduling model based on reinforcement learning based on the observed resource status.

[0030] S102. Based on a multi-objective optimization model and a computing task waiting model, a multi-task oriented heterogeneous computing resource scheduling problem and a resource mapping process are constructed as a Markov decision process model.

[0031] S103. Based on the Markov decision process model and the trained multi-task adaptive scheduling model, adaptive multi-task heterogeneous computing resource scheduling is implemented.

[0032] Specifically, the construction order of the multi-objective optimization model, the computing task waiting model and the multi-task adaptive scheduling model in S101 can be adjusted, and this is not limited in the embodiments of the present application.

[0033] About establishing a multi-objective optimization model: When building an optimization model for heterogeneous computing resource scheduling, unilaterally considering a certain performance indicator usually means sacrificing other performance indicators. Therefore, it is necessary to balance the performance indicators to maximize utility.

[0034] In the embodiment of the present application, starting from the two dimensions of tasks and resources, at least two performance indicators are selected as optimization targets to establish a multi-objective optimization model for heterogeneous computing resource scheduling.

[0035] In some embodiments, establishing a multi-objective optimization model for heterogeneous computing resource scheduling specifically includes:

[0036] Set constraints for multi-objective optimization models;

[0037] From the task dimension, task request response time, computing resource scheduling overhead and task throughput are selected as optimization targets, and a task model is established. The task model represents the service quality of the computing task.

[0038] From the resource dimension, computing resource utilization is selected as the optimization target, and a resource model is established. The resource model represents computing resource utilization;

[0039] Based on the task model and resource model, the objective function of the multi-objective optimization model is determined.

[0040] Specifically, when establishing a multi-objective optimization model for heterogeneous computing resource scheduling, we comprehensively consider multiple performance indicators, including task request response time, computing resource scheduling overhead, task throughput, and computing resource utilization, balance the performance indicators, and abstract them into service quality, thus avoiding other performance bottleneck problems caused by considering only a single performance indicator.

[0041] The overall resource scheduling system meets the following constraints:

[0042]

[0043] Among them, various heterogeneous computing resources in the system are divided into K categories, and each category of resources corresponds to a certain number of computing resources. i represents the number of resources of the i-th category, C K Indicates the total capacity of K-type computing resources.

[0044] Under the above constraints, in order to reasonably allocate computing tasks and maximize the task service quality and resource utilization, the following objective f(SR) is adopted to construct a multi-objective optimization model for heterogeneous computing resource scheduling. The heterogeneous computing resource scheduling objective model is decomposed into a task model and a resource model, and the parameters α and β are used to achieve a balance between the task model and the resource model.

[0045] Specifically, the goal of heterogeneous computing resource scheduling can be modeled as the following optimization problem. The optimization objective function is f(SR), which is specifically expressed as follows:

[0046]

[0047] Among them, SR i represents the i-th scheduling process assigned to the computing task, QoS (SR i ) represents the service quality of the computing task in the i-th scheduling process, UR(SR i ) represents the resource utilization rate corresponding to the i-th scheduling process, that is, f(SR) represents the maximization of the service quality of the task and the maximization of the resource utilization rate, α and β are the weight values ​​of the service quality objective function and the resource utilization objective function, respectively, and α+β=1.

[0048] The task model represents the service quality of the computing task. The service quality of the computing task includes multiple attributes, including task request response time, scheduling overhead, and task throughput, which satisfy the following calculation formula:

[0049]

[0050] Among them, RT(SR i ) represents the task request response time, DT(SR i) represents the computing resource scheduling overhead of the computing task, TP(SR i ) represents the task throughput, and the calculation formula of task throughput is as follows:

[0051]

[0052] in, Represents the total computing task request, Indicates a computing task request that has been successfully responded to.

[0053] The resource model is the result of modeling the utilization of computing resources. Specifically, it refers to modeling the utilization of computing resources as a load based on heterogeneous computing resources. Based on the resource model, heterogeneous computing resources are scheduled to achieve the purpose of balancing resource loads to ensure efficient and correct execution of tasks. The load of heterogeneous computing resources reflects the demand for computing resources. Generally speaking, the higher the load capacity of heterogeneous computing resources, the more powerful the computing power is and the more workload it can handle. However, the load capacity of heterogeneous computing resources cannot exceed their design limits, otherwise it will cause overheating, frequency reduction or damage. Therefore, real-time modeling of the load of computing resources can ensure the load balance of the overall system.

[0054] The resource model satisfies the following calculation formula:

[0055]

[0056] Among them, M represents the period of monitoring the core of heterogeneous computing resources, h represents the number of cores of heterogeneous computing resources, and the computing capabilities of each core are Then the time in the running state in cycle M is

[0057] Since the load can provide real-time information about the current load situation of the system, it helps the scheduler to more accurately evaluate the operating status of the system. By monitoring and analyzing the load, the scheduler can make smarter and more optimized scheduling decisions based on the current system status. Secondly, real-time load information can be used to achieve load balancing. Load balancing is an important task scheduling strategy that aims to reasonably distribute tasks to various heterogeneous computing resources in the system to avoid resource overload or imbalance. Load, as one of the resource information, can help the scheduler discover nodes with high loads and schedule new tasks to nodes with lower loads, thereby achieving load balancing and improving the overall performance and efficiency of the system.

[0058] The heterogeneous computing resource scheduling method provided in the embodiment of the present application starts from the two dimensions of tasks and resources, and uses the resource model to ensure the reservation of computing resources for hard real-time tasks, and also regulates the balanced use of resources; while the task model meets the task from the perspective of tasks, ensuring the orderly execution of multiple tasks; especially when facing hard real-time tasks, the resources required for real-time tasks are reserved through resource reservation, which not only takes into account the smooth execution of hard real-time tasks, but also ensures the effective execution of other non-real-time tasks.

[0059] Furthermore, regarding the establishment of a computing task waiting model: Queuing Theory, or random service system theory, is to obtain statistical laws of quantitative indicators such as waiting time, queue length, and busy period length through statistical research on the arrival of service objects and service time, and then improve the structure of the service system or reorganize the service objects based on these laws, so that the service system can not only meet the needs of service objects, but also optimize certain indicators of the system.

[0060] Figure 2 is a schematic diagram of the principle of the computing task waiting model provided in the embodiment of the present application, such as Figure 2 As shown in the figure, the classical queuing theory is used to model the system's heavy computing task request process and construct a computing task waiting model. When the number of computing resources is S, the random process of computing task requests follows a Poisson process with an arrival rate of λ, and the completion time of computing task requests follows an exponential distribution with a mean of 1 / μ.

[0061] Then calculate the average length of the task request queue L q And calculate the average waiting time W of task requests q It is expressed as follows:

[0062]

[0063]

[0064]

[0065] Among them, p0 represents the probability of no computing tasks, ρ = λ / μ represents the computing service intensity, and ρ s =ρ / s.

[0066] The heterogeneous computing resource scheduling method provided in the embodiment of the present application adopts a classic queuing model to simulate the computing task request process when constructing a computing task waiting model; different computing task request processes will have a huge impact on the heterogeneous computing resource scheduling scheme, and the computing task request process of heterogeneous computing resources is analyzed and modeled using queuing theory, thereby achieving a more accurate simulation of the arrival process of multiple task requests.

[0067] In some embodiments, building a multi-task adaptive scheduling model based on reinforcement learning specifically includes:

[0068] A multi-task adaptive scheduling model based on deep Q-learning is constructed. The multi-task adaptive scheduling model based on deep Q-learning is used to produce corresponding action values ​​according to the computing resource status and computing resource scheduling actions of each intelligent agent.

[0069] Specifically, Q-learning is a model-free reinforcement learning technology. Q represents the action-utility function, which is used to evaluate the pros and cons of taking an action in a specific state and is the memory of the agent.

[0070] Q-learning uses a Q-table to store the value pairs of states and actions. Initially, a random initial value is given to the Q-table, and then the Q-table is gradually converged and stabilized through step-by-step iteration. The Q-learning algorithm can find an optimal strategy in a limited Markov decision process to maximize the expected overall benefit. At each time point t, the agent selects an action a t , get a reward R t , at which point the environment enters a new state s t+1 , and then update the Q value. The core of Q-learning is the value function iteration process, namely:

[0071] Q(s t ,a t )←Q(s t ,a t )+α[r t +γmaxQ(s t+1 ,a t+1 )-Q(s t ,a t )]

[0072] Among them, α represents the learning rate and γ represents the discount factor. Q-learning performs well in most cases where the state space is limited, but as the state and action space continue to expand, the storage space required for Q-learning will also continue to expand, leading to difficulties in storage and computing. Therefore, Deep Q-learning (DQN) is used to solve the problem of heterogeneous computing resource scheduling.

[0073] DQN is a model-free reinforcement learning algorithm based on value function. It improves on the Q-learning algorithm and obtains the Q value of state and action through neural network, so that DQN can still perform well even when the state space and action space are large. The following is a detailed introduction to the DQN algorithm.

[0074] There is a value function network in DQN, and one of the important concepts is value function approximation. An action and state value pair corresponds to a value function Q(s,a). In theory, the action and state values ​​can be stored in a table, and any Q(s,a) can be obtained by looking up the table. However, when the number of states and actions is too large, the table will become very large, and the solution and iteration process will be very long. Therefore, a function approximation method is proposed to estimate the state action value, that is, the input of the function is the action and value, and the output is the value corresponding to this state action pair:

[0075]

[0076] By using function approximation, even for some state-action pairs that have never been seen before, their Q values ​​can still be estimated.

[0077] The input parameters of DQN can be divided into two parts: one is the representation of the computing resource state, with a dimension of k+v×(k+1); the other is the computing resource scheduling action, with a dimension of v. The output dimension is 1, and the output value represents the action value corresponding to the computing resource state s and the computing resource scheduling action a.

[0078] Figure 3 is a schematic diagram of the principle of the multi-task adaptive scheduling model provided in the embodiment of the present application, combined with Figure 3 , the heterogeneous computing resource scheduling algorithm provided in the embodiment of the present application is described as follows:

[0079] The first step is to initialize the memory playback space D to store the traversed data.

[0080] The second step is to determine the number of types v according to the core types of heterogeneous computing resources, thereby determining the input structure of the neural network. Then, the Q network parameters w are randomly initialized and the target Q network parameters w are randomly initialized. - =w:

[0081] y1=relu(w1z1+b1)

[0082] Q = relu (w2y1+b2)

[0083] Among them, z1 is the input computing resource state and computing resource scheduling action pair, b1 and b2 are bias vectors, and Q is the final output value.

[0084] The third step is to initialize the initial computing resource state space according to the computing resource limit, where the number of randomly initialized computing resources is

[0085] The fourth step is to put the computing resource request task into the computing request task queue.

[0086] Furthermore, it is the training process of the multi-task adaptive scheduling model based on deep Q-learning.

[0087] In some embodiments, the multi-task adaptive scheduling model based on deep Q learning is trained based on the following steps:

[0088] Based on the observed computing resource status, a greedy strategy (ε-greedy) is used to generate computing resource scheduling actions a t , and get computing resource scheduling reward r t , and the new computing resource state s t+1 , and then put the sample group into the memory space D;

[0089] Stochastic batch gradient descent is used to train and update the multi-task adaptive scheduling model based on deep Q-learning until the model converges.

[0090] Specifically, the model training process is as follows:

[0091] The first step is to initialize the memory space D with a capacity of N.

[0092] The second step is to determine the number of computing resource types v, randomly initialize the neural network parameters w and Q network, and initialize the target Q network parameters w - =w.

[0093] The third step is to initialize state s1.

[0094] The fourth step is to put the computing resource request into the computing task request queue and pre-process the computing resource request task.

[0095] Step 5: Use the ε-greedy strategy to generate computing resource scheduling action a t : Randomly select a computing resource scheduling action with probability ε, or select a t =max a Q(s t ,a,w).

[0096] Step 6: Execute computing resource scheduling action a t , and obtain computing resource scheduling reward r t and the new computing resource state s t+1 .

[0097] Step 7: t ,a t ,r t ,s t+1 ) into the memory playback space D.

[0098] Step 8: Randomly extract a minibatch (s j ,a j ,r j ,s j+1 ).

[0099] Step 9: If step j+1 is terminated, let y j =r j ;otherwise,

[0100] Step 10, for (y j -Q(s t ,a j ,w)) 2 The random batch gradient descent method is used to update w, and the target Q network is updated every C steps. - =w.

[0101] When the model converges, the specific actions for each step are selected according to the greedy method.

[0102] In some embodiments, constructing a multi-task adaptive scheduling model based on reinforcement learning in S103 further includes:

[0103] The constraints are to minimize the waiting time of the computing task request queue while minimizing the computing resource loss, and based on the constraints, a resource constraint penalty item is added to the computing resource scheduling reward.

[0104] Specifically, in the process of computing resource scheduling, it is necessary to minimize the waiting time of the computing task request queue while minimizing the computing resource loss. Considering that the scheduling behavior is constrained by the upper limit of specific computing resources, in order to add this constraint item in reinforcement learning, a resource constraint penalty item is added to the computing resource scheduling reward to constrain and reduce unreasonable scheduling behavior. The updated reward formula is as follows:

[0105]

[0106] Among them, r t represents computing resource scheduling reward, QoS (SR i ) represents the service quality of the computing task in the i-th scheduling process, and the calculation method has been given above; EC i represents the consumption of the i-th computing resource for hard real-time tasks, Represents the number of the i-th type of equipment at time t.

[0107] Among them, w1 is a hyperparameter, which indicates the penalty for adding or canceling computing task requests. Frequently adding or canceling computing task requests is not only unnecessary, but also leads to computing resource loss. This item is added to the reward measures to reduce the operation frequency of the scheduling system; w2 is another hyperparameter, which indicates that when the number of required physical computing resources exceeds the upper limit due to the increase in the computing task request queue during the computing resource scheduling process, this scheduling behavior will be punished. t The specific definitions are as follows:

[0108]

[0109] Among them, c t Indicates the extent to which the number of computing resources required at time t exceeds the upper limit. When the number of computing resources required is less than the number of resources available, c t is 0.

[0110] In summary, unreasonable scheduling behaviors are punished by resource constraint penalty items, which solves the problem of physical resource constraints in computing resource scheduling.

[0111] The heterogeneous computing resource scheduling method based on multi-objective optimization provided in the embodiment of the present application adopts a random batch gradient descent algorithm to update the multi-task adaptive scheduling model based on deep Q learning when constructing an improved reinforcement learning model based on resource reservation. The switching cost of the scheduling model to execute the scheduling strategy is reduced through the reinforcement learning model, the calculation amount of the multi-task adaptive scheduling model based on deep Q learning is reduced, and the convergence speed of the multi-task adaptive scheduling model based on deep Q learning is improved.

[0112] In some embodiments, regarding constructing a Markov decision process model: the computing resource scheduling process satisfies the Markov property, that is, for the computing resource scheduling at any time, the next computing resource scheduling state is only related to the current computing resource situation and computing task requests, and has nothing to do with the past computing resource utilization and past computing task requests.

[0113] Therefore, the multi-task oriented heterogeneous computing resource scheduling problem and resource mapping process are constructed as a Markov decision process (MDP) and described by the following five-tuple:

[0114] E={S,A,π,R,G}

[0115] Among them, the agent is in the environment E, S represents the state space of computing resources; A represents the action space, which is the set of available computing resource scheduling actions of the agent under the computing resource state; π represents the computing resource scheduling strategy, which is the mapping function from the computing resource state to the computing resource scheduling action; R represents the computing resource scheduling reward, that is, the feedback of the environment to the agent after the agent gives the computing resource scheduling action; G represents the return, which is the accumulation of computing resource scheduling rewards over time.

[0116] Computing resource status: defined as a vector consisting of the number of each type of resource in a computing device and the amount of computing resources consumed by different types of computing devices. The complete definition is as follows:

[0117]

[0118] in, represents the remaining amount of computing resources of the i-th category at time t, and the total number of computing resources is k; Represents the number of the lth type of idle computing resources at time t.

[0119] Computing resource scheduling action: Computing resource scheduling action a t Indicates the creation or destruction of different types of computing task requests. After executing the computing resource scheduling action, the computing resource scheduling system will change from the state s at time t t Transition to the new state s at the next moment t+1 At the same time, the capacity of different types of idle computing resources in the computing resource scheduling system changes, that is, from arrive The current remaining amount of computing resources in the computing resource scheduling system is Changes to

[0120] Computing resource scheduling reward: Computing resource scheduling reward r t = r(s t ,a t ,s t+1 ) is in state s t The following uses computing resource scheduling action a t The computing resource scheduling reward function defines the reward value received by the computing resource scheduling system. The ultimate goal is to maximize the overall cumulative reward value, as shown below:

[0121]

[0122] Among them, QoS (SR i ) represents the service quality of the computing task in the i-th scheduling process, EC i represents the consumption of the i-th computing resource for hard real-time tasks, Represents the number of the i-th type of equipment at time t. By penalizing unreasonable scheduling behaviors through the aforementioned resource constraint penalty item, the physical resource constraint problem in computing resource scheduling can be solved.

[0123] Computing resource scheduling strategy: The computing resource scheduling strategy π is the scheduler behavior function, which is a mapping from computing resource status to computing resource scheduling actions. By inputting the current resource status s t , the mapping function will output the corresponding computing resource scheduling action a t In the process of computing resource scheduling, the computing resource status represents the current situation of the computing resource scheduling system. When the computing resource scheduling system executes an operation, these indicator values ​​will change, that is, enter the next state.

[0124] The heterogeneous computing resource scheduling method based on multi-objective optimization provided in the embodiment of the present application realizes adaptive scheduling of heterogeneous computing resources for multiple tasks by constructing a multi-objective optimization model for heterogeneous computing resources, modeling the arrival process of computing request tasks, modeling resource scheduling and resource mapping, and an improved reinforcement learning model based on resource reservation, thereby solving the problems of high multi-task scheduling overhead and low resource utilization in a heterogeneous computing resource environment.

[0125] Figure 4 is a schematic diagram of the structure of a heterogeneous computing resource scheduling device based on multi-objective optimization provided in an embodiment of the present application, such as Figure 4 As shown, the device at least includes:

[0126] The first building block 401 includes:

[0127] The first construction submodule is used to select at least two performance indicators from the two dimensions of task and resource as optimization targets, and establish a multi-objective optimization model for heterogeneous computing resource scheduling;

[0128] The second construction submodule is used to convert the computing task request process into a computing task waiting model based on queuing theory;

[0129] The third construction submodule is used to build a multi-task adaptive scheduling model based on reinforcement learning based on the observed resource status;

[0130] The second construction module 402 is used to construct the multi-task oriented heterogeneous computing resource scheduling problem and resource mapping process into a Markov decision process model based on the multi-objective optimization model and the computing task waiting model;

[0131] The scheduling module 403 is used to implement adaptive multi-task heterogeneous computing resource scheduling based on the Markov decision process model and the trained multi-task adaptive scheduling model.

[0132] In some embodiments, the first building block is specifically used for:

[0133] Set constraints for multi-objective optimization models;

[0134] From the task dimension, task request response time, computing resource scheduling overhead and task throughput are selected as optimization targets, and a task model is established. The task model represents the service quality of the computing task.

[0135] From the resource dimension, computing resource utilization is selected as the optimization target, and a resource model is established. The resource model represents computing resource utilization;

[0136] Based on the task model and resource model, the objective function of the multi-objective optimization model is determined.

[0137] In some embodiments, the objective function satisfies the following calculation formula:

[0138]

[0139] Among them, f(SR) represents the objective function, SR i represents the i-th scheduling process assigned to the computing task, QoS (SR i ) represents the service quality of the computing task in the i-th scheduling process, UR(SR i ) represents the resource utilization corresponding to the i-th scheduling process, α and β represent weight values ​​and satisfy α+β=1.

[0140] In some embodiments, the third building block is specifically used for:

[0141] A multi-task adaptive scheduling model based on deep Q-learning is constructed. The multi-task adaptive scheduling model based on deep Q-learning is used to produce corresponding action values ​​according to the computing resource status and computing resource scheduling actions of each intelligent agent.

[0142] In some embodiments, the multi-task adaptive scheduling model based on reinforcement learning is trained based on the following steps:

[0143] Based on the observed computing resource status, a greedy strategy is used to generate computing resource scheduling actions, computing resource scheduling rewards and new computing resource status, and the sample group is placed in the memory space;

[0144] Stochastic batch gradient descent is used to train and update the multi-task adaptive scheduling model based on deep Q-learning until the model converges.

[0145] In some embodiments, a greedy strategy is used to generate computing resource scheduling actions, computing resource scheduling rewards, and new computing resource states, including:

[0146] The greedy strategy is the ε-greedy strategy, which uses ε-greedy to generate computing resource scheduling actions;

[0147] Randomly select a computing resource scheduling action with probability ε, or select the computing resource scheduling action corresponding to the maximum state action value;

[0148] Execute the selected computing resource scheduling action to obtain computing resource scheduling rewards and new computing resource status.

[0149] In some embodiments, the third building block is further used to:

[0150] The constraints are to minimize the waiting time of the computing task request queue while minimizing the computing resource loss, and based on the constraints, a resource constraint penalty item is added to the computing resource scheduling reward.

[0151] In some embodiments, the multi-task oriented heterogeneous computing resource scheduling problem is constructed as a Markov decision process model, satisfying the following five-tuple:

[0152] E={S,A,π,R,G}

[0153] Among them, the agent is in the environment E, S represents the state space of computing resources; A represents the action space, which is the set of available computing resource scheduling actions of the agent under the computing resource state; π represents the computing resource scheduling strategy, which is the mapping function from the computing resource state to the computing resource scheduling action; R represents the computing resource scheduling reward, that is, the feedback of the environment to the agent after the agent gives the computing resource scheduling action; G represents the return, which is the accumulation of computing resource scheduling rewards over time.

[0154] It can be understood that the detailed functional implementation of each of the above-mentioned units / modules can be found in the introduction of the aforementioned method embodiment, and will not be repeated here.

[0155] It should be understood that the above-mentioned device is used to execute the method in the above-mentioned embodiment. The implementation principle and technical effect of the corresponding program module in the device are similar to those described in the above-mentioned method. The working process of the device can refer to the corresponding process in the above-mentioned method, which will not be repeated here.

[0156] Based on the method in the above embodiment, an embodiment of the present application provides an electronic device. The device may include: at least one memory for storing programs and at least one processor for executing the programs stored in the memory. When the program stored in the memory is executed, the processor is used to execute the method described in the above embodiment.

[0157] Figure 5 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application, such as Figure 5As shown, the electronic device may include: a processor 501, a communications interface 520, a memory 503 and a communication bus 504, wherein the processor 501, the communications interface 502 and the memory 503 communicate with each other via the communication bus 504. The processor 501 may call the software instructions in the memory 503 to execute the method described in the above embodiment.

[0158] In addition, the logic instructions in the above-mentioned memory 503 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the relevant technology or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present application.

[0159] Based on the method in the above embodiment, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program runs on a processor, the processor executes the method in the above embodiment.

[0160] Based on the method in the above embodiment, an embodiment of the present application provides a computer program product. When the computer program product runs on a processor, the processor executes the method in the above embodiment.

[0161] It is understandable that the processor in the embodiment of the present application may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. The general-purpose processor may be a microprocessor or any conventional processor.

[0162] The method steps in the embodiments of the present application can be implemented by hardware, or by a processor executing software instructions. The software instructions can be composed of corresponding software modules, and the software modules can be stored in random access memory (Random Access Memory, RAM), flash memory, read-only memory (Read-Only Memory, ROM), programmable read-only memory (Programmable ROM, PROM), erasable programmable read-only memory (Erasable PROM, EPROM), electrically erasable programmable read-only memory (Electrically EPROM, EEPROM), registers, hard disks, mobile hard disks, CD-ROMs or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium and can write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an ASIC.

[0163] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loading and executing computer program instructions on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted by a computer-readable storage medium. The computer instructions can be transmitted from a website site, a computer, a server or a data center to another website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, a data center, etc. that contains one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)), etc.

[0164] It should be understood that the various numerical numbers involved in the embodiments of the present application are only used for the convenience of description and are not used to limit the scope of the embodiments of the present application.

[0165] It is easy for those skilled in the art to understand that the above are only preferred embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application should be included in the protection scope of the present application.

Claims

1. A heterogeneous computing resource scheduling method based on multi-objective optimization, characterized in that: include: Select at least two performance indicators from the two dimensions of tasks and resources as optimization targets, and establish a multi-objective optimization model for heterogeneous computing resource scheduling; Based on queuing theory, the computing task request process is transformed into a computing task waiting model; Based on the observed resource status, a multi-task adaptive scheduling model based on reinforcement learning is constructed; Based on the multi-objective optimization model and the computing task waiting model, the multi-task oriented heterogeneous computing resource scheduling problem and resource mapping process are constructed as a Markov decision process model; Based on the Markov decision process model and the trained multi-task adaptive scheduling model, adaptive multi-task heterogeneous computing resource scheduling is achieved.

2. The heterogeneous computing resource scheduling method based on multi-objective optimization according to claim 1 is characterized in that: The multi-objective optimization model for heterogeneous computing resource scheduling is established, including: Setting constraints of the multi-objective optimization model; Selecting task request response time, computing resource scheduling overhead and task throughput as optimization targets from the task dimension, and establishing a task model, wherein the task model represents the service quality of the computing task; Select computing resource utilization as an optimization target from the resource dimension, and establish a resource model, wherein the resource model represents the computing resource utilization; Based on the task model and the resource model, an objective function of the multi-objective optimization model is determined.

3. The heterogeneous computing resource scheduling method based on multi-objective optimization according to claim 2 is characterized in that: The objective function satisfies the following calculation formula: Wherein, f(SR) represents the objective function, SR i represents the i-th scheduling process assigned to the computing task, QoS (SR i ) represents the service quality of the computing task in the i-th scheduling process, UR(SR i ) represents the resource utilization corresponding to the i-th scheduling process, α and β represent weight values ​​and satisfy α+β=1.

4. The heterogeneous computing resource scheduling method based on multi-objective optimization according to claim 1 is characterized in that: The construction of a multi-task adaptive scheduling model based on reinforcement learning includes: A multi-task adaptive scheduling model based on deep Q-learning is constructed, wherein the multi-task adaptive scheduling model based on deep Q-learning is used to produce corresponding action values ​​according to the computing resource status and computing resource scheduling actions of each intelligent agent.

5. The heterogeneous computing resource scheduling method based on multi-objective optimization according to claim 4 is characterized in that: The multi-task adaptive scheduling model based on reinforcement learning is trained based on the following steps: Based on the observed computing resource status, a greedy strategy is used to generate computing resource scheduling actions, computing resource scheduling rewards and new computing resource status, and the sample group is placed in the memory space; The multi-task adaptive scheduling model based on deep Q learning is trained and updated using stochastic batch gradient descent until the model converges.

6. The heterogeneous computing resource scheduling method based on multi-objective optimization according to claim 5 is characterized in that: The greedy strategy is used to generate computing resource scheduling actions, computing resource scheduling rewards and new computing resource states, including: The greedy strategy is an ε-greedy strategy, which uses ε-greedy to generate computing resource scheduling actions; Randomly select a computing resource scheduling action with probability ε, or select the computing resource scheduling action corresponding to the maximum state action value; Execute the selected computing resource scheduling action to obtain computing resource scheduling rewards and new computing resource status.

7. The heterogeneous computing resource scheduling method based on multi-objective optimization according to claim 4 is characterized in that: The construction of a multi-task adaptive scheduling model based on reinforcement learning also includes: The constraint condition is to minimize the waiting time of the computing task request queue while minimizing the computing resource loss, and based on the constraint condition, a resource constraint penalty item is added to the computing resource scheduling reward.

8. The heterogeneous computing resource scheduling method based on multi-objective optimization according to claim 1, characterized in that: The heterogeneous computing resource scheduling problem for multi-tasks is constructed as a Markov decision process model, which satisfies the following five-tuple: E={S,A,π,R,G} Among them, the agent is in the environment E, S represents the state space of computing resources; A represents the action space, which is the set of available computing resource scheduling actions of the agent under the computing resource state; π represents the computing resource scheduling strategy, which is the mapping function from the computing resource state to the computing resource scheduling action; R represents the computing resource scheduling reward, that is, the feedback of the environment to the agent after the agent gives the computing resource scheduling action; G represents the return, which is the accumulation of computing resource scheduling rewards over time.

9. A heterogeneous computing resource scheduling device based on multi-objective optimization, characterized in that: include: The first building block includes: The first construction submodule is used to select at least two performance indicators from the two dimensions of task and resource as optimization targets, and establish a multi-objective optimization model for heterogeneous computing resource scheduling; The second construction submodule is used to convert the computing task request process into a computing task waiting model based on queuing theory; The third construction submodule is used to build a multi-task adaptive scheduling model based on reinforcement learning based on the observed resource status; A second construction module is used to construct the multi-task oriented heterogeneous computing resource scheduling problem into a Markov decision process model based on the multi-objective optimization model and the computing task waiting model; The scheduling module is used to realize adaptive multi-task heterogeneous computing resource scheduling based on the Markov decision process model and the trained multi-task adaptive scheduling model.

10. An electronic device, characterized in that: include: at least one memory for storing a computer program; At least one processor is used to execute the program stored in the memory. When the program stored in the memory is executed, the processor is used to execute the method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Intelligent agent training method, cross-domain heterogeneous environment task scheduling method and related device

    CN114757352A

  • Cloud game scene intelligent scheduling method and system based on deep dual reinforcement learning

    CN116360946A

  • Dynamic resource allocation method for edge computing system

    CN116471600A

  • Deep reinforcement learning cooperative scheduling method and device for heterogeneous computing resources

    CN117909044A

  • Heterogeneous computing power-oriented multi-policy intelligent scheduling method and apparatus

    WO2024060571A1

Cited By

  • Intelligent resource scheduling method based on multi-target reinforcement learning

    CN120611920A

  • A Resource Intelligent Scheduling Method Based on Multi-Objective Reinforcement Learning

    CN120611920B

  • Resource scheduling method and device, storage medium and computer program product

    CN122086570A

  • Heterogeneous computing resource scheduling method and apparatus based on multi-objective optimization

    WO2025246348A1