计算机科学 ›› 2014, Vol. 41 ›› Issue (7): 25-29.doi: 10.11896/j.issn.1002-137X.2014.07.004

• 综述 • 上一篇    下一篇

基于CPU使用率监测的软件容错研究

王小刚,曹东   

  1. 南京航空航天大学自动化学院 南京210000;南京航空航天大学飞行控制研究所 南京210000
  • 出版日期:2018-11-14 发布日期:2018-11-14

Research of Software Fault-tolerance Based on Monitoring of CPU Utilization Ratio

WANG Xiao-Gang and CAO Dong   

  • Online:2018-11-14 Published:2018-11-14

摘要: 在硬实时操作系统中,任务超时运行将会给系统带来灾难性后果。为了提高系统的可靠性和容错能力,系统设计需要采取一定容错策略。系统的CPU使用率是实时系统运行正常与否的重要指标,其可以表征系统的时间特性和任务状态。针对CPU使用率的特点以及容错监测的要求,选取机器周期作为时间信息统计的基准;分析监测周期不同对监测效果的影响;提出了嵌入式实时系统CPU使用率异常的判决条件;并结合结构冗余和时间冗余的思想,设计了4种处置方法用于CPU使用率异常处置。仿真测试表明,基于CPU使用率监测的软件容错方法可以有效提高系统的可靠性和容错能力。

关键词: 实时系统,软件容错,CPU使用率,异常处置 中图法分类号TP302.8文献标识码A

Abstract: In hard real-time system,overtime of task running can induce a disastrous consequence of system performances.To enhance reliability and fault-tolerant ability of system,some software fault-tolerance strategy must be used.CPU utilization ratio of system is a key characteristic,which tells whether system is normal or not.Time feature and task state can be shown by CPU utilization ratio.Because of characteristic of CPU utilization ratio and demand of fault-tolerance,machine cycle was selected as measurement baseline.There are great differences when different monitor cycle is selected.Conditions of judging CPU utilization ratio anomaly in system were presented.Four measures that refer to structural redundancy and time redundancy were designed to handle this case.The simulation shows that software fault-tolerance based on monitoring of CPU utilization ratio can enhance reliability and fault-tolerant ability of system effectively.

Key words: Real-time system,Software fault-tolerance,CPU utilization ratio,Exception handling

[1] Krishna C M,Shin K G.Real-time systems[M].McGraw Hill Education,1997:1-3
[2] 桂盛霖.安全关键嵌入式实时系统的关键非功能属性分析研究[D].成都:电子科技大学,2007
[3] 徐拾义.容错计算系统[M].武汉:武汉大学出版社,2010:314-315
[4] Cai K Y.Censored.Software-Reliability Models[J].IEEETrans.Rel.,1997,46(1):69-75
[5] Shooman M L.Software Engineering:Design,Reliability andManagement[M].McGraw-Hill,New York,ch.5,3
[6] Liu J W S.实时系统(翻译版)[M].姬孟洛,等译.北京:高等教育出版社,2003:25-26
[7] Jean J L.嵌入式实时操作系统uC/OS-II(第2版)[M].邵贝贝,等译.北京:北京航空航天大学出版社,2003:97-103
[8] 张扬,于银涛.VxWorks内核、设备驱动与BSP开发详解(第2版)[M].北京:人民邮电出版社,2011:58-62
[9] River W.VxWorks Programmers’ Guide[DB/OL].Wind River System Inc.Mar.2003
[10] Soja R,Bannoura M.MPC5554/5553微处理器揭秘[M].龚光华,等译.北京:北京航空航天大学出版社,2010:70-74
[11] 曹桂平,等.VxWorks设备驱动开发详解[M].北京:电子工业出版社,2011:23-25
[12] Bruyninckx H,Leuven K U.Real-time and Embedded Guide[M].Mechanical Engineering,Leuven,Belgium,2001
[13] Freescale.MPC5553/5554 Microcontroller Reference Manual[M].April 2007
[14] 张靓,刘光明.RTEMS嵌入式系统中的软件容错设计[J].计算机工程与科学,2007,29(5)

No related articles found!
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!