计算机应用 ›› 2017, Vol. 37 ›› Issue (5): 1270-1275.DOI: 10.11772/j.issn.1001-9081.2017.05.1270

• 计算机软件技术 • 上一篇    下一篇

SET-MRTS:一种多处理器实时系统可调度性实验平台

陈泽玮1, 杨茂林1, 雷航1, 廖勇1, 谢玮2   

  1. 1. 电子科技大学 信息与软件工程学院, 成都 610054;
    2. 云南省电子工业研究所, 昆明 650031
  • 收稿日期:2016-11-10 修回日期:2016-12-09 出版日期:2017-05-10 发布日期:2017-05-16
  • 通讯作者: 陈泽玮
  • 作者简介:陈泽玮(1991-),男,海南文昌人,博士研究生,主要研究方向:实时调度、嵌入式系统;杨茂林(1987-),男,四川宜宾人,博士研究生,主要研究方向:实时调度、实时锁协议、嵌入式系统;雷航(1960-),男,四川自贡人,教授,博士,主要研究方向:嵌入式软件、可信软件测试;廖勇(1976-),男,四川自贡人,副教授,博士,主要研究方向:嵌入式实时系统;谢玮(1971-),男,云南昆明人,高级工程师,硕士,主要研究方向:计算机及电子技术。
  • 基金资助:
    国家科技支撑计划项目(2012BAH44F02)。

SET-MRTS: Schedulability experiment toolkit for multiprocessor real-time systems

CHEN Zewei1, YANG Maolin1, LEI Hang1, LIAO Yong1, XIE Wei2   

  1. 1. School of Information and Software Engineering, University of Electricity Science and Technology of China, Chengdu Sichuan 610054, China;
    2. Yunnan Research Institute of Elecronic Industry, Kunming Yunnan 650031, China
  • Received:2016-11-10 Revised:2016-12-09 Online:2017-05-10 Published:2017-05-16
  • Supported by:
    This work is partially supported by the National Key Technology Research and Development Program of China (2012BAH44F02).

摘要: 近年来,随着实时调度研究的快速发展,可调度性实验的复杂性随之增加,然而,由于缺乏标准化、模块化的可调度性实验工具,研究者往往需要耗费大量时间进行实验;此外,由于实验源码不能公开获得,使得实验结果难以验证,实验代码难以重用与扩展。针对可调度性实验重复工作量大、难以验证的问题,提出一种可调度性实验基础框架。该框架通过随机分布产生任务系统集合,并测试其可调度性,基于该框架设计并实现了一个新的可调度性实验开源平台——SET-MRTS。该平台采用模块化架构设计了任务模块、处理器模块、共享资源模块、算法库、配置解析模块以及输出模块。实验结果表明,SET-MRTS支持单/多处理器实时调度算法和实时同步协议分析,能够正确地进行可调度性对比实验,输出直观的实验结果,并且支持算法库的扩充,与算法库中已实现的算法进行对比实验,具有良好的兼容性与可扩展性。SET-MRTS是第一个支持完整实验流程,包括算法实现、参数配置、结果统计、图表绘制等的可调度性实验开源平台。

关键词: 实时嵌入式系统, 多核系统, 实时调度, 实时锁协议, 可调度性实验, 开源平台

Abstract: In recent years, the complexity of conducting schedulability experiments increases with the rapid development of real-time scheduling research. In general, schedulability experiments are time-consuming in the absence of standardized and modularized experiment tools. Moreover, since the source codes are not publicly available, it is difficult to verify the reported results in the literature, and to reuse and extend the experiments. In order to reduce the repeative work and help the vertification, a basic schedulability experiment framework was proposed. This experiment framework generated task systems through random distribution, and then tested their schedulability, and based on the framework, a novel open-source schedulability platform called SET-MRTS (Schedulability Experiment Toolkit for Multiprocessor Real-Time Systems) was designed and realized. The platform adopted the modular architecture. SET-MRTS consisted of the task module, the processor module, the shared resource module, the algorithm library, the configuration module and the output module. The experimental results show that, SET-MRTS supports uni- and multi-processor real-time scheduling algorithms and synchronization protocol analyses, which can correctly perform the schedulability test and output intuitive experimental results, and support the expansion of the algorithm library. Compared with algorithms in the algorithms library implemented in the experiment, SET-MRTS has good compatibility and expansibility. SET-MRTS is the first open source platform to support a complete experimental process, including algorithmic implementation, parameter configuration, result statistics, charting, and so on.

Key words: real-time and embedded system, multicore system, real-time scheduling, real-time locking protocol, schedulability experiment, open-source platform

中图分类号: