电子科技 ›› 2025, Vol. 38 ›› Issue (1): 73-80.doi: 10.16180/j.cnki.issn1007-7820.2025.01.010

• • 上一篇    下一篇

多核处理器容错实时调度算法

朱扬烁, 吕海玉, 李奕晨, 张凤登()   

  1. 上海理工大学 光电信息与计算机工程学院,上海 200093
  • 收稿日期:2023-05-28 修回日期:2023-06-30 出版日期:2025-01-15 发布日期:2025-01-06
  • 通讯作者: 张凤登(1963-),男, E-mail:1148452262@qq.com,博士,教授。研究方向:汽车电子与现场总线、分布式实时系统。
  • 作者简介:朱扬烁(1997-),男,硕士研究生。研究方向:分布式实时系统、容错实时调度。
  • 基金资助:
    国家自然科学基金(71840003);上海市自然科学基金(15ZR1429300)

Fault-Tolerant Real-Time Scheduling Algorithm in Multi-Core Processor

ZHU Yangshuo, LÜ Haiyu, LI Yichen, ZHANG Fengdeng()   

  1. School of Optical Electrical and Computer Engineering,University of Shanghai for Science and Technology,Shanghai 200093,China
  • Received:2023-05-28 Revised:2023-06-30 Online:2025-01-15 Published:2025-01-06
  • Supported by:
    National Natural Science Foundation of China(71840003);Natural Science Foundation of Shanghai(15ZR1429300)

摘要:

针对系统故障模式下容错公平调度FT-FS(Fault Tolerate Fair Scheduler)算法存在拒绝任务次数较多和资源浪费等问题,文中在FT-FS算法的基础上融入了主/替代版本PA(Primary Alternate)容错策略,提出了新的公平调度算法PA-FTFS(Primary-Alternate and Fault Tolerant Fair Scheduling)。该算法能够在多核处理器系统中减少资源浪费的同时更好地减少拒绝任务的次数。利用MATLAB仿真软件对上述算法进行了仿真验证,实验结果表明在内核发生永久性故障后,采用比例替代任务策略的PA-FTFS算法相较于FT-FS算法拒绝任务的次数明显减少。通过数据分析表明,PA-FTFS算法相较于FT-FS算法在故障率和调度率上具有较大改进。

关键词: 多核处理器, 故障, 容错, 公平调度, 主/替代版本, 拒绝任务, 替代任务, MATLAB仿真

Abstract:

In view of the problems such as too many times of rejected tasks and waste of resources in fault-tolerant fair scheduling FT-FS(Fault Tolerate Fair Scheduler) algorithm, a new fair scheduling algorithm PA-FTFS(Primary-Alternate and Fault Tolerant Fair Scheduling) is proposed based on FT-FS algorithm by integrating the main/alternative PA(Primary Alternate) fault-tolerant strategy. This algorithm can reduce the number of rejected tasks in multi-core processor system and reduce the waste of resources. MATLAB simulation software is used to verify the above algorithms. The experimental results show that PA-FTFS algorithm using proportional replacement task strategy has significantly reduced the number of task rejection times compared with FT-FS algorithm after permanent kernel failure. Data analysis shows that PA-FTFS algorithm has better failure rate and scheduling rate than FT-FS algorithm.

Key words: multi-core processor, failure, fault tolerance, fair dispatch, main/alternative version, reject tasks, alternative tasks, MATLAB simulation

中图分类号: 

  • TP316