SSWS scheduling algorithm based on specific subtask

By introducing the SSWS scheduling algorithm based on specific subtasks in the cloud environment, dynamically calculating downward weights and optimizing task allocation, the problem of low resource utilization and scheduling success rate in the existing technology is solved, and more efficient resource utilization is achieved. and data transmission efficiency, improving the economic benefits and service competitiveness of cloud service providers.

CN118796393APending Publication Date: 2024-10-18CHINA TELECOM CLOUD TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410863310.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-29
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

The existing technology lacks research on optimizing resource utilization (UR) and scheduling success rate (SR) in DAG scheduling in cloud environments, especially the lack of emphasis on data transmission overhead, which affects the resource utilization efficiency of cloud service providers. and service competitiveness.

Method used

An SSWS scheduling algorithm based on specific subtasks is proposed. By dynamically calculating downward weights and the concept of specific subtasks, task allocation is optimized to ensure that parent tasks are executed first and reduce data transmission overhead. The core algorithm is to combine tasks and their specific subtasks. scheduled on the same processor.

Benefits of technology

It improves the resource utilization and scheduling success rate, reduces the data transmission overhead of tasks between different processors, meets the actual needs of cloud computing tasks, and improves the economic benefits and service competitiveness of cloud service providers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118796393A_ABST
    Figure CN118796393A_ABST
Patent Text Reader

Abstract

The invention discloses a specific subtask-based SSWS scheduling algorithm, which comprises the following steps of: S1, taking a ready task list, calculating Ranks of tasks according to a priority ranking strategy, ranking the Ranks, and selecting the task with the highest priority; s2, calculating the PW of all processors, selecting the processor with the minimum PW to distribute the task, if no processor can be inserted, determining that task scheduling fails, and determining that workflow scheduling fails; and S3, finally updating the Rank of the task, repeating the above steps until all tasks are successfully scheduled, so that the workflow scheduling is successful, or else, the workflow scheduling fails. According to the method, a top-down dynamic weight calculation method is provided, so that the downward weight can be dynamically changed according to the processor distribution condition of the parent task in the scheduling process. According to the method, the actual situation of cloud computing task scheduling can be met, that is, the sub-tasks can start to be executed only after the parent tasks are executed and data are transmitted to the sub-tasks.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of task scheduling and distributed system scheduling, and in particular to a SSWS scheduling algorithm based on specific subtasks. Background Art

[0002] At present, the research on DAG scheduling problems in cloud environments focuses more on optimizing the overall completion time, optimizing costs and multi-objective optimization, and tends to consider optimization problems from the user's perspective. However, from the perspective of cloud service providers, the two QoS, resource utilization rate UR and scheduling success rate SR, are closely related to benefits. There are a large number of computing, storage, and network resources in the cloud environment, and the pay-as-you-go method means that improving UR will generate more economic benefits. Improving SR can not only improve user service satisfaction and improve the service competitiveness of cloud service providers, but also provide services to more users and generate more benefits.

[0003] In the existing literature on optimizing resource utilization and scheduling success rate, most of them use methods such as task replication, clustering and random search. Compared with these methods, the list scheduling method has the characteristics of low complexity, high execution efficiency and high practicality. However, there are few studies on optimizing resource utilization and scheduling success rate in the existing literature on list scheduling methods, and the degree of attention paid to data transmission overhead is not high. Summary of the invention

[0004] The purpose of this section is to summarize some aspects of embodiments of the present invention and briefly introduce some preferred embodiments. Some simplifications or omissions may be made in this section and the specification abstract and the invention title of this application to avoid blurring the purpose of this section, the specification abstract and the invention title, and such simplifications or omissions cannot be used to limit the scope of the present invention.

[0005] In order to solve the above technical problems, the present invention provides the following technical solutions:

[0006] In a first aspect, the present invention provides a SSWS scheduling algorithm based on a specific subtask, comprising:

[0007] S1. Take the list of ready tasks, calculate and sort the tasks according to the priority sorting strategy, and select the task with the highest priority.

[0008] S2. Calculate the PW of all processors and select the processor with the smallest PW to assign the task. If no processor can be inserted, the task scheduling fails and the workflow scheduling fails.

[0009] S3. Finally, update the Rank of the task and repeat the above steps until all tasks are successfully scheduled. If so, the workflow scheduling is successful. Otherwise, the workflow scheduling fails.

[0010] As a preferred solution of the SSWS scheduling algorithm based on a specific subtask described in the present invention, the dynamic downward weight is proposed in S1: the downward weight that will be dynamically changed according to the processor allocation of the parent task during the scheduling process, the downward weight Rank d The smaller the task, the higher the priority. The Rank of the parent task d Must be smaller than the subtask.

[0011] As a preferred solution of the SSWS scheduling algorithm based on specific subtasks described in the present invention, the identification concept of the subtask is that except for the export task, the specific subtask of each task is the subtask with the longest data transmission time. succ (v i )express.

[0012] As a preferred solution of the SSWS scheduling algorithm based on specific subtasks described in the present invention, wherein: succ (v i )The specific formula is:

[0013]

[0014] As a preferred solution of the SSWS scheduling algorithm based on specific subtasks described in the present invention, wherein: d The calculation formula is as follows:

[0015]

[0016] in It is task v i Average execution time across all processors.

[0017] As a preferred solution of the SSWS scheduling algorithm based on specific subtasks described in the present invention, wherein: the task v to be assigned with the highest priority calculated in S2 i , calculate v i On all processors p The earliest suitable gap, the earliest start execution time est, and the processor weight PW.

[0018] As a preferred solution of the SSWS scheduling algorithm based on specific subtasks described in the present invention, wherein: the processor r p The weight PW(v i , r p ) has an initial value of est(v i , r p ), the calculation is based on the latest arriving parent task latestpred(v i , rp ), when certain conditions are met, PW can be subtracted from the compensation value θ to make the priority of processor rp greater.

[0019] As a preferred solution of the SSWS scheduling algorithm based on a specific subtask described in the present invention, the calculation formula of the PW is as follows:

[0020]

[0021] As a preferred solution of the SSWS scheduling algorithm based on specific subtasks described in the present invention, if v in S2 has no suitable gap to be inserted on a certain processor, the processor will not be considered; if v has no suitable gap to be inserted on all processors, the workflow scheduling fails.

[0022] In a second aspect, the present invention further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the above-mentioned SSWS scheduling algorithm based on a specific subtask when executing the computer program.

[0023] Beneficial effects of the present invention:

[0024] 1. A top-down dynamic weight calculation method is proposed, which enables the downward weight to be dynamically changed according to the processor allocation of the parent task during the scheduling process. This method can meet the actual situation of cloud computing task scheduling, that is, the child task can only start to execute after the parent task is completed and the data is transferred to the child task. The processor allocation of the parent task will affect the processor allocation of the child task, but the processor allocation of the child task will not affect the processor allocation of the parent task.

[0025] 2. In order to reduce the data transmission overhead of tasks in the process of scheduling on different processors, the present invention introduces the concept of specific subtasks as a key indicator for processor allocation, and proposes a core algorithm of "scheduling tasks and their specific subtasks on the same processor". BRIEF DESCRIPTION OF THE DRAWINGS

[0026] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor. Among them:

[0027] Figure 1 This is a diagram illustrating a specific subtask in a SSWS scheduling algorithm based on a specific subtask proposed by the present invention;

[0028] Figure 2Rank in Example 2 d Schematic diagram of the calculation process. DETAILED DESCRIPTION

[0029] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the accompanying drawings.

[0030] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.

[0031] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor does it refer to a separate or selective embodiment that is mutually exclusive with other embodiments.

[0032] Example 1

[0033] Reference Figure 1 The present invention provides a SSWS scheduling algorithm based on specific subtasks, including:

[0034] S1. Take the list of ready tasks, calculate and sort the tasks according to the priority sorting strategy, and select the task with the highest priority.

[0035] S2. Calculate the PW of all processors and select the processor with the smallest PW to assign the task. If no processor can be inserted, the task scheduling fails and the workflow scheduling fails.

[0036] S3. Finally, update the Rank of the task and repeat the above steps until all tasks are successfully scheduled. If so, the workflow scheduling is successful. Otherwise, the workflow scheduling fails.

[0037] Among them, the dynamic downward weight is proposed in S1: the downward weight that will be dynamically changed according to the processor allocation of the parent task during the scheduling process, and the downward weight Rank d The smaller the task, the higher the priority. The Rank of the parent task d It must be smaller than the child task, ensuring that the parent task will be executed before the child task.

[0038] Furthermore, the subtask identification concept is that except for the export task, the specific subtask of each task is the subtask with the longest data transmission time. succ (v i )express.

[0039] Furthermore, the critical succ (v i )The specific formula is:

[0040]

[0041] Furthermore, the Rank d The calculation formula is as follows:

[0042]

[0043] in It is task v i Average execution time across all processors.

[0044] Furthermore, the task v with the highest priority to be assigned calculated in S2 is i , calculate v i On all processors p The earliest suitable gap on the network, the earliest execution start time est, the processor weight PW, and then v i Assign to the processor with the smallest PW p Execute on.

[0045] Furthermore, the processor r p The weight PW(v i , r p ) has an initial value of est(v i , r p ), the calculation is based on the latest arriving parent task latestpred(v i , r p ), when certain conditions are met, PW can be subtracted from the compensation value θ to make the priority of processor rp greater.

[0046] Furthermore, the calculation formula of the PW is as follows:

[0047]

[0048] Furthermore, if there is no suitable space for inserting v in S2 on a certain processor, the processor will not be considered; if there is no suitable space for inserting v on all processors, the workflow scheduling fails, and the scheduling failure updates the Rank of the task.

[0049] This embodiment further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the above-mentioned SSWS scheduling algorithm based on a specific subtask when executing the computer program.

[0050] The computer device may be a terminal, and the computer device includes a processor, a memory, a communication interface, a display screen and an input device connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. The display screen of the computer device may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device may be a touch layer covering the display screen, or a key, trackball or touchpad provided on the housing of the computer device, or an external keyboard, touchpad or mouse, etc.

[0051] Example 2

[0052] according to Figure 2 This is the second embodiment of the present invention. This embodiment is different from the first embodiment in that it is to illustrate the Rank d changes.

[0053] exist Figure 2 In the DAG diagram shown, assuming that the execution time of all tasks is 10, v1 is scheduled to r1, and the Rank of all tasks is calculated according to the formula d As shown in the first row of the following table. If v5 is then scheduled to r1 and v4 is scheduled to r2, then v5 and v1 are on the same processor, and the data transmission time between them becomes 0, and Rank d (v5) becomes 10, and the Rank is recalculated according to the formula d (v6) is still 37. The Rank of all tasks after scheduling v5 and v4 d As shown in the second row of the following table, v3 is then scheduled to r1, and v2 is then scheduled to r2. v3 and v1 are on the same processor, and the data transmission time between them becomes 0. Rank d (v3) becomes 10, and the Rank is recalculated according to the formula d (v6) becomes 35, the Rank of all tasks after scheduling v3 and v2 d As shown in the third row of the table below, v6 is finally dispatched to r2 and the Rank is recalculated. d (v6) becomes 23, the Rank of all tasks after scheduling v6 d As shown in the fourth row of the table below.

[0054]

[0055] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.

Claims

1. A SSWS scheduling algorithm based on specific subtasks, Features: include: S1. Take the list of ready tasks, calculate and sort the tasks according to the priority sorting strategy, and select the task with the highest priority. S2. Calculate the PW of all processors and select the processor with the smallest PW to assign the task. If no processor can be inserted, the task scheduling fails and the workflow scheduling fails. S3. Finally, update the Rank of the task and repeat the above steps until all tasks are successfully scheduled. If so, the workflow scheduling is successful. Otherwise, the workflow scheduling fails.

2. According to claim 1, a SSWS scheduling algorithm based on specific subtasks, Features: The dynamic downward weight proposed in S1 is a downward weight that changes dynamically according to the processor allocation of the parent task during the scheduling process. d The smaller the task, the higher the priority. The Rank of the parent task d Must be smaller than the subtask.

3. According to claim 2, a SSWS scheduling algorithm based on specific subtasks, Features: The concept of identifying subtasks is that, except for the export task, the specific subtask of each task is the subtask with the longest data transmission time. succ (v i )express.

4. According to claim 3, a SSWS scheduling algorithm based on specific subtasks, Features: The critical succ (v i )The specific formula is:

5. The SSWS scheduling algorithm based on specific subtasks according to claim 4, Features: The Rank d The calculation formula is as follows: in It is task v i Average execution time across all processors.

6. The SSWS scheduling algorithm based on specific subtasks according to claim 5, Features: The task v with the highest priority to be assigned calculated in S2 i , calculate v i On all processors p The earliest suitable gap, the earliest start execution time est, and the processor weight PW.

7. The SSWS scheduling algorithm based on specific subtasks according to claim 6, Features: The processor p The weight PW(v i , r p ) has an initial value of est(v i , r p ), the calculation is based on the latest arriving parent task latestpred(v i , r p ), when certain conditions are met, PW can be subtracted from the compensation value θ to make the priority of processor rp greater.

8. The SSWS scheduling algorithm based on specific subtasks according to claim 7, Features: The calculation formula of PW is as follows:

9. The SSWS scheduling algorithm based on specific subtasks according to claim 8, Features: The S2 i If there is no suitable space to insert on a processor, the processor will not be considered; if v i If there is no suitable slot to insert on all processors, the workflow scheduling fails.

10. A computer device comprising a memory and a processor, wherein the memory stores a computer program. Features: When the processor executes the computer program, the SSWS scheduling algorithm based on a specific subtask described in any one of claims 1 to 9 is implemented.