Heterogeneous hardware computing power scheduling method and device, equipment and medium
Patent Information
- Application Number
- CN202410778156.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-09-10
AI Technical Summary
Traditional heterogeneous hardware computing power scheduling methods have deficiencies in resource allocation flexibility and real-time response capabilities, resulting in the inability to quickly reallocate resources when there are sudden batch data processing requirements, increasing processing delays, and reducing system stability and energy management. efficiency.
Through real-time monitoring of usage data of multiple types of hardware, resource load prediction and demand analysis are performed, resource status changes are identified, resource allocation decision models are calculated, resource allocation models are optimized, iterative simulation analyzes task execution and resource changes, and resource configuration parameters are adjusted. Optimize network traffic and bandwidth usage.
It improves the flexibility and response speed of resource utilization, optimizes computing speed and energy consumption, reduces network bandwidth and traffic losses, and enhances the stability and reliability of heterogeneous hardware computing power scheduling.
Smart Images

Figure CN118626263A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computing power scheduling technology, and in particular to heterogeneous hardware computing power scheduling methods, devices, equipment and media. Background Art
[0002] The field of computing power scheduling technology optimizes performance and cost by allocating and managing computing resources. It aims to solve the dynamic matching problem between computing tasks and computing resources in computing systems where the environment and resource requirements change in real time, including processing resource allocation in heterogeneous computing environments, responding to changes in computing requirements in real time, and optimizing energy consumption and processing time. It is applied to cloud computing, data centers, high-performance computing, and edge computing environments, using load balancing, resource prediction, task priority setting, and energy management to ensure efficient use of computing resources, improve processing efficiency, reduce latency, and increase the overall stability of the system.
[0003] Among them, the heterogeneous hardware computing power scheduling method focuses on calculating and optimizing resource allocation in an environment that includes various types of hardware, including CPU, GPU, FPGA and other types of processors. Through intelligent computing power scheduling, it ensures that multiple tasks are allocated to hardware that can effectively process target tasks according to their nature, thereby improving computing speed, reducing energy consumption, optimizing overall system performance, reducing performance loss caused by hardware mismatch, reducing network traffic and energy consumption, and improving processing speed and reducing costs through intelligent task allocation and resource scheduling in heterogeneous hardware environments to meet the needs of complex application scenarios.
[0004] Traditional heterogeneous hardware computing power scheduling methods have deficiencies in resource allocation flexibility and real-time response capabilities. A central decision-making platform is required to process all task offloading decisions, which increases the resource requirements for network traffic and bandwidth between computing power nodes and decision-making platforms. When there is a sudden demand for batch data processing, resources cannot be quickly reallocated to meet task requirements, which increases processing delays and reduces system stability. It is not flexible enough in energy management and optimization of processing time, resulting in energy waste and reduced efficiency of computing power scheduling. Summary of the invention
[0005] The present invention aims at the technical problems existing in the prior art and provides a method, device, equipment and medium for scheduling heterogeneous hardware computing power.
[0006] The technical solution of the present invention to solve the above technical problem is as follows: a heterogeneous hardware computing power scheduling method, comprising the following steps:
[0007] S1: Based on computing resource feature information, real-time monitoring of various types of hardware usage data, including CPU and GPU usage, predicts usage trends of various computing resources, and obtains resource load prediction results;
[0008] S2: Based on the resource load prediction result, analyze the resource request data of multiple tasks in the task queue, combine historical data and current load, evaluate and predict the change trend of resource demand, and obtain a resource demand analysis record;
[0009] S3: Based on the resource demand analysis record, combined with the resource demand and computing load of multiple tasks, identify resource state changes and calculate the probabilities of multiple state transitions to obtain a resource allocation decision model;
[0010] S4: Based on the resource allocation decision model, multiple resource allocation modes are evaluated according to current resource usage and task requirements to obtain a scheduling mode analysis record;
[0011] S5: Based on the scheduling mode analysis record, by iteratively simulating and analyzing various task executions and resource changes, identifying and matching computing resource allocation parameters, and obtaining resource configuration evaluation results;
[0012] S6: Based on the resource configuration evaluation result, the resource allocation parameters are adjusted in combination with the task priority and real-time resource utilization, the allocation status of hardware resources is updated, the network traffic and bandwidth occupancy are optimized, and a heterogeneous computing power scheduling list is obtained.
[0013] As a further solution of the present invention, the resource load prediction results include CPU usage trend analysis results, GPU usage records, and memory usage monitoring data; the resource demand analysis records include storage capacity demand analysis data, network bandwidth demand change information, and process priority evaluation results; the resource allocation decision model includes resource allocation probability information, a state transition matrix, and optimization index analysis results; the scheduling mode analysis record includes resource allocation efficiency information, scheduling strategy compatibility data, and delay prediction information; the resource configuration evaluation results include resource matching effect analysis information, computing resource allocation parameter adjustment results, and task execution efficiency improvement data records; the heterogeneous computing power scheduling list includes a resource allocation list, task execution sequence information, and network traffic optimization results.
[0014] As a further solution of the present invention, based on computing resource feature information, multiple types of hardware usage data, including CPU and GPU usage, are monitored in real time, and usage trends of multiple computing resources are predicted. The steps of obtaining resource load prediction results are specifically as follows:
[0015] S101: Based on computing resource feature information, collect and record usage data of various types of hardware in real time, including CPU utilization, GPU utilization, and memory consumption data, to obtain a hardware usage data set;
[0016] S102: Based on the hardware usage data set, sort the collected data according to the time series relationship, analyze and identify abnormal data and missing data, and generate time series usage data;
[0017] S103: Based on the time series usage data, trend analysis is performed to identify the change trend of computing resource usage and obtain resource load prediction results.
[0018] As a further solution of the present invention, based on the resource load prediction result, the resource request data of multiple tasks in the task queue are analyzed, and the changing trend of resource demand is evaluated and predicted in combination with historical data and current load, and the steps of obtaining the resource demand analysis record are specifically as follows:
[0019] S201: Based on the resource load prediction result, by analyzing the types of multiple computing tasks, multiple tasks in the task queue are analyzed and classified to obtain computing task classification information;
[0020] S202: Based on the computing task classification information, compare and analyze the real-time resource usage and historical data, use the cosine similarity algorithm to evaluate the computing resource types required by various tasks, identify the change pattern of resource demand, and generate a resource demand change model;
[0021] The cosine similarity algorithm is based on the formula:
[0022]
[0023] Calculate the matching degree between the target task and multiple resources, where S is the weighted cosine similarity score and A i is the resource usage of task i, B i is the available quantity of resource type i, P i is the priority weight of resource i, U i is the urgency weight of task i, n is the number of tasks and resource types involved, and i is an index variable used to represent different tasks or resource types.
[0024] S203: Based on the resource demand change model, predict the change trend of multiple resource demands, and evaluate the matching degree between resource demands and real-time loads to obtain a resource demand analysis record.
[0025] As a further solution of the present invention, based on the resource demand analysis record, combined with the resource demand and computing load of multiple tasks, the resource state changes are identified and the probabilities of multiple state transitions are calculated to obtain the resource allocation decision model in the following steps:
[0026] S301: Analyze resource request data of multiple computing tasks based on the resource demand analysis record, compare with the usage data of real-time computing resources, identify utilization rates of multiple resources, and obtain resource matching status records;
[0027] S302: Based on the resource matching state record, analyzing the completion efficiency of various tasks in the differentiated resource configuration, recording the transition probabilities of various load states, and obtaining a state transition probability table;
[0028] S303: Based on the state transition probability table, combined with real-time task requirements and computing resource availability, by simulating multiple resource configuration scenarios, matching resource configuration parameters for multiple task conditions, and obtaining a resource allocation decision model.
[0029] As a further solution of the present invention, based on the resource allocation decision model, multiple resource allocation modes are evaluated according to current resource usage and task requirements, and the steps of obtaining a scheduling mode analysis record are specifically as follows:
[0030] S401: using the resource allocation decision model, identifying the correlation between real-time resource usage and task requirements, and obtaining a correlation analysis result;
[0031] S402: Based on the correlation analysis result, the efficiency levels of various resource allocation modes are evaluated, the impact of various resource scheduling modes on task execution time and resource satisfaction rate is analyzed, and an allocation effect prediction record is obtained;
[0032] S403: Based on the allocation effect prediction record, adjust and optimize computing resource scheduling parameters, optimize resource utilization and task execution delay, and generate a scheduling mode analysis record.
[0033] As a further solution of the present invention, based on the scheduling mode analysis record, the steps of iteratively simulating and analyzing multiple task executions and resource changes, identifying and matching computing resource allocation parameters, and obtaining resource configuration evaluation results are specifically as follows:
[0034] S501: Based on the scheduling mode analysis record, by simulating the execution and resource changes of multiple tasks in differentiated scenarios, scenario simulation execution data is obtained;
[0035] S502: According to the scenario simulation execution data, evaluate the impact of various resource configurations on task completion efficiency, identify resource matching parameters by comparing various configuration results, and generate parameter matching optimization records;
[0036] S503: Based on the parameter matching optimization record, combined with the real-time task type and computing resource load, scheduling parameters are matched for multiple computing resources to obtain resource configuration evaluation results.
[0037] As a further solution of the present invention, based on the resource configuration evaluation result, the resource allocation parameters are adjusted in combination with the task priority and real-time resource utilization, the allocation status of hardware resources is updated, the network traffic and bandwidth occupancy are optimized, and the steps of obtaining the heterogeneous computing power scheduling list are specifically as follows:
[0038] S601: Based on the resource configuration evaluation result, analyzing the processing priorities and real-time resource usage rates of multiple tasks, evaluating resource reallocation requirements, and obtaining reallocation analysis data;
[0039] S602: According to the reallocation analysis data, adjusting allocation parameters of various computing resources, optimizing resource mobilization frequency and network resource requirements, and generating hardware status update records;
[0040] S603: Based on the hardware status update record, the network traffic and bandwidth usage are monitored and analyzed in real time, the network resource allocation parameters are optimized, and a heterogeneous computing power scheduling list is obtained.
[0041] The heterogeneous hardware computing power scheduling device is used to execute the heterogeneous hardware computing power scheduling method, and the heterogeneous hardware computing power scheduling device includes:
[0042] The computing resource monitoring module monitors the usage data of various hardware in real time based on the computing resource feature information, calculates the usage trend of computing resources, and generates load trend calculation information;
[0043] The resource demand analysis module analyzes the resource request data in the task queue based on the load trend calculation information, evaluates resource demand changes by comparing the current load with historical data, and generates a computing power consumption prediction result;
[0044] The state conversion calculation module identifies resource state changes based on the computing power consumption prediction results, combines task requirements and resource load, calculates the possibility of state conversion, and generates state management analysis records;
[0045] The iterative simulation optimization module performs iterative simulation based on the state management analysis record, analyzes task execution and dynamic resource changes, optimizes computing resource allocation, and generates resource management allocation parameters;
[0046] The resource scheduling execution module adjusts the allocation parameters based on the resource management allocation parameters according to task priority and real-time resource utilization, optimizes network bandwidth usage, and generates a heterogeneous computing power scheduling list.
[0047] An electronic device, characterized in that the heterogeneous hardware computing power scheduling device comprises:
[0048] Memory for storing computer software programs;
[0049] The processor is used to read and execute the computer software program, thereby implementing the above-mentioned heterogeneous hardware computing power scheduling method.
[0050] A non-transitory computer-readable storage medium, characterized in that a computer software program is stored in the storage medium, and when the computer software program is executed by a processor, the above-mentioned heterogeneous hardware computing power scheduling method is implemented.
[0051] The beneficial effects of the present invention are: by real-time monitoring and predicting the utilization rates of various types of hardware, combined with the resource request data in the task queue, dynamic prediction of resource requirements and state change analysis are performed, computing resource scheduling parameters are adjusted, and the flexibility of resource utilization is enhanced. The response speed and adaptability of processing tasks are improved. By evaluating the resource allocation mode and adjusting it in real time, the efficiency of processing various computing tasks is improved, the computing speed and energy consumption are optimized, and the network bandwidth and traffic loss are reduced. Combined with the prediction of computing resource usage trends, resource idleness and overuse are reduced, and the stability and reliability of heterogeneous hardware computing power scheduling are enhanced. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] Figure 1 It is a schematic diagram of the method flow of the present invention;
[0053] Figure 2 is a flow chart of the device of the present invention;
[0054] Figure 3 A schematic diagram of an electronic device embodiment of the present invention;
[0055] Figure 4 A schematic diagram of an embodiment of a computer-readable storage medium of the present invention;
[0056] Figure 5 A flowchart for obtaining resource load prediction results of the present invention;
[0057] Figure 6 A flow chart for obtaining resource demand analysis records of the present invention;
[0058] Figure 7 A flowchart for obtaining the resource allocation decision model of the present invention;
[0059] Figure 8 A flowchart for obtaining the scheduling mode analysis record of the present invention;
[0060] Fig. 9 A flowchart for obtaining resource allocation evaluation results of the present invention;
[0061] Fig.10 The flowchart of obtaining the heterogeneous computing power scheduling list of the present invention;
[0062] In the accompanying drawings, the components represented by the reference numerals are listed as follows:
[0063] 500. Electronic device, 510. Memory, 520. Processor, 511. Computer program, 600. Computer-readable storage medium, 611. Computer program. DETAILED DESCRIPTION
[0064] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0065] In the description of this application, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, "plurality" means two or more, unless otherwise clearly and specifically defined.
[0066] In the description of the present application, the term "for example" is used to mean "used as an example, illustration or description". Any embodiment described as "for example" in the present application is not necessarily to be construed as being more preferred or advantageous than other embodiments. The following description is given to enable any technician in the field to implement and use the present invention. In the following description, details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the present invention can be implemented without using these specific details. In other examples, well-known structures and processes will not be elaborated in detail to avoid unnecessary details to obscure the description of the present invention. Therefore, the present invention is not intended to be limited to the embodiments shown, but is consistent with the widest scope consistent with the principles and features disclosed in the present application.
[0067] Example 1
[0068] See also Figure 1 The present invention provides a technical solution: a method for scheduling heterogeneous hardware computing power, comprising the following steps:
[0069] S1: Based on computing resource feature information, real-time monitoring of various types of hardware usage data, including CPU and GPU usage, predicts usage trends of various computing resources, and obtains resource load prediction results;
[0070] S2: Based on the resource load prediction results, analyze the resource request data of multiple tasks in the task queue, combine historical data and current load, evaluate and predict the change trend of resource demand, and obtain resource demand analysis records;
[0071] S3: Based on the resource demand analysis records, combined with the resource demand and computing load of multiple tasks, identify resource state changes and calculate the probabilities of multiple state transitions to obtain a resource allocation decision model;
[0072] S4: Based on the resource allocation decision model, various resource allocation modes are evaluated according to the current resource usage and task requirements to obtain the scheduling mode analysis record;
[0073] S5: Based on the scheduling mode analysis records, through iterative simulation and analysis of various task executions and resource changes, the computing resource allocation parameters are identified and matched to obtain the resource configuration evaluation results;
[0074] S6: Based on the resource configuration evaluation results, the resource allocation parameters are adjusted in combination with the task priority and real-time resource utilization, the allocation status of hardware resources is updated, the network traffic and bandwidth occupancy are optimized, and the heterogeneous computing power scheduling list is obtained.
[0075] The resource load prediction results include CPU usage trend analysis results, GPU usage records, and memory usage monitoring data. The resource demand analysis records include storage capacity demand analysis data, network bandwidth demand change information, and process priority evaluation results. The resource allocation decision model includes resource allocation probability information, state conversion matrix, and optimization indicator analysis results. The scheduling mode analysis records include resource allocation efficiency information, scheduling strategy compatibility data, and delay prediction information. The resource configuration evaluation results include resource matching effect analysis information, computing resource allocation parameter adjustment results, and task execution efficiency improvement data records. The heterogeneous computing power scheduling list includes resource allocation list, task execution sequence information, and network traffic optimization results.
[0076] See also Figure 2 The heterogeneous hardware computing power scheduling device is used to execute the heterogeneous hardware computing power scheduling method, and the heterogeneous hardware computing power scheduling device includes:
[0077] The computing resource monitoring module monitors the usage data of various hardware in real time based on the computing resource feature information, calculates the usage trend of computing resources, and generates load trend calculation information;
[0078] The resource demand analysis module calculates information based on load trends, analyzes resource request data in the task queue, evaluates resource demand changes by comparing current load and historical data, and generates computing power consumption prediction results;
[0079] The state conversion calculation module identifies resource state changes based on the computing power consumption prediction results, combines task requirements and resource load, calculates the possibility of state conversion, and generates state management analysis records;
[0080] The iterative simulation optimization module performs iterative simulation based on the state management analysis records, analyzes task execution and dynamic resource changes, optimizes computing resource allocation, and generates resource management allocation parameters;
[0081] The resource scheduling execution module is based on resource management allocation parameters, adjusts allocation parameters according to task priority and real-time resource utilization, optimizes network bandwidth usage, and generates a heterogeneous computing power scheduling list.
[0082] See also Figure 3 , Figure 3 Schematic diagram of an electronic device provided by an embodiment of the present invention. Figure 3 As shown, an embodiment of the present invention provides an electronic device 500, including a memory 510, a processor 520, and a computer program 511 stored in the memory 510 and executable on the processor 520. When the processor 520 executes the computer program 511, the following steps are implemented:
[0083] The computing resource monitoring module monitors the usage data of various hardware in real time based on the computing resource feature information, calculates the usage trend of computing resources, and generates load trend calculation information;
[0084] The resource demand analysis module calculates information based on load trends, analyzes resource request data in the task queue, evaluates resource demand changes by comparing current load and historical data, and generates computing power consumption prediction results;
[0085] The state conversion calculation module identifies resource state changes based on the computing power consumption prediction results, combines task requirements and resource load, calculates the possibility of state conversion, and generates state management analysis records;
[0086] The iterative simulation optimization module performs iterative simulation based on the state management analysis records, analyzes task execution and dynamic resource changes, optimizes computing resource allocation, and generates resource management allocation parameters;
[0087] The resource scheduling execution module is based on resource management allocation parameters, adjusts allocation parameters according to task priority and real-time resource utilization, optimizes network bandwidth usage, and generates a heterogeneous computing power scheduling list.
[0088] See also Figure 4 , Figure 4 A schematic diagram of an embodiment of a computer-readable storage medium provided in an embodiment of the present invention. Figure 4As shown, this embodiment provides a computer-readable storage medium 600, on which a computer program 611 is stored. When the computer program 611 is executed by a processor, the following steps are implemented:
[0089] S1: Based on computing resource feature information, real-time monitoring of various types of hardware usage data, including CPU and GPU usage, predicts usage trends of various computing resources, and obtains resource load prediction results;
[0090] S2: Based on the resource load prediction results, analyze the resource request data of multiple tasks in the task queue, combine historical data and current load, evaluate and predict the change trend of resource demand, and obtain resource demand analysis records;
[0091] S3: Based on the resource demand analysis records, combined with the resource demand and computing load of multiple tasks, identify resource state changes and calculate the probabilities of multiple state transitions to obtain a resource allocation decision model;
[0092] S4: Based on the resource allocation decision model, various resource allocation modes are evaluated according to the current resource usage and task requirements to obtain the scheduling mode analysis record;
[0093] S5: Based on the scheduling mode analysis records, through iterative simulation and analysis of various task executions and resource changes, the computing resource allocation parameters are identified and matched to obtain the resource configuration evaluation results;
[0094] S6: Based on the resource configuration evaluation results, the resource allocation parameters are adjusted in combination with the task priority and real-time resource utilization, the allocation status of hardware resources is updated, the network traffic and bandwidth occupancy are optimized, and the heterogeneous computing power scheduling list is obtained.
[0095] See also Figure 5 Based on the computing resource feature information, various types of hardware usage data, including CPU and GPU usage, are monitored in real time, and usage trends of various computing resources are predicted. The steps to obtain resource load prediction results are as follows:
[0096] S101: Based on the computing resource feature information, the usage data of various types of hardware are collected and recorded in real time, including CPU utilization, GPU utilization, and memory consumption data. The specific process of obtaining the hardware usage data set is as follows;
[0097] In sub-step S101, based on the computing resource feature information, the utilization data of various types of hardware are collected and recorded in real time, including CPU utilization, GPU utilization, and memory consumption data. The resource monitoring protocol is used to query each hardware interface, obtain data points at fixed time intervals, timestamp each data point, and compare it with historical data to identify sudden increases and decreases in utilization, detect hardware failures and configuration errors, and use the resource utilization monitoring formula to analyze the real-time data. The formula is: Where R(t) represents the resource utilization at time t, N is the number of monitored hardware, and u i (t represents the utilization of the i-th hardware at time t, i represents the index of the hardware device, which is used to distinguish each device among multiple monitoring hardware and obtain the hardware usage data set.
[0098] S102: Based on the hardware usage data set, the collected data is sorted according to the time series relationship, and abnormal data and missing data are analyzed and identified. The specific process of generating time series usage data is as follows;
[0099] In sub-step S102, based on the hardware usage data set, the collected data is sorted according to the time series relationship, and the hardware usage data is sorted according to the timestamp to ensure the continuity and logic of the data. The data integrity check formula is used to analyze and identify anomalies and missing conditions in the data. The formula is: Where C(d) is the integrity score of data d, T is the length of the time series, and v(d,t) is the value of the data point at time t. is the average value of data d, d represents a specific data point and data row in the data set, and t represents the time point, which is used to mark the specific time of data collection. By identifying outliers and missing values in the data set, the data set is cleaned and time series usage data is generated.
[0100] S103: Based on the time series usage data, a trend analysis is performed to identify the change trend of computing resource usage rate, and the specific process of obtaining the resource load prediction result is as follows;
[0101] In sub-step S103, based on the time series usage data, trend analysis is performed to identify the changing trend of computing resource usage, and the moving average method is used to smooth the time series data to reduce the impact of occasional fluctuations and enhance the readability of data trends. The trend analysis formula is used to perform long-term trend analysis on the smoothed data. The formula is T(x)=a+bx+∈ x , where T(x) is the trend value at time x, a is the intercept, which represents the baseline resource utilization, and b is the slope, which represents the rate of change of resource utilization over time, ∈ xis the error term, representing random fluctuations, x represents the time variable in time series analysis, and is used to represent the process of time in trend analysis. It provides a mathematical model for resource utilization trends and provides resource load prediction capabilities through the estimation of parameters a and b to obtain resource load prediction results.
[0102] See also Figure 6 ,Based on the resource load prediction results, analyze the resource request data of multiple tasks in the task queue, combine historical data and current load, evaluate and predict the change trend of resource demand, and obtain the steps of resource demand analysis record as follows:
[0103] S201: Based on the resource load prediction result, by analyzing the types of multiple computing tasks, multiple tasks in the task queue are analyzed and classified, and the specific process of obtaining computing task classification information is as follows;
[0104] In sub-step S201, based on the resource load prediction result, by analyzing the types of various computing tasks, the tasks in the task queue are classified by type using a classification protocol, and the subdivision technology is used to distinguish the subcategories in each type, including graphics processing tasks and data processing tasks, and the behavior pattern of the task is correlated with the resource usage pattern. The formula is: Among them, C i represents the classification result of task i, J is the number of task features considered, β j is the weight coefficient of the jth characteristic, T ij is the performance function of task i on feature j, f(T ij ) is a function that represents the numerical performance of task i on feature j, and the classification information of computing tasks is obtained.
[0105] S202: Based on the computing task classification information, the real-time resource usage and historical data are compared and analyzed, and the cosine similarity algorithm is used to evaluate the computing resource types required for various tasks, identify the change pattern of resource demand, and generate the resource demand change model. The specific process is as follows;
[0106] In sub-step S202, based on the computing task classification information, a comparative analysis is performed on real-time resource usage and historical data, the current resource usage and historical resource utilization data are integrated, and the cosine similarity algorithm is used to evaluate the computing resource requirements of various types of tasks, identify the changing pattern of task resource requirements, and evaluate the matching degree of resource types through vectorized comparison to generate a resource demand change model.
[0107] Cosine similarity algorithm, according to the formula:
[0108]
[0109] Calculate the matching degree between the target task and multiple resources, where S is the weighted cosine similarity score, which is used to quantify the matching degree between the task and the resource, and A i is the resource usage of task i, indicating the target amount of resources consumed by the task during execution, B i is the available amount of resource type i, indicating the total amount of resource type i currently available for allocation, P i is the priority weight of resource i, which is used to adjust the importance of resource type i in the matching process. i is the urgency weight of task i, which is used to adjust the urgency of task i in resource allocation. n is the number of tasks and resource types involved, which is used to define the range of the summation operation. i is an index variable used to represent different tasks or resource types.
[0110] The specific execution process of the formula is as follows:
[0111] For each task i, collect resource usage A i 、Resource availability B i , the priority P of the corresponding weight factor resource i and the urgency of the task i , used to adjust the computing importance of resource and task quantities. High-priority resources and high-urgency tasks receive greater consideration in the allocation process. The quantity, importance, and urgency of resources and tasks are considered to ensure that the allocation of multiple resources matches the task requirements. The parameters are substituted into the formula for calculation to obtain the matching degree S, which is used to evaluate the matching degree between the target task and multiple computing resources and identify the changing pattern of resource requirements.
[0112] S203: Based on the resource demand change model, predict the change trend of multiple resource demands, and evaluate the matching degree between resource demands and real-time loads, and obtain the specific process of resource demand analysis record as follows;
[0113] In sub-step S203, based on the resource demand change model, the change trend of various resource demands is predicted. The resource demand prediction model is used. The model is based on historical resource usage data and current task demand analysis. The formula is: Among them, P r represents the demand forecast value of resource r, γ is the baseline demand level, δ is the adjustment coefficient of the resource demand trend, L is the number of factors affecting resource demand, μ l is the influence weight of the first factor, r l It is the performance value of the target factor in resource demand, predicts the changing trend of resource demand, evaluates the matching degree between resource demand and real-time load, and obtains the resource demand analysis record.
[0114] See also Figure 7Based on the resource demand analysis records, combined with the resource demand and computing load of multiple tasks, the resource state changes are identified and the probabilities of multiple state transitions are calculated. The steps to obtain the resource allocation decision model are as follows:
[0115] S301: Based on the resource demand analysis record, the resource request data of multiple computing tasks are analyzed, and compared with the real-time computing resource usage data, the utilization rate of multiple resources is identified, and the specific process of obtaining the resource matching status record is as follows;
[0116] In sub-step S301, based on the resource demand analysis record, the resource request data of multiple computing tasks are sorted and analyzed, including collecting multiple resource requests of the task, and comparing the target data with the usage data of the real-time computing resources, and using the resource utilization comparison formula to identify the actual utilization of multiple resources. The formula is Among them, U r represents the utilization rate of resource r, r m,req is the request amount of the mth task for resource r, N is the number of resource units, r n,avail For the available quantity of the nth resource unit, the resource matching status is identified, and the resource matching status record is obtained.
[0117] S302: Based on the resource matching state record, the completion efficiency of various tasks in the differentiated resource configuration is analyzed, the transition probability of various load states is recorded, and the specific process of obtaining the state transition probability table is as follows;
[0118] In sub-step S302, based on the resource matching state record, the completion efficiency of various tasks in differentiated resource configuration is analyzed, the completion time of tasks under various load states is calculated, and the probability of tasks switching from one load state to another is counted and recorded, and quantified using the state transition probability formula, which is: Among them, P ij is the probability of transitioning from state i to state j, N ij is the number of transitions from state i to state j during the observation period, N i It is the total number of times state i appears, which provides a basis for optimizing resource allocation and generates a state transition probability table.
[0119] S303: Based on the state transition probability table, combined with real-time task requirements and computing resource availability, by simulating multiple resource configuration scenarios, matching resource configuration parameters for multiple task conditions, the specific process of obtaining the resource allocation decision model is as follows;
[0120] In sub-step S303, based on the state transition probability table, combined with real-time task requirements and computing resource availability, a resource allocation function is defined by simulating multiple resource configuration scenarios. Resources are allocated to each task according to task type, urgency, and expected completion time. The resource allocation decision model is used for calculation. The formula is: Among them, R alloc represents the resource allocation decision result, T is the number of task types, C is the number of configuration scenarios, and w c is the weight of scene c, ψ t,c is the resource requirement coefficient of task t under configuration c, R c In order to configure the available resources under c, optimize resource allocation and meet the needs of various tasks, a resource allocation decision model is obtained.
[0121] See also Figure 8 ,Based on the resource allocation decision model, according to the current resource usage and task requirements,,the steps to evaluate various resource allocation modes and obtain the,scheduling mode analysis record are as follows:
[0122] S401: using the resource allocation decision model, identifying the correlation between real-time resource usage and task requirements, and obtaining the correlation analysis result;
[0123] In sub-step S401, the resource allocation decision model is used to identify the correlation between real-time resource usage and task requirements through data association analysis technology, and the Pearson correlation coefficient is used to calculate the correlation between multiple task requirements and resource usage. The formula is: Among them, r xy is the correlation coefficient between resource usage x and task demand y, x i and i are the data points of single resource usage and task requirements, respectively. and is the corresponding mean, analyze the impact of task requirements on resource usage, and obtain the correlation analysis results.
[0124] S402: Based on the correlation analysis results, the efficiency levels of various resource allocation modes are evaluated, and the impact of various resource scheduling modes on task execution time and resource satisfaction rate is analyzed, and the specific process of obtaining the allocation effect prediction record is as follows;
[0125] In sub-step S402, based on the correlation analysis results, the efficiency level of various resource allocation modes is evaluated. By analyzing the impact of differentiated resource scheduling modes on task execution time and resource satisfaction rate, the efficiency level evaluation formula is used to calculate the performance of various modes. The formula is: Among them, E m represents the efficiency level of resource allocation mode m, I is the number of tasks to be evaluated, and λi is the weight of task i, t i,exp is the expected completion time of task i, t i,act is the actual completion time, J is the number of resource categories, σ j is the satisfaction rate weight of resource j, s j Generate allocation effect prediction records for the satisfaction rate of resource j.
[0126] S403: Based on the allocation effect prediction record, the specific process of adjusting and optimizing the computing resource scheduling parameters, optimizing the resource utilization and task execution delay, and generating the scheduling mode analysis record is as follows;
[0127] In sub-step S403, based on the allocation effect prediction record, the current resource scheduling parameters are analyzed, the key influencing factors of resource utilization and task execution delay are identified, and the scheduling optimization formula is used to adjust and optimize the computing resource scheduling parameters. The formula is: Among them, O sched is the scheduling optimization result, P is the scheduling parameter set, θ p is the optimization coefficient of parameter p, η p is the current value of parameter p, ∈ p is the target value of parameter p. By adjusting key scheduling parameters, resource utilization can be improved, task execution delay can be reduced, and scheduling pattern analysis records can be generated.
[0128] See also Fig. 9 ,Based on the scheduling mode analysis record, through iterative simulation and analysis of various task executions and resource changes, the computing resource allocation parameters are identified and matched, and the steps to obtain the resource configuration evaluation results are as follows:
[0129] S501: Based on the scheduling mode analysis record, the specific process of obtaining the scenario simulation execution data by simulating the execution and resource changes of multiple tasks in differentiated scenarios is as follows;
[0130] In sub-step S501, based on the scheduling mode analysis record, multiple differentiated scenarios are set to simulate the changes in differentiated task types and resource requirements. Through the simulation tool, the resource usage and task execution under the differentiated configuration are observed, and the execution data of each scenario is recorded using the scenario simulation execution formula. The formula is: Among them, S exec (s, t) represents the simulated execution data of task t in scenario s, R is the number of resource types, ξ r,s is the coefficient of variation of resource r in scenario s, φ t,r is the demand coefficient of task t for resource r, which clearly shows the dynamic changes of resource usage under various conditions and obtains the scenario simulation execution data.
[0131] S502: According to the scenario simulation execution data, the impact of various resource configurations on the task completion efficiency is evaluated, and the resource matching parameters are identified by comparing the various configuration results, and the specific process of generating parameter matching optimization records is as follows;
[0132] In sub-step S502, based on the scenario simulation execution data, the impact of various resource configurations on the task completion efficiency is evaluated, the execution efficiency data of each resource configuration is sorted and compared, and the performance of each configuration is quantified using the resource configuration efficiency evaluation formula, which is: Among them, E config (c) represents the efficiency of configuration c, I is the number of tasks considered, ω i is the weight of task i, y i,exp is the expected completion time of task i, y i,act is the actual completion time, J is the number of resource categories, ρ j is the efficiency weight of resource j, v j Through this analysis, a parameter matching optimization record is generated to optimize the utilization of resource j under configuration c.
[0133] S503: Based on the parameter matching optimization record, combined with the real-time task type and computing resource load, the specific process of matching scheduling parameters for multiple computing resources to obtain resource configuration evaluation results is as follows;
[0134] In sub-step S503, based on the parameter matching optimization record, combined with the real-time task type and computing resource load, the scheduling parameters are matched for multiple computing resources, and the resource matching scheduling formula is used to optimize the configuration of each resource. The formula is: Among them, P match represents the optimal scheduling parameter for resource matching, K is the set of parameter types considered, θ k is the adjustment coefficient of parameter k, γ k is the current value of parameter k, δ k is the target optimization value of parameter k. By adjusting the scheduling parameters, optimizing resource utilization and reducing task execution delay, the resource configuration evaluation result is obtained.
[0135] See also Fig.10 Based on the resource configuration evaluation results, the resource allocation parameters are adjusted in combination with the task priority and real-time resource utilization, the allocation status of hardware resources is updated, the network traffic and bandwidth occupancy are optimized, and the steps to obtain the heterogeneous computing power scheduling list are as follows:
[0136] S601: Based on the resource configuration evaluation result, the processing priority and real-time resource utilization rate of multiple tasks are analyzed, and the resource reallocation demand is evaluated. The specific process of obtaining the reallocation analysis data is as follows;
[0137] In sub-step S601, based on the resource allocation evaluation results, the processing priorities of multiple tasks and the real-time utilization rate of resources are collected and analyzed. The resource demand intensity of each task is evaluated through the resource priority analysis formula, and the resource allocation priority is calculated. The formula is: Among them, R need represents the total evaluation value of resource reallocation demand, N is the number of tasks, π n is the priority coefficient of task n, u n For the current resource utilization of task n, identify the priorities of multiple resource reallocations and generate reallocation analysis data.
[0138] S602: According to the reallocation analysis data, the allocation parameters of various computing resources are adjusted, the resource mobilization frequency and network resource requirements are optimized, and the specific process of generating a hardware status update record is as follows;
[0139] In sub-step S602, based on the reallocation analysis data, the allocation parameters of various computing resources are evaluated and adjusted to optimize the resource mobilization frequency and network resource requirements. The resource allocation adjustment formula is used to adjust the hardware and network parameters to respond to the changing task requirements. The formula is: Among them, A update represents the update effect of the hardware status, R is the number of resource types, κ r is the adjustment sensitivity of resource r, Δf r The change in the mobilization frequency of resource r is used to optimize resource allocation efficiency and reduce resource idleness and overload, and generate hardware status update records.
[0140] S603: Based on the hardware status update record, the specific process of optimizing the network resource allocation parameters by real-time monitoring and analyzing the network traffic and bandwidth usage to obtain the heterogeneous computing power scheduling list is as follows;
[0141] In sub-step S603, based on the hardware status update record, the network traffic and bandwidth usage are monitored and analyzed in real time to optimize the network resource allocation parameters. The network resource optimization model is used to adjust the bandwidth and traffic allocation according to the real-time monitoring data. The formula is: Among them, B opt is the optimized bandwidth allocation value, B current Assign the current bandwidth value, D peak is the peak flow demand, D avg For average traffic demand, by balancing peak and average traffic demand, the rationality and efficiency of network resource allocation are optimized to obtain a heterogeneous computing power scheduling list.
[0142] It should be noted that in the above embodiments, the description of each embodiment has its own emphasis, and for parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0143] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0144] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded computer, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0145] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0146] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0147] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0148] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A method for scheduling computing power of heterogeneous hardware, characterized in that: The following steps are involved: Based on computing resource feature information, real-time monitoring of various types of hardware usage data, including CPU and GPU usage, predicts usage trends of various computing resources, and obtains resource load prediction results; Based on the resource load prediction result, the resource request data of multiple tasks in the task queue are analyzed, and the changing trend of resource demand is evaluated and predicted in combination with historical data and current load to obtain a resource demand analysis record; Based on the resource demand analysis record, combined with the resource demand and computing load of multiple tasks, resource state changes are identified and the probabilities of multiple state transitions are calculated to obtain a resource allocation decision model; Based on the resource allocation decision model, multiple resource allocation modes are evaluated according to current resource usage and task requirements to obtain a scheduling mode analysis record; Based on the scheduling mode analysis record, by iteratively simulating and analyzing multiple task executions and resource changes, computing resource allocation parameters are identified and matched to obtain resource configuration evaluation results; Based on the resource configuration evaluation results, the resource allocation parameters are adjusted in combination with the task priority and real-time resource utilization, the allocation status of hardware resources is updated, the network traffic and bandwidth occupancy are optimized, and a heterogeneous computing power scheduling list is obtained.
2. The heterogeneous hardware computing power scheduling method according to claim 1, characterized in that: The resource load prediction results include CPU usage trend analysis results, GPU usage records, and memory usage monitoring data; the resource demand analysis records include storage capacity demand analysis data, network bandwidth demand change information, and process priority evaluation results; the resource allocation decision model includes resource allocation probability information, state conversion matrix, and optimization index analysis results; the scheduling mode analysis record includes resource allocation efficiency information, scheduling strategy compatibility data, and delay prediction information; the resource configuration evaluation results include resource matching effect analysis information, computing resource allocation parameter adjustment results, and task execution efficiency improvement data records; the heterogeneous computing power scheduling list includes resource allocation list, task execution sequence information, and network traffic optimization results.
3. The heterogeneous hardware computing power scheduling method according to claim 1, characterized in that: Based on the computing resource feature information, real-time monitoring of various types of hardware usage data, including CPU and GPU usage, is performed to predict the usage trends of various computing resources. The specific steps to obtain resource load prediction results are as follows: Based on computing resource feature information, the usage data of various types of hardware are collected and recorded in real time, including CPU utilization, GPU utilization, and memory consumption data, to obtain a hardware usage data set; Based on the hardware usage data set, the collected data is sorted according to a time series relationship, abnormal data and missing data are analyzed and identified, and time series usage data is generated; Based on the time series usage data, trend analysis is performed to identify the changing trend of computing resource usage and obtain resource load prediction results.
4. The heterogeneous hardware computing power scheduling method according to claim 1, characterized in that: Based on the resource load prediction result, the resource request data of multiple tasks in the task queue are analyzed, and the changing trend of resource demand is evaluated and predicted in combination with historical data and current load. The steps of obtaining the resource demand analysis record are specifically as follows: Based on the resource load prediction result, by analyzing the types of multiple computing tasks, multiple tasks in the task queue are analyzed and classified to obtain computing task classification information; Based on the computing task classification information, a comparative analysis is performed on real-time resource usage and historical data, and a cosine similarity algorithm is used to evaluate the types of computing resources required for various tasks, identify the change pattern of resource demand, and generate a resource demand change model; The cosine similarity algorithm is based on the formula: Calculate the matching degree between the target task and multiple resources, where S is the weighted cosine similarity score and A i is the resource usage of task i, B i is the available quantity of resource type i, P i is the priority weight of resource i, U i is the urgency weight of task i, n is the number of tasks and resource types involved, and i is an index variable used to represent different tasks or resource types; Based on the resource demand change model, the change trends of various resource demands are predicted, and the matching degree between resource demands and real-time loads is evaluated to obtain a resource demand analysis record.
5. The heterogeneous hardware computing power scheduling method according to claim 1, characterized in that: Based on the resource demand analysis record, combined with the resource demand and computing load of multiple tasks, the resource state changes are identified and the probabilities of multiple state transitions are calculated to obtain the resource allocation decision model in the following steps: Based on the resource demand analysis record, the resource request data of multiple computing tasks are analyzed, and compared with the usage data of real-time computing resources, the utilization rates of multiple resources are identified, and a resource matching status record is obtained; Based on the resource matching state record, analyzing the completion efficiency of various tasks in differentiated resource configuration, recording the transition probabilities of various load states, and obtaining a state transition probability table; Based on the state transition probability table, combined with real-time task requirements and computing resource availability, a resource allocation decision model is obtained by simulating multiple resource configuration scenarios and matching resource configuration parameters for multiple task conditions.
6. The heterogeneous hardware computing power scheduling method according to claim 1, characterized in that: Based on the resource allocation decision model, multiple resource allocation modes are evaluated according to current resource usage and task requirements, and the steps of obtaining the scheduling mode analysis record are as follows: Using the resource allocation decision model, the correlation between real-time resource usage and task requirements is identified to obtain a correlation analysis result; Based on the correlation analysis results, the efficiency levels of various resource allocation modes are evaluated, the impact of various resource scheduling modes on task execution time and resource satisfaction rate are analyzed, and the allocation effect prediction record is obtained; Based on the allocation effect prediction record, the computing resource scheduling parameters are adjusted and optimized, resource utilization and task execution delay are optimized, and a scheduling mode analysis record is generated.
7. The heterogeneous hardware computing power scheduling method according to claim 1, characterized in that: Based on the resource configuration evaluation result, the resource allocation parameters are adjusted in combination with the task priority and real-time resource utilization, the allocation status of hardware resources is updated, the network traffic and bandwidth occupancy are optimized, and the steps of obtaining the heterogeneous computing power scheduling list are as follows: Based on the resource configuration evaluation results, analyzing the processing priorities and real-time resource usage rates of multiple tasks, evaluating resource reallocation requirements, and obtaining reallocation analysis data; According to the reallocation analysis data, adjusting allocation parameters of various computing resources, optimizing resource mobilization frequency and network resource requirements, and generating hardware status update records; Based on the hardware status update record, the network traffic and bandwidth usage are monitored and analyzed in real time, the network resource allocation parameters are optimized, and a heterogeneous computing power scheduling list is obtained.
8. A heterogeneous hardware computing power scheduling device, characterized in that: The heterogeneous hardware computing power scheduling device is used to execute the heterogeneous hardware computing power scheduling method according to any one of claims 1 to 7, and the heterogeneous hardware computing power scheduling device includes: The computing resource monitoring module monitors the usage data of various hardware in real time based on the computing resource feature information, calculates the usage trend of computing resources, and generates load trend calculation information; The resource demand analysis module analyzes the resource request data in the task queue based on the load trend calculation information, evaluates resource demand changes by comparing the current load with historical data, and generates a computing power consumption prediction result; The state conversion calculation module identifies resource state changes based on the computing power consumption prediction results, combines task requirements and resource load, calculates the possibility of state conversion, and generates state management analysis records; The iterative simulation optimization module performs iterative simulation based on the state management analysis record, analyzes task execution and dynamic resource changes, optimizes computing resource allocation, and generates resource management allocation parameters; The resource scheduling execution module adjusts the allocation parameters based on the resource management allocation parameters according to task priority and real-time resource utilization, optimizes network bandwidth usage, and generates a heterogeneous computing power scheduling list.
9. An electronic device, characterized in that: The heterogeneous hardware computing power scheduling device includes: Memory for storing computer software programs; A processor is used to read and execute the computer software program, thereby implementing the heterogeneous hardware computing power scheduling device described in any one of claims 1-7.
10. A non-transitory computer-readable storage medium, characterized in that: The storage medium stores a computer software program, and when the computer software program is executed by the processor, the heterogeneous hardware computing power scheduling method as described in any one of claims 1 to 7 is implemented.
Citation Information
Cited By
Intelligent hardware adjustment method and system for program execution process analysis
CN118796483A
Multi-terminal automatic operation and maintenance management method and system
CN118869704A
Mobile base station computing power management method and related device
CN118890657A
Intelligent scheduling method and system for heterogeneous equipment system
CN118939438A
GPU intelligent computing power control method and system based on load identification recommendation
CN119002238A
