电子科技 ›› 2024, Vol. 37 ›› Issue (3): 1-9.doi: 10.16180/j.cnki.issn1007-7820.2024.03.001

• •    下一篇

多核处理器中混合关键级任务可调度及半分区划分算法

朱嘉炜, 冒航, 张凤登   

  1. 上海理工大学 光电信息与计算机工程学院,上海 200093
  • 收稿日期:2022-10-08 出版日期:2024-03-15 发布日期:2024-03-11
  • 作者简介:朱嘉炜(1999-),男,硕士研究生。研究方向:混合关键级调度、汽车电子与现场总线、Linux内核。
    冒航(1998-),女,硕士研究生。研究方向:分布式实时系统、混合关键级调度。
    张凤登(1963-),男,博士,教授。研究方向:汽车电子与现场总线、分布式实时系统。
  • 基金资助:
    国家自然科学基金(71840003);上海市自然科学基金(15ZR1429300)

Research on Hybrid Critical-Level Task Scheduling and Semi-Partition Algorithm in Multi-Core Processor

ZHU Jiawei, MAO Hang, ZHANG Fengdeng   

  1. School of Optical-Electrical & Computer Engineering,University of Shanghai for Science and Technology,Shanghai 200093,China
  • Received:2022-10-08 Online:2024-03-15 Published:2024-03-11
  • Supported by:
    National Natural Science Foundation of China(71840003);Shanghai Municipal Natural Science Fund Project(15ZR1429300)

摘要:

当前,多数多处理机中混合关键级任务可调度性分析以及半分区调度算法均针对单核利用率展开研究。但由于多核系统任务调度复杂性较高,现有研究结果存在各处理器负载不均衡以及任务可调度性不理想等问题。针对该问题,文中将动态需求边界函数(Dynamic Demand Boundary Function,DDBF)的应用范围扩展至多核处理器系统。根据半分区划分调度算法对DDBF改进,并加入了结转作业和前接作业分析提出了SDDBF(Super Dynamic Demand Boundary Function),可更精确地计算与利用资源。文中基于SDDBF提出了SDA(Stepper Dispatch Algorithm)可调度性分析法与半分区划分算法MCWF(Mixed-Criticality Worist First)。仿真结果表明,相较于AMC(Adaptive Mixed Criticality)、AMC-max以及XU算法,SDA可调度性分析判定提升了5%~10%,相较于WF_MY(Worst First_My)、WF_NEW(Worst First_New)算法,MCWF可使系统在任意关键等级下的CPU(Central Processing Unit)负载具有更良好的均衡性能。

关键词: 混合关键级系统, 半分区划分算法, 多核平台, 任务调度, 动态需求边界, 可调度性分析, 实时系统, 负载均衡

Abstract:

At present, the schedulability analysis of mixed critical level tasks and semi-partition scheduling algorithms in most multiprocessors are focused on single-core utilization. However, due to the high complexity of task scheduling in multi-core systems, the existing research results have some problems, such as unbalanced load of each processor and unsatisfactory task schedulability. To solve this problem, the application scope of Dynamic Demand Boundary Function(DDBF) is extended to multi-core processor system in this study. DDBF is improved based on half-partition scheduling algorithm, and SDDBF(Super Dynamic Demand Boundary Function) is proposed by adding forward job and forward job analysis, which can calculate and utilize resources more accurately. Based on SDDBF, the schedulability analysis method of SDA(Stepper Dispatch Algorithm) and semi-partition algorithm MCWF(Mixed-Criticality Worist First) are proposed. The simulation results show that compared with AMC(Adaptive Mixed Criticality), AMC-MAX and XU algorithms, the schedulability analysis of SDA can be improved by 5%~10%. Compared with WF_MY(Worst First_My) and WF_NEW(Worst First_New) algorithms, MCWF makes the system have better CPU(Central Processing Unit) load balancing performance at any critical level.

Key words: mixed-criticality system, semi-partition partitioning algorithm, multi-core platform, task scheduling, dynamic demand boundary, schedulability analysis, real time system, load balancing

中图分类号: 

  • TP316.2