研究生: |
陸婉珍 Wan-Chen Lu |
---|---|
論文名稱: |
即時系統中週期性工作之可排程性分析 Period-Dependent Rate Monotonic Schedulability Analysis in Real-Time Systems |
指導教授: |
石維寬
Wei-Kuan Shih |
口試委員: | |
學位類別: |
博士 Doctor |
系所名稱: |
電機資訊學院 - 資訊工程學系 Computer Science |
論文出版年: | 2007 |
畢業學年度: | 96 |
語文別: | 英文 |
論文頁數: | 91 |
中文關鍵詞: | 即時系統 、週期性工作 、可排程性分析 |
外文關鍵詞: | Real-Time Systems, Periodic Task, Schedulability Test |
相關次數: | 點閱:2 下載:0 |
分享至: |
查詢本校圖書館目錄 查詢臺灣博碩士論文知識加值系統 勘誤回報 |
近幾年來,即時系統已大量應用於交通工具、醫院、電廠或工廠作業
及金融機構等,使得即時系統設計與研究成為非常重要且實用價值高的熱門學問。這些即時系統應用的特色,除了程式的執行必須保證正確性以外,還要考慮系統能否於特定的時間內完成指定的工作或運算,如果系統無法逹成每個工作或運算對於時間性的要求,則系統會造成嚴重的災難;最明顯的例子是例如控制系統上發生了問題,有可能會危及人員的性命安全或造成經濟上的巨大損失。
每個即時性工作都具有不同的工作完成期限、最晚開始執行時間,以
及所需的執行時間,而即時系統必須保證所有的即時性工作都能夠在規定的完成期限內完成。因此在即時系統執行工作之前,需要快速且即時地判斷即時工作的可排程性。即時工作的可排程性判斷主要可分為「精準性測試」或「非精準性測試」兩種類型。精準性測試為可完全正確地判斷某即時工作在特定的排程法則中能順利地執行成功,此類測試需花費較多時間;非精準性測試為不能完全確認某即時工作在特定的排程法則中是否能執行成功,此類測試需要較少時間,適用於online 測試環境中。因此,我們針對在Rate Monotonic 排程法則中執行的即時工作分別提出有效的精準性測試和非精準性測試方法。
在週期性的即時工作方面,我們首先對於精準性測試提出兩個有效率
的測試方法。藉由觀察即時工作在排程上的特性,對於測試時的初值設定及之後的演算方法皆提出改進。此外,對於非精準性測試,我們也提出考量工作週期特性的兩個方法。在多框型態的週期性即時工作方面,我們針對精準性測試和非精確性測試也分別提出考量工作週期特性的有效測試方法。
Real-time scheduling for task sets has been studied, and the corresponding schedulability analysis has been developed. Real-time systems using rate monotonic (RM) fixed priority scheduling can be checked for schedulability either by sufficient but pessimistic schedulability conditions or by exact test. In this thesis, a series of period-dependent schedulability test methods for real-time tasks scheduled by the RM policy on uniprocessor systems are proposed.
In the first portion, we find the efficient schedulability test methods for periodic tasks. Both exact schedulability test methods and sufficient but pessimistic schedulability test methods are investigated. Exact testing provides a more precise result but may not be performed in polynomial time. Audsley et al. proposed one of the earliest methods by iteratively deriving the response times of jobs. Other researchers have improved the exact test method by using different initial values for testing. In this thesis, we first improve the iterative formula used to calculate the response times of jobs. Then, we propose a new initial value for Audsley’s test method to improve the efficiency. We show that the new initial values can significantly improve the efficiency of exact testing. In addition, a better RM schedulability bound for performing the sufficient but pessimistic schedulability is also proposed. The period ratios are considered in the schedulability bound. When more period ratios are considered, the schedulability bound can be higher.
In the second portion, we find the efficient schedulability test methods for multiframe tasks. We explore both exact schedulability test methods and sufficient but pessimistic schedulability test methods. For the exact schedulability test, the period-dependent initial value is used for the test and effectively reduce the number of iterations for testing. For the sufficient but pessimistic schedulability test, we use the information of the relative period ratios between tasks in a system to derive a new schedulability condition. By considering the smallest and the largest period values in a system, we can show that the RM schedulability bound can be improved significantly. This method also can be applied to other test methods studied earlier to improve the schedulability of real-time multiframe systems.
[1] N. C. Audsley, A. Burns, M. Richardson, and A.Wellings, “Hard Real-Time Scheduling: The Deadline-Monotonic Approach,” Proc. of the 8th IEEE Workshop on Real- Time Operating Systems and Software, pp. 133–137, 1991.
[2] N. C. Audsley, A. Burns, M. Richardson, K. Tindell, and A. Wellings, “Applying New Scheduling Theory to Static Priority Pre-emptive Scheduling,” Software Engineering Journal, vol. 8, no. 5, pp. 284–292, 1993.
[3] E. Bini and G. C. Buttazzo, “The Space of Rate Monotonic Schedulability,” Proc. 23th IEEE Real-Time Systems Symp., pp. 169–178, 2002.
[4] E. Bini and G. C. Buttazzo, “Measuring the Performance of Schedulability Tests,” Real-Time Systems J., vol. 30, pp. 129–154, 2005.
[5] E. Bini, G. C. Buttazzo, and G. Buttazzo, “A Hyperbolic Bound for the Rate Monotonic Algorithm,” Proc. 13th IEEE Euromicro Conference on Real-Time Systems, pp. 59–66, 2001.
[6] E. Bini, G. C. Buttazzo, and G. M. Buttazzo, “Rate Monotonic Analysis: the Hyperbolic Bound,” IEEE Trans. on Computers, vol. 52, pp. 933–942, 2003.
[7] R. J. Bril, W. F. J. Verhaegh, and E. J. D. Pol, “Initial Values for On-line Response Time Calculations,” Proc. 15th IEEE Euromicro Conference on Real-Time Systems, pp. 13–22, 2003.
[8] A. Burchard, J. Liebeherr, Y. Oh, and S. H. Son, “New Strategies for Assigning Real-Time Tasks to Multiprocessor Systems,” IEEE Trans. on Computers, vol. 44, no. 12, pp. 1429–1442, 1995.
[9] L. P. Chang, T. W. Kuo, and S. W. Lo, “Real-time Garbage Collection for Flash Memory Storage Systems of Real-Time Embedded Systems,” ACM Transactions on Embedded Computing Systems, vol. 3, no. 4, pp. 837–863, 2004.
[10] D. Chen, A. K. Mok, and T. W. Kuo, “Utilization Bound Revisited,” IEEE Trans. on Computers, vol. 52, no. 3, pp. 351–361, 2003.
[11] A. M. K. Cheng and S. Rao, “Real-Time Traffic Scheduling and Routing in Packet-Switched Networks using a Least-Laxity-First Strategy,” J. VLSI Signal Processing, vol. 34, no. 1–2, 2003.
[12] R. Devillers and J. Goossens, “Liu and Layland’s Schedulability Test Revisited,” Information Processing Letters, vol. 73, no. 5-6, pp.157–161, 2000.
[13] C. C. Han, “A Better Polynomial-Time Schedulability Test for Real-Time Multiframe Tasks,” Proc. 19th IEEE Real-Time Systems Symp., pp. 104–113, 1998.
[14] C. C. Han and K. J. Lin, “Scheduling Distance-Constrained Real-Time Tasks,” Proc. 13th IEEE Real-Time Systems Symp., pp. 300–308, 1992.
[15] C. C. Han and H. Y. Tyan, “A Better Polynomial-Time Schedulability Test for Real-Time Fixed Priority Scheduling Algorithms,” Proc. 18th IEEE Real-Time Systems Symp., pp. 36–45, 1997.
[16] Intel, “Using the RDTSC Instruction for Performance Monitoring,” 1997. http://developer.intel.com/drg/pentiumII/appnotes/RDTSCPM1.htm
[17] N. I. Kamenoff and N. H. Weiderman, “Hartstone Distributed Benchmark: Requirements and Definitions,” Proc. 12th IEEE Real-Time Systems Symp., pp. 199–208, 1991.
[18] T. W. Kuo, L. P. Chang, Y. H. Liu, and K. J. Lin, “Efficient On-Line Schedulability Tests for Real-Time Systems,” IEEE Trans. on Software Eng., vol. 29, no. 8, pp. 734–751, 2003.
[19] T. W. Kuo, S. L. Lee, Y. S. Lin, and Y. H. Liu, “Providing Video-On-Demand Services on Windows NT,” Proc. Int’l Symp. Multimedia Information Processing, pp. 226–231, 1997.
[20] T. W. Kuo and A. K. Mok, “Incremental Configuration and Load Adjustment in Adaptive Real-Time Systems,” IEEE Trans. on Computers, vol. 46, no. 12, pp. 1313–1324, 1997.
[21] N. Kim, M. Ryu, S. Hong, M. Saksena, C. H. Choi, and H. Shin, “Visual Assessment of a Real-Time System Design: A Case Study on a CNC Controller,” Proc. 17th IEEE Real-Time Systems Symp., pp. 300–310, 1996.
[22] S. Lauzac, R. Melhem, and D. Moss’e, “An Improved Rate-Monotonic Admission Control And Its Applications,” IEEE Trans. on Computers, vol. 52, no. 3, pp. 337–350, 2003.
[23] J. Lehoczky, L. Sha, and Y. Ding, “The Rate-Monotonic Scheduling Algorithm: Exact Characterization and Average Behavior,” Proc. 10th IEEE Real-Time Systems Symp., pp. 166–171, 1989.
[24] Jane W.S. Liu, “Real-Time Systems,” Prentice Hall, 2000.
[25] C. L. Liu and J. W. Layland, “Scheduling Algorithms for Multiprogramming in a Hard Real-Time Environment,” Journal of the ACM, vol. 20, no. 1, pp. 40–61, 1973.
[26] J. Liu and Edward A. Lee, “Timed Multitasking for Real-Time Embedded Software,” IEEE Control System Magazine, vol. 23, no. 1, pp. 65–75, 2003.
[27] C. D. Locke, D. R. Vogel, and T. J. Mesler, “Building a Predictable Avionics Platform in Ada: A Case Study,” Proc. 12th IEEE Real-Time Systems Symp., pp. 181–189, 1991.
[28] W. C. Lu, J. W. Hsieh, W. K. Shih, and T. W. Kuo, “A Faster Exact Schedulability Analysis for Fixed-priority Scheduling,” Journal of Systems and Software, vol. 79, no. 12, pp. 1744–1753, 2006.
[29] W. C. Lu, K. J. Lin, H. W. Wei, and W. K. Shih, “New Schedulability Conditions for Real-Time Multiframe Tasks,” Proc. 19th IEEE Euromicro Conf. on Real-Time Systems, pp. 39–48, 2007.
[30] W. C. Lu, K. J. Lin, H. W. Wei, and W. K. Shih, “Efficient Exact Test for Rate Monotonic Schedulability using Large Period-Dependent Initial Values,” accepted by IEEE Transactions on Computers, 2007.
[31] W. C. Lu, K. J. Lin, H. W. Wei, and W. K. Shih, “Rate Monotonic Schedulability Tests using Period-Dependent Conditions,” Real-Time Systems J., vol. 37, no. 2, pp. 123–138, 2007.
[32] L. Miller and A.M.K. Cheng, “Admission of High Priority Real- Time Calls in an ATM Network via Bandwidth Reallocation and Dynamic Rerouting of Active Channels,” Proc. 21st IEEE Real-Time Systems Symp., pp. 249–258, 2000.
[33] A. K. Mok and D. Chen, “A Multiframe Model for Real-Time Tasks,” IEEE Trans. on Software Eng., vol. 23, no. 10, pp. 635–645, 1997.
[34] J. J. Molini, S. K. Maimon, and P. H. Watson, “Real-Time System Scenarios,” Proc. 12th IEEE Real-Time Systems Symp., pp. 214–225, 1991.
[35] D. W. Park, S. Natarajan, A. Kanevsky, and M. J. Kim, “A Generalized Utilization Bound Test for Fixed-Priority Real-Time Scheduling,” Proc. of the 2nd International Workshop on Real-Time Computing Systems and Applications, pp. 73–77, 1995.
[36] P. Pop, P. Eles, and Z. Peng, “Bus Access Optimization for Distributed Embedded Systems Based on Schedulability Analysis,” Proc. of Design, Automation and Test in Europe, pp. 567–574, 2000.
[37] P. Pop, P. Eles, and Z. Peng, “Schedulability-Driven Communication Synthesis for Time Triggered Embedded Systems,” Real-Time Systems J., vol 6, no. 3, pp. 297–325, 2004.
[38] S. Rao and A. M. K. Cheng, “Scheduling and Routing of Real-Time Multimedia Traffic in Packet-Switched Networks,” Proc. IEEE Int’l Conf. Multimedia and Expo, pp. 545–548, 2000.
[39] K. Richter, R. Racu, and R. Ernst, “Scheduling Analysis Integration for Heterogeneous Multiprocessor SoC,” Proc. 24th IEEE International Real-Time Systems Symp., pp. 236–245, 2003.
[40] Y. Tan and V. Mooney, “Timing Analysis for Preemptive Multi-tasking Real-Time Systems,” Proc. of Design, Automation and Test in Europe, pp. 1034–1039, 2004.
[41] H. M. Vin, P. Goyal, and A. Goyal, “A Statistical Admission Control Algorithms for Multimedia Servers,” Proc. ACM Int’l Conf. Multimedia, pp. 33–40, 1994.
[42] C. Wong and A. M. K. Cheng, “An Approach for Imprecise Transmission of TIFF Image Files Through Congested Real-Time ATM Networks,” Proc. 22nd Int’l Conf. Local Computer Networks, pp. 420–429 , 1997.