High energy efficiency security-aware task scheduling method and device for heterogeneous multi-core system
By prioritizing the allocation of tasks with security service requirements in a heterogeneous multi-core system and adjusting the task level under constraints of energy consumption and utilization, the problem of uneven task allocation in existing technologies is solved, thereby improving the quality and efficiency of the system's security services.
Patent Information
- Application Number
- CN202311189125.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-14
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2043-09-14
AI Technical Summary
Existing task allocation algorithms for heterogeneous multi-core systems have shortcomings in considering security quality of service and energy consumption, resulting in some cores being overloaded or idle for too long, failing to meet the security quality of service requirements and task allocation efficiency needs in practical applications.
By setting task allocation priorities, tasks with security service requirements are allocated first. Under the premise of meeting system energy consumption and task deadlines, the security service level of tasks and processor core utilization are calculated and adjusted to optimize the task allocation matrix.
While ensuring the quality of system security services, the system efficiency was improved, complexity and execution time were reduced, processor core utilization was fully utilized, and the quality of security services was enhanced.
Smart Images

Figure CN117215748B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of computer architecture, specifically relating to a high-efficiency security-aware task scheduling method and apparatus for heterogeneous multi-core systems. Background Technology
[0002] Heterogeneous multi-core systems include multiple processors that can execute different types of tasks simultaneously. Different tasks need to be assigned to appropriate processors for execution, and task allocation algorithms are an important technology for heterogeneous multi-core on-chip systems.
[0003] Heterogeneous multi-core systems are widely used in embedded real-time systems and Internet of Things (IoT) technologies. Because devices using heterogeneous multi-core systems need to connect to communication networks, this creates opportunities for cyberattacks, posing serious threats to personal privacy and data security. This necessitates the ability of heterogeneous multi-core systems to securely execute tasks. Currently, systems typically employ additional security services to provide security mechanisms against these potential threats. These security services are often used to defend against various attacks, such as keyword attacks, modification attacks, and forgery attacks, thereby achieving security goals of confidentiality, authentication, and integrity.
[0004] In existing heterogeneous multi-core on-chip system task allocation schemes, commonly used methods include the Least Loss Energy Density (LLED) algorithm and the Improved Least Loss Energy Density (ILLED) algorithm from heuristic algorithms, as well as the Relaxation-based Naive Rounding Algorithm (RNRA) from approximation algorithms.
[0005] Both the LLED algorithm and the improved ILLED algorithm take system energy consumption as the algorithm target. The task model can be considered as an independent set of tasks such as frame tasks and periodic tasks. The standard is to allocate tasks to cores with low energy consumption. However, simply pursuing lower energy consumption without considering the utilization rate of the cores occupied by the tasks will cause some cores to be overloaded, resulting in tasks exceeding their deadlines, while some cores have a long idle time.
[0006] The RNRA algorithm models the energy consumption optimization problem on heterogeneous multi-core systems as a convex optimization model. Compared with heuristic algorithms, it achieves better energy-saving performance with a longer solution time and can be extended to periodic task models.
[0007] When the above technical solutions are applied to heterogeneous multi-core systems with security service requirements, the LLED and ILLED algorithms have low security service quality and cannot meet the security service quality requirements in most practical applications. Although RNRA can provide high security service quality, the task allocation time is long and the task allocation failure rate is high. Summary of the Invention
[0008] To address the aforementioned problems in the prior art, this invention provides a high-energy-efficiency security-aware task scheduling method and apparatus for heterogeneous multi-core systems, thereby improving system efficiency while ensuring the quality of system security services.
[0009] The high-energy-efficiency security-aware task scheduling method for heterogeneous multi-core systems of the present invention includes:
[0010] Step 1: Set the allocation priority of each task. For tasks with security service requirements, set the allocation priority of each task in descending order of unit security probability; for tasks without security service requirements, set the allocation priority of each task in descending order of execution efficiency difference; the allocation priority of tasks with security requirements is higher than that of tasks without security requirements.
[0011] Step 2: Assign tasks in descending order of priority to obtain a task assignment matrix;
[0012] Step 3: Calculate the system's total energy consumption to be no greater than the system's budgeted energy consumption, and to ensure that the security service level of each task meets the system's task deadline.
[0013] Step 4: Round down the security service level of each task to obtain the rounded security service level of each task, and use the security service level and the rounded security service level to calculate the remaining utilization of each processor core.
[0014] Step 5: Set the final security service level for each task on each processor core based on the remaining utilization of each processor core.
[0015] Furthermore, step one includes:
[0016] Select the tasks τ that have no assigned priority in sequence. i ;
[0017] If τ i There is a need for security services, and the calculation of τ is required. i Unit safety probability
[0018]
[0019] If τ i No security service required, calculate τ i Poor execution efficiency
[0020]
[0021] According to each task and Set the priority of each task;
[0022] Wherein, the λ i For task τ i The positive risk coefficient, where i is the task number. For τ i The maximum execution efficiency across all processor cores. For τ i The minimum execution efficiency across all processor cores.
[0023] Furthermore, step two includes:
[0024] Select the task with the highest priority to be assigned. i ;
[0025] The τ i Allocate to areas with a residual utilization rate of not less than τ i The processor core π, which has the highest execution efficiency among the processor cores required for utilization. j ;
[0026] Obtain the task assignment matrix Assign;
[0027]
[0028] in, For task τ i In processor core π j The distribution coefficient on, Represents task τ i Already allocated to processor core π j , Represents task τ i Unassigned to processor core π j j is the processor core number.
[0029] Furthermore, step four includes:
[0030] π-core computing processor j The sum of utilization rates u j_de ;
[0031]
[0032] Security service level for each mission i Round down to obtain the rounded security service level for each task.
[0033] Calculate the utilization rate u of each processor core after rounding. j_tr ;
[0034]
[0035] Calculate the remaining utilization u of each processor core j_remain ;
[0036] u j_remain =u j_de -u j_tr ,j∈[1,J]
[0037] Among them, A i f is a constant related to cryptographic algorithms. j It is the processor core π j Execution frequency; C i For task τ i Worst-case instruction cycle, T i For task τ i The cycle, The task is τ i In processor core π j On the execution efficiency;
[0038] Furthermore, step five includes:
[0039] Tasks are assigned to processor cores in descending order of priority. j On the task τ i ;
[0040] Set τ i The final security service level is set to the highest security service level that meets the system's total energy consumption and residual utilization conditions;
[0041] The conditions for total energy consumption and residual utilization rate are as follows:
[0042] E total ≤E budget
[0043]
[0044] Wherein, E total E represents the total energy consumption of the system. budget For system budget energy consumption, For task τ i The execution time of the security component.
[0045] The high-energy-efficiency security-aware task scheduling device for heterogeneous multi-core systems of the present invention includes:
[0046] The task allocation priority setting module is used to set the allocation priority of each task. For tasks with security service requirements, the allocation priority of each task is set in descending order of unit security probability; for tasks without security service requirements, the allocation priority of each task is set in descending order of execution efficiency difference; the allocation priority of tasks with security requirements is higher than that of tasks without security requirements.
[0047] The task allocation module allocates tasks in descending order of priority to obtain a task allocation matrix.
[0048] The task security service level calculation module is used to calculate the security service level of each task so that the total system energy consumption does not exceed the system budget energy consumption and meets the system task deadline.
[0049] The remaining utilization calculation module is used to calculate the remaining utilization of each processor core using the security service level of each task and the rounded security service level.
[0050] The final security service level setting module is used to set the final security service level of each task on each processor core based on the remaining utilization of each processor core.
[0051] Furthermore, the task allocation priority setting module includes:
[0052] The first task selection unit is used to select tasks τ from the task set that have not been assigned a priority. i Unit safety probability calculation unit, used to calculate the unit safety probability of tasks with safety requirements.
[0053]
[0054] The execution efficiency difference calculation unit is used to calculate the execution efficiency difference of tasks without security requirements.
[0055]
[0056] The task allocation priority setting unit is used to prioritize tasks. and Set the priority of each task;
[0057] Wherein, the λ i For task τ i The positive risk coefficient, where i is the task number. For τ i The maximum execution efficiency across all processor cores. For τ i The minimum execution efficiency across all processor cores.
[0058] Furthermore, the task allocation module includes:
[0059] The second task selection unit is used to select the task with the highest priority from the task set for assignment.
[0060] The task allocation unit is used to assign the task to be allocated to the processor core π, which has the highest execution efficiency among the processor cores whose remaining utilization is not less than the utilization required by the task. j ; Obtain the task assignment matrix Assign;
[0061]
[0062] Among them, matrix elements For task τ i In processor core π j The distribution coefficient on, Represents task τ i Already allocated to processor core π j , Represents task τ i Unassigned to processor core π j , where i is the task number and j is the processor number.
[0063] Furthermore, the remaining utilization rate calculation module includes:
[0064] Utilization calculation unit, used to calculate the utilization of each processor core. j_de ;
[0065]
[0066] Security service level rounding unit, used to round the security service level of each task. i Round down to obtain the rounded security service level for each task.
[0067] The rounding utilization calculation unit is used to calculate the rounded utilization of each processor core. j_tr ;
[0068]
[0069] The remaining utilization calculation unit is used to calculate the remaining utilization u of each processor core. j_remain ;
[0070] u j_remain =u j_de -u j_tr ,j∈[1,J]
[0071] Among them, A i f is a constant related to cryptographic algorithms. j It is the processor core π jExecution frequency; C i For task τ i Worst-case instruction cycle, T i For task τ i The cycle, The task is τ i In processor core π j Execution efficiency.
[0072] Furthermore, the final security service level setting module includes:
[0073] The third task selection unit is used to select tasks assigned to processor cores in descending order of task allocation priority. j On the task τ i ;
[0074] The final security service level setting unit is used to set the task τ i The final security service level is set to the highest security service level that meets the system energy consumption and utilization conditions;
[0075] The system energy consumption and utilization conditions are as follows:
[0076] E total ≤E budget
[0077]
[0078] Wherein, E total E represents the total energy consumption of the system. budget For system budget energy consumption, For task τ i The execution time of the security component.
[0079] In this invention, during task scheduling in a heterogeneous multi-core system, tasks with and without security service requirements are assigned in an order based on their unit security probability and execution efficiency difference, with priority given to tasks with security service requirements. This effectively ensures the system's security service quality. By rounding the security service level of tasks while satisfying all constraints and maximizing security service quality, system complexity and execution time are effectively reduced while maintaining task allocation success rate. Furthermore, by increasing the task security service level and fully utilizing processor cores, the system's security service quality is further enhanced, while meeting power consumption constraints and not exceeding core utilization. Attached Figure Description
[0080] Figure 1 This is a flowchart of the method in specific embodiment 1 of the present invention;
[0081] Figure 2This is a schematic diagram of the device structure in specific embodiment 2 of the present invention;
[0082] Figure 3 This is a schematic diagram of the task allocation priority setting module structure in specific embodiment 2 of the present invention;
[0083] Figure 4 This is a schematic diagram of the residual utilization rate calculation module in specific embodiment 2 of the present invention;
[0084] Figure 5 This is a schematic diagram of the final security service level setting module structure in specific embodiment 2 of the present invention. Detailed Implementation
[0085] To better illustrate the technical solution of the present invention, the specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
[0086] In the following specific embodiments of the present invention, the system processor core set Π = {π} 1 ,π 2 ,…π j ,…π J}, including J processor cores, and a set of periodic tasks to be allocated Γ={τ1,τ2,…,τ i …,τ I}, including I unassigned periodic tasks, J < I. Task τ i The worst-case instruction cycle is C i The task period is T. i The security service type is S i Ideal security service level is The required security service unit data size is b i Task τ i In processor core π j The execution efficiency is i is the task number, j is the processor core number, and β j is the architecture coefficient of processor j, and its value is a constant related to the processor design and process technology. Specific Implementation Example 1
[0088] This embodiment is a preferred implementation of the high-efficiency security-aware task scheduling method for heterogeneous multi-core systems of the present invention.
[0089] See Figure 1 ,like Figure 1 As shown, the method in this embodiment includes:
[0090] S101, The system powers on and starts up, and the task set Γ to be assigned is assigned to the system;
[0091] S102. Set the allocation priority of each task in Γ.
[0092] In this embodiment, this step further includes:
[0093] S1021. Select the tasks τ that have not been assigned priority in sequence. i Determine τ i Is there a security service requirement? If yes, proceed to step S1022; otherwise, proceed to step S1023.
[0094] S1022, Calculation task τ i Unit safety probability
[0095]
[0096] Execute step S1024;
[0097] Wherein, the λ i For task τ i The positive risk coefficient;
[0098] S1023, Calculation task τ i Poor execution efficiency
[0099]
[0100] in, For τ i The maximum execution efficiency across all processor cores For τ i The minimum execution efficiency across all processor cores;
[0101] Repeat steps S1021 to S1023 until all tasks are completed. or calculate;
[0102] S1024, according to each task and Set the priority of each task;
[0103] Tasks with security service requirements and a high probability of security risks for the organization are assigned higher priority, while tasks with a low probability of security risks for the organization are assigned lower priority.
[0104] Tasks with no security service requirements and high execution efficiency are assigned higher priority, while tasks with low execution efficiency are assigned lower priority.
[0105] Tasks with security requirements are assigned a higher priority than tasks without security requirements.
[0106] S103. Select tasks to be assigned in descending order of priority. iThe selected task will be assigned to the processor core π. j ;
[0107] In this embodiment, this step further includes:
[0108] S1031. Select the task with the highest allocation priority τ to be assigned. i ;
[0109] S1032, the τ i Allocate to areas with a residual utilization rate of not less than τ i The processor core π, which has the highest execution efficiency among the processor cores required for utilization. j ;
[0110] Repeat this step until all tasks are assigned and the task assignment matrix Assign is obtained.
[0111]
[0112] Among them, matrix elements For task τ i In processor core π j The distribution coefficient on, Represents task τ i Already allocated to processor core π j , Represents task τ i Unassigned to processor core π j .
[0113] S104. Calculate to ensure that the total system energy consumption does not exceed the system budget energy consumption, and that the security service level of each task meets the system task deadline. i Obtain the set of mission security service levels L = {l1, l2, ..., l I};
[0114]
[0115]
[0116]
[0117]
[0118] Among them, l i For task τ i The security service level is determined by HP, which is the least common multiple of all mission cycles. For task τ i Execution time of the security component, E budget For system budget energy consumption, tasks without security service requirements l i =0;
[0119] In this specific implementation, the solution method for this step can be the method disclosed in the paper "Solution Method of Integer Programming Model Based on Yalmip Toolbox" published in the Journal of Hubei University of Technology (Issue 3, 2014), published on August 6, 2014. The convex optimization solution tool Yalmip is used to solve the l values for each task. i .
[0120] S105. Calculate the remaining utilization rate u of each processor core. j_remain ;
[0121] In this specific embodiment, this step may further include:
[0122] S1051, Computing Processor Core π j The sum of utilization rates u j_de ;
[0123]
[0124]
[0125] Among them, A i f is a constant related to cryptographic algorithms. j It is the processor core π j Execution frequency, For task τ i Execution time of the security services portion;
[0126] S1052, For L = {l1,l2,...,l...} I Round down each element in the table to obtain the rounded set of security service levels for each task.
[0127] S1053. Calculate the utilization rate u of each processor core after rounding. j_tr ;
[0128]
[0129] S1054. Calculate the remaining utilization rate of each processor core;
[0130] u j_remain =u j_de -u j_tr ,j∈[1,J]
[0131] S106. Based on the remaining utilization of each processor core, set the final security service level for tasks with security service requirements on that processor core.
[0132] In this specific embodiment, this step may further include:
[0133] S1061, in processor core π j Up to be set Among tasks requiring security services, select and assign the task with the highest priority. i ;
[0134] S1062, Set τ i The security service level is equal to the ideal security service level for this task.
[0135] S1063. Determine whether the total energy consumption and residual utilization rate of the system meet the following requirements:
[0136] E total ≤E budget
[0137]
[0138] If yes, proceed to step S1065; otherwise, proceed to step S1064.
[0139] Among them, the total system energy consumption E total for:
[0140]
[0141] S1064, τ i The current security service level is reduced by one level; proceed to step S1063;
[0142] S1065, Set τ i The final security service level is equal to τ i Current security service level;
[0143] S1066, Update π j The remaining utilization rate;
[0144]
[0145]
[0146] Repeat step S106 until the final security service level settings for all tasks with security service requirements on all processor cores are completed, resulting in the final security service level set for each task.
[0147] S107. Set the execution frequency of each processor core.
[0148] Specific Implementation Example 2
[0150] This embodiment is a preferred implementation of the high-efficiency security-aware task scheduling device for the heterogeneous multi-core system of the present invention.
[0151] See Figure 2 ,like Figure 2 As shown, the apparatus of this embodiment includes:
[0152] The task allocation priority setting module is used to set the allocation priority for each task based on the difference in unit security probability between tasks with security service requirements and tasks without security service requirements.
[0153] See Figure 3 ,like Figure 3 As shown, in this embodiment, this module may further include:
[0154] The first task selection unit is used to select tasks τ from the task set that have not been assigned a priority. i Unit safety probability calculation unit, used to calculate the unit safety probability of tasks with safety requirements.
[0155]
[0156] Where λ i For task τ i The positive risk coefficient;
[0157] The execution efficiency difference calculation unit is used to calculate the execution efficiency difference of tasks without security requirements.
[0158]
[0159] in, For τ i The maximum execution efficiency across all processor cores For τ i The minimum execution efficiency across all processor cores;
[0160] The task allocation priority setting unit is used to set the allocation priority of each task;
[0161] Tasks with security service requirements and a high probability of security risks for the organization are assigned higher priority, while tasks with a low probability of security risks for the organization are assigned lower priority.
[0162] Tasks with no security service requirements and high execution efficiency are assigned higher priority, while tasks with low execution efficiency are assigned lower priority.
[0163] Tasks with security requirements are assigned a higher priority than tasks without security requirements.
[0164] The task allocation module is used to select tasks to be allocated to each processor core in descending order of allocation priority.
[0165] In this embodiment, this module may further include:
[0166] The second task selection unit is used to select the task with the highest priority from the task set for assignment.
[0167] The task allocation unit is used to assign the task to be allocated to the processor core π, which has the highest execution efficiency among the processor cores whose remaining utilization is not less than the utilization required by the task. j ; Obtain the task assignment matrix Assign;
[0168]
[0169] Among them, matrix elements For task τ i In processor core π j The distribution coefficient on, Represents task τ i Already allocated to processor core π j , Represents task τ i Unassigned to processor core π j .
[0170] The task safety service level calculation module is used to calculate the safety service level (l) for each task that ensures the total system energy consumption does not exceed the system budget energy consumption and meets the system task deadline. i ;
[0171] In this embodiment, this module can use a convex optimization algorithm to solve the security service level of each task. The specific method is the same as the method in step S104 of specific embodiment 1, and will not be described again here.
[0172] The remaining utilization calculation module is used to calculate the remaining utilization u of each processor core. j_remain ;
[0173] See Figure 4 ,like Figure 4 As shown in this specific embodiment, this module may further include:
[0174] Utilization calculation unit, used to calculate the utilization of each processor core. j_de ;
[0175]
[0176]
[0177] Among them, A iThese are constants related to cryptographic algorithms. For task τ i The denormalized security level, f j It is the processor core π j Execution frequency, For task τ i Execution time of the security services portion;
[0178] The security service level rounding unit is used to round down each element in L1 to obtain the rounded security service level set for each task.
[0179] The rounding utilization calculation unit is used to calculate the utilization u of each processor core after rounding down from the security service level. j_tr ;
[0180]
[0181] The remaining utilization calculation unit is used to calculate the remaining utilization of each processor core;
[0182] u j_remain =u j_de -u j_tr ,j∈[1,J]
[0183] The final security service level setting module is used to set the final security service level for tasks with security service requirements on each processor core based on the remaining utilization of that processor core.
[0184] See Figure 5 ,like Figure 5 As shown in this specific embodiment, this module may further include:
[0185] The third task selection unit is used for selecting processor core π. j Up to be set Among tasks requiring security services, select and assign the task with the highest priority. i ;
[0186] The final security service level setting unit is used to set the task τ i The final security service level is set to the highest security service level that meets the system energy consumption and utilization conditions;
[0187] The system energy consumption and utilization conditions are as follows:
[0188] E total ≤E budget
[0189]
[0190] Among them, the total system energy consumption E total for:
[0191]
[0192] Residual utilization update unit, used to update processor core π j The remaining utilization rate;
[0193]
[0194]
[0195] The execution frequency setting module is used to set the execution frequency of each processor core.
[0196]
[0197] In the technical solution provided by the above embodiments of the present invention, when scheduling tasks in a heterogeneous multi-core system, tasks with security service requirements and those without security service requirements are assigned in an order based on the difference in task unit security probability and task execution efficiency, with priority given to tasks with security service requirements. This effectively guarantees the quality of system security services. By rounding the security service level of tasks while satisfying all constraints and maximizing security service quality, the system complexity and execution time are effectively reduced while ensuring the success rate of task allocation. In the preferred implementation, for cores with remaining utilization, the system's security service quality is further improved by increasing the security service level of tasks, fully utilizing the processor cores, while satisfying power consumption constraints and not exceeding core utilization.
[0198] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention, and all such modifications or substitutions should be covered within the scope of the claims of the present invention.
Claims
1. A high-energy-efficiency security-aware task scheduling method for heterogeneous multi-core systems, characterized in that, include: Step 1: Set the allocation priority of each task. For tasks with security service requirements, set the allocation priority of each task in descending order of the unit's security probability. For tasks without security service requirements, priority is assigned to tasks in descending order of execution efficiency; tasks with security requirements are assigned higher priority than tasks without security requirements; including: Select the tasks that have not been assigned a priority in sequence. ; if There is a need for security services, computing Unit safety probability ; if No security service required, computing Poor execution efficiency ; According to each task and Set the priority of each task; Step 2: Assign tasks in descending order of priority to obtain a task assignment matrix; Step 3: Calculate the system's total energy consumption to be no greater than the system's budgeted energy consumption, and to ensure that the security service level of each task meets the system's task deadline. Step 4: Round down the security service level of each task to obtain the rounded security service level of each task, and use the security service level and the rounded security service level to calculate the remaining utilization of each processor core. Step 5: Set the final security service level for each task on each processor core based on the remaining utilization of each processor core; Among them, the For the task The positive risk coefficient, where i is the task number. for The maximum execution efficiency across all processor cores. for The minimum execution efficiency across all processor cores.
2. The method according to claim 1, characterized in that, Step two includes: Select the task with the highest priority to be assigned. ; The The remaining utilization rate is not less than The processor core with the highest execution efficiency among the processor cores requiring utilization. ; Obtain the task assignment matrix ; in, For the task In processor core The distribution coefficient on, Indicates task Already allocated to processor core , Indicates task Unassigned to processor core j is the processor core number.
3. The method according to claim 1, characterized in that, Step four includes: Computing processor core The sum of utilization rates ; Security service levels for each mission Round down to obtain the rounded security service level for each task. ; Calculate the utilization rate of each processor core after rounding. ; Calculate the remaining utilization of each processor core. ; in, These are constants related to cryptographic algorithms. It is the processor core Execution frequency; For the task Worst-case instruction cycle, For the task The cycle, The task is In processor core Execution efficiency.
4. The method according to claim 3, characterized in that, Step five includes: Processor cores are selected based on task allocation priority in descending order. On the task ; set up The final security service level is set to the highest security service level that meets the system's total energy consumption and residual utilization conditions; The conditions for total energy consumption and residual utilization rate are as follows: Among them, the The total energy consumption of the system. For system budget energy consumption, For the task The execution time of the security component.
5. A high-energy-efficiency security-aware task scheduling device for a heterogeneous multi-core system, characterized in that, include: The task allocation priority setting module is used to set the allocation priority of each task. For tasks with security service requirements, the allocation priority of each task is set in descending order of unit security probability. For tasks without security service requirements, assign priority to each task in descending order of execution efficiency. Tasks with security requirements are assigned a higher priority than tasks without security requirements; including: The first task selection unit is used to select tasks from the task set that have not been assigned a priority. ; The unit safety probability calculation unit is used to calculate the unit safety probability of tasks with safety requirements. ; The execution efficiency difference calculation unit is used to calculate the execution efficiency difference of tasks without security requirements. : The task allocation priority setting unit is used to prioritize tasks. and Set the priority of each task; The task allocation module allocates tasks in descending order of priority to obtain a task allocation matrix. The task security service level calculation module is used to calculate the security service level of each task so that the total system energy consumption does not exceed the system budget energy consumption and meets the system task deadline. The remaining utilization calculation module is used to calculate the remaining utilization of each processor core using the security service level of each task and the rounded security service level. The final security service level setting module is used to set the final security service level of each task on each processor core based on the remaining utilization of each processor core; Among them, the For the task The positive risk coefficient, where i is the task number. for The maximum execution efficiency across all processor cores. for The minimum execution efficiency across all processor cores.
6. The apparatus according to claim 5, characterized in that, The task allocation module includes: The second task selection unit is used to select the task with the highest priority from the task set for assignment. The task allocation unit is used to assign the task to be allocated to the processor core with the highest execution efficiency among the processor cores whose remaining utilization is not less than the utilization required by the task. Obtain the task allocation matrix. ; Among them, matrix elements For the task In processor core The distribution coefficient on, Indicates task Already allocated to processor core , Indicates task Unassigned to processor core , where i is the task number and j is the processor number.
7. The apparatus according to claim 5, characterized in that, The residual utilization rate calculation module includes: Utilization calculation unit, used to calculate the utilization of each processor core. ; Security service level rounding unit, used to determine the security service level for each task. Round down to obtain the rounded security service level for each task. ; The rounding utilization calculation unit is used to calculate the utilization of each processor core after rounding. ; The remaining utilization calculation unit is used to calculate the remaining utilization of each processor core. ; in, These are constants related to cryptographic algorithms. It is the processor core Execution frequency; For the task Worst-case instruction cycle, For the task The cycle, The task is In processor core Execution efficiency.
8. The apparatus according to claim 7, characterized in that, The final security service level setting module includes: The third task selection unit is used to select tasks assigned to processor cores in descending order of task allocation priority. On the task ; The final security service level setting unit is used to classify tasks The final security service level is set to the highest security service level that meets the system energy consumption and utilization conditions; The system energy consumption and utilization conditions are as follows: Among them, the The total energy consumption of the system. For system budget energy consumption, For the task The execution time of the security component.
Citation Information
Patent Citations
Heterogeneous multi-core system hybrid task allocation method and device based on convex optimization
CN116010059A
Real time system task configuration optimization system for multi-core processors, and method and program
US20120331474A1
