Impact Analysis of Overestimation Sources on the Accuracy of the Worst Case Timing Analysis for RISC Processors

RISC 프로세서를 대상으로 한 최악 실행시간 분석의 정확도에 대한 과예측 원인별 영향 분석

  • Kim, Seong-Gwan (Dept.of Computer Engineering, Seoul National University) ;
  • Min, Sang-Ryeol (Dept.of Computer Engineering, Seoul National University) ;
  • Ha, Ran (Dept. of Computer Engineering, Hongik University) ;
  • Kim, Jong-Sang (Dept.of Computer Engineering, Seoul National University)
  • 김성관 (서울대학교 컴퓨터공학과) ;
  • 민상렬 (서울대학교 컴퓨터공학과) ;
  • 하란 (홍익대학교 컴퓨터공학과) ;
  • 김종상 (서울대학교 컴퓨터공학과)
  • Published : 1999.08.01

Abstract

실시간 태스크의 최악 실행시간을 예측할 때 과예측이 발생하는 원인은, 첫째 프로그램의 동적인 최악 실행 행태를 정적으로 분석하는 것이 근본적으로 어렵기 때문이며, 둘째 최근의 RISC 형태 프로세서에 포함되어 있는 파이프라인 실행 구조와 캐쉬 등이 그러한 정적 분석을 더욱 어렵게 만들기 때문이다. 그런데 기존의 연구에서는 각각의 과예측 원인을 해결하기 위한 방법에 대해서만 언급하고 있을 뿐 분석의 정확도에서 각 원인이 차지하는 비중에 대해서는 언급하고 있지 않다. 이에 본 연구에서는 최악 실행시간 예측시 과예측을 유발하는 원인들, 즉 분석 요소들의 영향을 정량적으로 조사함으로써 기존의 최악 실행시간 분석 기법들이 보완해야 할 방향을 제시하고자 한다. 본 연구에서는 실험이 특정 분석 기법에 의존하지 않도록 하기 위하여 시뮬레이션 방법에 기반한다. 이를 위해 분석 요소별 스위치가 포함된 MIPS R3000 프로세서를 위한 시뮬레이터를 구현하였는데, 각 스위치는 해당 분석 요소에 대한 분석의 정확도 수준을 결정한다. 모든 스위치 조합에 대해서 시뮬레이션을 반복 수행한 다음 분산 분석을 수행하여 어떤 분석 요소가 가장 큰 영향을 끼치는지 고찰한다.Abstract Existing analysis techniques for estimating the worst case execution time (WCET) of real-time tasks still suffer from significant overestimation due to two types of overestimation sources. First, it is unavoidably difficult to predict dynamic behavior of programs statically. Second, pipelined execution and caching found in recent RISC-style processors even more complicate such a prediction. Although these overestimation sources have been attacked in many existing analysis techniques, we cannot find in the literature any description about questions like which one is most important. Thus, in this paper, we quantitatively analyze the impacts of overestimation sources on the accuracy of the worst case timing analysis. Using the results, we can identify dominant overestimation sources that should be analyzed more accurately to get tighter WCET estimations. To make our method independent of any existing analysis techniques, we use simulation based methodology. We have implemented a MIPS R3000 simulator equipped with several switches, each of which determines the accuracy level of the timing analysis for the corresponding overestimation source. After repeating simulation for all of the switch combinations, we perform the variance analysis and study which factor has the largest impact on the accuracy of the predicted WCETs.

Keywords

References

  1. In Proceedings the 14th Real-Time Systems Symposium An Accurate Worst Case Timing Analysis for RISC Processors S.-S.Lim;Y.H.Bae;G.T.Jang;B.-D.Rhee;S.L.Min;C.Y.Park;H.Shin;K.Park;C.S.Kim
  2. IEEE Transactions on Software Engineering v.21 no.7 An Accurate Worst Case Timing Analysis for RISC Processors S.-S.Lim;Y.H.Bae;G.T.Jang;B.-D.Rhee;S.L.Min;C.Y.Park;H.Shin;K.Park;C.S.Kim
  3. In Proceedings of the 16th Real-Time Systems Symposium Worst Case Timing Analysis of RISC Processors: R3000/3010 Case Study Y.Hur;Y.H.Bae;S.-S.Lim;S.-K.Kim;B.-D.Rhee;S.L.Min;C.Y.Park;H.Shin;C.S.Kim
  4. Static Cache Simulation and its Applications F.Mueller
  5. In Proceedings of the 15th Real-Time Systems Symposium Bounding Worst-Case Instruction Cache Performance R.Anold;F.Mueller;D.Whalley;M.Harmon
  6. In Proceedings of the 16th Real-Time System Symposium Integrating the Timing Analysis of Pipelining and Instruction Caching C.A.Healy;D.B.Whalley;M.G.Harmon
  7. In Proceedings of the 16th Real-Time System Symposium Efficient Microarchitecture Modeling and Path Analysis for Real-Time Software Y.S.Li;S.Malik;A.Wolfe
  8. In Proceedings of the 17th Real-Time System Symposium Cache Modeling for Real-Time Software: Beyond Direct Mapped Instruction Caches Y.S.Li;S.Malik;A.Wolfe
  9. In Proceedings of the IEEE Real-Time Technology and Applications Symposium Efficient Worst Case Timing Analysis of Data Caching S.-K.Kim;S.L.Min;R.Ha
  10. IEEE Transactions On Software Engineering v.15 no.7 Reasoning About Time in Higher-Level Language Software A.C.Shaw
  11. In Proceedings of the 11th Real-Time System Symposium Experiments With A Program Timing Tool Based On Source-Level Timing Schema C.Y.Park;A.C.Shaw
  12. In Proceedings of the 12th Real-Time System Symposium Program representation and translation for predictable real-time systems D.Niehaus
  13. Design and Analysis of Experiments D.C.Montgomery
  14. The Art of Computer Systems Performance Analysis R.Jain
  15. SPIM S20: A MIPS R2000 Simulator J,Larus
  16. Journal of Real-Time Systems v.1 no.2 Calculating the Maximum Execution Time of Real-Time Programs P.Puschner;C.Koza
  17. IEEE Software v.9 no.5 Developing Real-Time Tasks with Predictable Timing G.Pospischil;P.Puschner;A.Vrchoticky;R.Zainlinger