Research on Worst-Case Execution Time Analysis Techniques of Real-Time Systems

Author
LvMingSong
Advisor
YuGe , DengQingXu
School
Northeastern University
Major
Embedded systems and applications
Classification
TP368.1 Microprocessor
Degree
Doctoral dissertation
Year
2010
Downloads
17
Citations
0

Request the full text

Abstract

Schedulability analysis and Worst-Case Execution Time (WCET) analysis are two major tasks of timing validation of real-time systems. The purpose of WCET analysis is to obtain the execution time of a real-time task in the worst-case, and its results serve as the input to schedulability analysis. Static analysis, which includes processor behavior analysis, flow analysis, and WCET calculation, is usually adopted to guarantee safe results in hard real-time systems. Currently Implicit Path Enumeration is the dominating technique in WCET calculation, but the drawback of this technique is limited expressiveness in describing program control flow, which further limits the techniques used to conduct processor behavior analysis. Cache analysis has always been a hard task in processor behavior analysis. Abstract Interpretation based methods have gained predominance in analyzing caches with LRU replacement policy, but analysis methods for other policies, such as FIFO, are still immature. With the trend of multicore processors, shared cache becomes a prevalent Cache architecture. Fine-grained sharing of caches among different cores makes the timing behavior of tasks unpredictable, which brings great challenges to WCET analysis. With the development of WCET analysis techniques, usability issues have also become a major concern.Given the above research background, we conducted research on WCET calculation, single-core and multi-core Cache analysis, and WCET analysis of real-time operating systems in this thesis. Detailed contributions are as follows:(1) A new WCET calculation method based on model checking was developed, and the transformation semantics from a program to the corresponding automaton was designed. The ability of searching optimal solutions of model checking is leveraged in WCET calculation for better analysis precision. We used different model checkers in the analysis with a discussion on the time and space scalability issues. Usage guidelines of WCET analysis based on model checking were also given.(2) A single-core cache analysis method based on the idea of branch cutting was put forward in this thesis. First, model checking was used to model the behavior of FIFO caches; then a method that implements the idea of branch cutting was designed to tackle the state space explosion problem in WCET analysis based on model checking. By cutting off the program branches that satisfy specific criteria, the method can efficiently improve the analysis performance and scalability without sacrificing analysis precision.(3) A model checking based method to analyze shared caches in multi-cores was designed in this thesis. The key point of analyzing shared caches is to precisely analyze the inter-core interferences. Existing techniques only take address-related conflicts into account, thus result in large overestimation. We used model checker to model shared cache behaviors, and experiment results show that the analysis precision is greatly improved, since the timing order of cache conflicts are captured in the models.(4) We also conducted research on WCET analysis of theμC/OS-Ⅱreal-time operating system (RTOS). RTOS code is control-intensive, which makes them different from application code in terms of timing properties. The system calls and disabled interrupt regions ofμC/OS-Ⅱare analyzed using static methods, and the analysis precision and existing problems in static WCET analysis of RTOS are analyzed intensively. The results of the analysis can directly serve as a comprehensive and quantitative description of the timing properties ofμC/OS-Ⅱ, which is helpful to RTOS users to understand the real-time performance of the operating system, and can provide useful information for system designers in improving system performance as well.(5) A static WCET analysis tool that supports multi-core architecture was developed based on Chronos-a WCET analysis prototype developed by National University of Singapore. Techniques on WCET calculation based on model checking, single-core cache analysis with branch cutting, multi-core shared cache analysis, and static analysis of RTOS are implemented in this tool to verify the techniques designed in this thesis.To summarize, research on static WCET analysis based on model checking is conducted in this thesis, and experiment results show that the techniques can achieve better precision. Experience and problems in static analysis of RTOS are also explored. The work of this thesis could provide reference value to researches on static WCET analysis and usability aspects of WCET analysis.

Table of contents

Summary 6-8 Abstract 8-13 Chapter 1 Introduction 13-21 1.1 Background and Significance 13 - 15 1.2 research status 15-18 1.3 In this paper, the content the organizational structure 18-19 1.4 This article 19-21 Chapter 2 WCET analysis research background 21-39 2.1 the influence procedures WCET and analyze the complexity of the main factors are found; 21-23 the 2.2 mainstream WCET analysis techniques 23-36 2.2.1 Static WCET analysis technology the 24-33 2.2.2 Dynamic WCET analysis techniques 33-35 2.2.3 Static analysis technology dynamic analysis techniques 35-36 2.3 WCET analysis of availability problems 36-37 2.4 Summary 37-39 Chapter 3 WCET calculation method based on model checking technology 39-65 3.1 Related work 39-43 3.1.1 model checking technology 39-42 3.1.2 Model-based detection technology WCET analysis 42-43 3.2 Basic concepts and definitions 43-46 3.2.1 Assumptions and problem description 43 - 44 3.2.2 a simple example program the formal definition 44-45 3.2.3 program control flow graph 45-46 3.3 based on model checking technology WCET technical the 46-54 3.3.1 WCET using model checking technology to solve the basic idea 46-49 3.3.2 SPIN model checker modeling 49-51 3.3.3 NuSMV model detector modeling the UPPAAL model detector modeling 51-52 3.3.4 52-54 3.4 technology based on implicit path enumeration WCET technical 54-55 3.5 Experiments and results analysis 55-64 3.5.1 experimental environment 55-56 3.5.2 Experimental results and analysis 56-61 3.5.3 WCET calculation method based on model checking technology evaluation 61-64 3.6 Summary 64-65 Chapter 4 Based Instruction Cache pruning thought mononuclear analysis 65-83 4.1 65-66 <br / > 4.2 Pruning the basic ideas and key issues 66-69 4.3 Basic assumptions and definitions 69-70 of 4.4 special branch structure analysis 70-73 4.5 the ordinary branch structure analysis 73-79 4.5.1 the monolayer circulation pruning 4.5.2 multilayer, 73-77 cycle pruning 77-79 4.6 Experimental results and analysis 79-82 4.7 Summary 82-83 Chapter 5 multicore shared Instruction Cache Analysis 83-107 5.1 Related work 84-86 5.1.1 multinucleated, sharing, the Cache to real-time systems analysis brings new problems 84-86 5.1 .2 multi-core shared Cache WCET analysis work 86 5.2 multicore shared Cache architecture models and assumptions 86-88 5.3 based on model checking technology of multi-core shared Cache behavior analysis 88-101 5.3.1 analytical framework 88-90 5.3.2 L1 Independent Cache 90-93 5.3.3 The the UPPAAL model detector modeling methods 93-99 5.3.4 further optimization of the basic model 99-101 5.4 Results and analysis 101 -106 5.4.1 Experimental setup 101-102 5.4.2 Experimental results and analysis 102-106 5.5 Summary 106 - 107 WCET analysis in Chapter 6 real-time operating system and application 107-125 6.1 Related work 108-111 6.2 μC/OS- Ⅱ real-time operating Introduction 111 6.3 μC/OS- II disabling interrupts interval WCET analysis 111-115 6.3.1 prohibits interrupt interval analysis framework 112-113 6.3.2 prohibits the interrupt interval extract 113-115 6.4 Experimental methods and experimental setting the 115-118 6.4.1 Analysis tool configuration 115 -116 6.4.2 Experimental Method 116-118 6.5 Experimental results and analysis 118-121 6.5.1 of the system call to the evaluation of the analytical accuracy 118-120 6.5.2 prohibit the evaluation of the interrupt interval WCET analysis 120-121 6.6 Current problems existing in the 121-124 6.6. a single value WCET analysis inadequate 121-123 6.6.2 task switching results 123-124 6.7 Summary 124-125 Chapter 7 supports multi-core architecture design and implementation of the WCET analysis tools 125-131 7.1 Overview 125 7.2 system function design 125-129 7.3 system to achieve 129 7.4 Summary 129-131 Chapter 8 Conclusions 131-133 8.1 main contribution of this paper Conclusion 131-132 8.2 further work 132-133 Reference 133-143 thank the 143-145 the papers attack Bo issued during 145-147 tapping Bo The participation during project 147-149 Author 149-151 Appendix A: μC/OS- Ⅱ system calls the analysis of experimental results are found; 151-153 Appendix B: μC/OS- Ⅱ disable interrupts interval analysis of experimental results 153

Related dissertations

  1. Study of Real-time Value-passing and Real-time Mobile Systems
    ChenJing ·Institute of Software ·2003 ·Doctoral dissertation
  2. Formal Modeling and Verification of Real-time Systems Based on Time Automation
    XuDan ·Suzhou University ·2007 ·Master's thesis
  3. Accessibility Research timed automata
    LiuDong ·Zhengzhou University ·2004 ·Master's thesis
  4. Optimization of timed automata model - based authentication method
    GaoGuanLong ·Zhengzhou University ·2006 ·Master's thesis
  5. A Research on Worst-Case Execution Time Estimation of Object-Oriented Programs
    LiZhang ·Dalian University of Technology ·2008 ·Master's thesis
  6. Based on abstract interpretation of real-time software WCET
    ZhaoXiuWei ·Dalian University of Technology ·2009 ·Master's thesis
  7. Research on a Method of Test Cases Generation Based on Timed Automata
    FanSuJuan ·Zhengzhou University ·2010 ·Master's thesis
  8. Timed automata model - based verification techniques
    ChengYongJiang ·Zhengzhou University ·2009 ·Master's thesis
  9. Study on Program Real-time Model Checking Method Based on WCET Analysis Technology
  10. Design and Development of a High-speed Heavy-load Palletizing Robot
    CaoJiaZuo ·Tianjin University ·2012 ·Master's thesis
  11. The Design and Analysis of Octahedral Module Deployable Mast
    LiCheng ·Harbin Engineering University ·2013 ·Master's thesis
  12. Research on Mechanical Properties Of the Elastic Body of a Six-Axis Force Sensor Based on Strain Gauge
    WangZhiHong ·Anhui University of Engineering ·2013 ·Master's thesis
  13. Research and Application of Multi-Processing Load Balancing Technology Based on Multi-Core in Cloud Computing
    WuHeSheng ·Nanjing University ·2013 ·Doctoral dissertation
  14. Implementation and Design of Multi-core Support for Micro-kernel Operating System
    YanJieJun ·Nanjing University ·2011 ·Master's thesis
  15. Compiler-directed Static Analysis and Code Transformation
  16. Static Security Detection of C Applications
  17. Research and Implementation of Checkpoint System Based on Embeded Multi-core Environment
  18. Research on Trustworthiness of Resource Adaptability for Internetware
    XiaZuo ·Anhui University of Engineering ·2013 ·Master's thesis
  19. The Research of Exploiting Software Security Vulnerabilities Based on Android Platforms
    TangYuJing ·Hebei University of Engineering ·2013 ·Master's thesis
  20. Research on Energy-efficient Real-time Task Scheduling Algorithm Based on Multi-core Processors
    WangBin ·Harbin Engineering University ·2013 ·Master's thesis