簡易檢索 / 詳目顯示

研究生: 衛信文
Wei, Hsin Wen
論文名稱: On-line Scheduling in Real-Time Multiprocessor Systems
多核心即時系統上的線上排程問題研究
指導教授: 石維寬
Shih, Wei Kuan
口試委員:
學位類別: 博士
Doctor
系所名稱: 電機資訊學院 - 資訊工程學系
Computer Science
論文出版年: 2008
畢業學年度: 96
語文別: 英文
論文頁數: 78
中文關鍵詞: 線上排程演算法可排程率分析即時系統多核心系統
外文關鍵詞: on-line scheduling algorithm, schedulability analysis, real-time system, multiprocessor system
相關次數: 點閱:3下載:0
分享至:
查詢本校圖書館目錄 查詢臺灣博碩士論文知識加值系統 勘誤回報
  • 近年來,隨著許多著重於計算能力的應用程式紛紛朝向多核心平台架構發展,使得多核心即時系統上的線上排程(on-line scheduling)問題研究成為主要探討的議題之一。然而,在多核心即時系統上分析線上排程問題相較於在單核心即時系統上來得困難的多,因為一個執行程序(process)在多核心系統的行為模式較於單核心系統上的行為模式來得更為複雜。因此,在此篇論文中,我們著重於研究與分析在多核心即時系統上的線上排程問題,以發掘線上排程演算法的一些良好的特性與找出更合適於多核心系統的線上排程演算法。
    對即時系統而言,排程演算法(scheduling algorithm)可以分為兩大類,分別是非優先權導向演算法(non-priority-driven algorithm)與優先權導向演算法(priority-driven algorithm),我們主要針對這兩種類演算法進行可排程性的討論與分析。在論文的第一個部份,我們首先探討一種非優先權導向演算法,EDZL (Earliest Deadline until Zero Laxity)演算法。EDZL 是一種混合性的演算法,它結合了EDF演算法與LLF演算法的特性,EDZL演算法一開始排程時會按照EDF的排程策略進行一直到有一個工作(job)進入zero laxity的狀態。為了避免這個進入zero laxity狀態的工作無法在期限之內完成,這個工作相對於目前可以執行的工作而言,其優先權會被提高到最高層級。基於EDZL這樣有彈性的排程策略,我們在雙核心的系統上導出其可排程率界限(schedulability bound)為3/2+|umax−1/2|,其中umax代表的是一個作業(task)的利用率(utilization),而它的值大於所有給定的作業的利用率。為了能夠完整的瞭解EDZL演算法,我們更進一步探索EDZL在排程具有某些限制條件與特殊案例的作業時的一些良好特性。同時我們也對於EDZL的可排程率上限(upper bound)與可排程率下限(lower bound)進行探討,最後,我們探討一種變形的EDZL演算法,稱為EDZL_GCD演算法,並且證明其為最佳的演算法。
    在此篇論文的第二個部份,我們研究一種優先權導向的演算法,RM (Rate Monotonic) 演算法,我們著重於全域(global) RM演算法於m 個相同等級核心上的可排程率探討。我們提出一種可以估算一組作業利用RM演算法排程時所需要配置的核心資源。根據分析配置給作業的核心資源,我們可以找出更好的可排程率下限。而我們所提出的可排程率下限相較於之前的結果更為接近可排程率上限。


    With the trend toward using multiprocessor systems to handle computing intensive applications, the analysis of on-line scheduling algorithms becomes the main interesting issue for real-time multiprocessor systems in recent decades. However, it is difficult to analyze on-line scheduling algorithms in real-time multiprocessor systems because the behavior of a process in a multiprocessor system is more complicated than that in a single processor system. Therefore, in the dissertation, we study on-line scheduling algorithms to explore some nice properties of on-line scheduling algorithms in real-time multiprocessor systems.
    The scheduling algorithms for real-time systems can be categorized into two classes: non-priority-driven scheduling algorithm and priority driven scheduling algorithms. We focus on the schedulability issue of a non-priority-driven scheduling algorithm and a priority-driven scheduling algorithm for multiprocessor systems. In the first part of the dissertation, we study a non-priority-driven scheduler: Earliest Deadline until Zero Laxity (EDZL) scheduling algorithm. EDZL algorithm is a hybrid algorithm of Earliest Deadline First (EDF) algorithm and Least Laxity First (LLF) algorithm. A set of tasks scheduled by EDZL algorithm is initially scheduled using EDF algorithm until any job has a zero laxity. To avoid a job from missing its deadline, the priority of the job is immediately promoted to the highest priority among all active jobs. Based on the flexible scheduling policy of EDZL, we derive the schedulability bound of 3/2+|umax–1/2| for two-processor systems, where umax is the maximum utilization of an individual task in the given task set. For a comprehensive analysis of EDZL, we further explore some nice properties of EDZL for task sets with some restricted conditions and provide some special cases for EDZL scheduling algorithm. We also discuss the best known upper bound and lower bound on EDZL schedulability conditions. A variation of EDZL algorithm, called EDZL_GCD algorithm, is also discussed and is proved to be an optimal scheduling algorithm.
    In the second part of the dissertation, we study a priority-driven scheduler: Rate Monotonic (RM) algorithm. We aims to find the schedulable utilization bound of global RM scheduling algorithm for periodic real-time tasks on m identical processors. A method to estimate the allocation of a set of tasks scheduled by RM algorithm in multiprocessor systems is proposed. Based on the analysis of allocation of the tasks, we present a better utilization lower bound of RM in m processor systems for m >1. Compared with earlier results, the proposed schedulability bound is closer to the upper bound on the achievable schedulability condition of RM.

    中文摘要.....................................I ABSTRACT....................................IV 誌謝.......................................VII TABLE OF CONTENTS.........................VIII LIST OF FIGURES..............................X LIST OF TABLES.............................XII CHAPTER 1....................................1 1.1. MOTIVATION..............................1 1.2. GLOBAL SCHEDULING AND PARTITIONED SCHEDULING ALGORITHMS FOR MULTIPROCESSOR SYSTEMS........3 1.3. OUR RESEARCH EFFORTS AND CONTRIBUTIONS..4 1.4. THESIS ORGANIZATION.....................6 CHAPTER 2....................................7 2.1. SYSTEM MODEL............................7 2.2. OVERVIEW OF THE CLASSIFICATION OF SCHEDULING ALGORITHMS IN SYSTEMS........................8 2.3. PREVIOUS RESULT.........................11 CHAPTER 3....................................16 3.1. BASIC DEFINITION........................16 3.2. EDZL ALGORITHM..........................17 3.3. PROPERTIES OF EDZL ALGORITHM............19 3.4. SCHEDULABILITY OF EDZL IN TWO-PROCESSOR SYSTEMS....21 3.4.1. umax < 1/2............................22 3.4.2. umax ≥ 1/2............................23 3.5. GENERAL UTILIZATION BOUND OF EDZL ON TWO PROCESSORS...................................27 3.6. EDZL ON THREE OR MORE PROCESSORS........29 3.6.1. Schedule m+1 Tasks on m Processors....29 3.6.2. A General Bound on m Processors.......33 3.7. THE EDZL_GCD ALGORITHM..................37 CHAPTER 4....................................41 4.1. PRELIMINARIES...........................41 4.1.1. Task Model............................41 4.1.2. Problem Definition....................42 4.1.3. Finding the Schedulability Bound......48 4.2. PROPERTIES OF CRITICAL PERIOD...........49 4.3. ALLOCATED RATE..........................53 4.3.1. Upper Bound for the Allocated Rate of Tk−1 when t=0..........................................54 4.3.2. Upper Bound for the Allocated Rate of Tk-1 when t>0..........................................60 4.4. SCHEDULABILITY ANALYSIS OF RM ON MULTIPROCESSOR...63 4.5. COMPARISON WITH PREVIOUS RESULT.........67 CHAPTER 5....................................72 5.1. SUMMARY OF OUR RESEARCH.................72 5.2. FUTURE WORK.............................73 BIBLIOGRAPHY.................................75

    [1] B. Andersson, S. Baruah, and J. Jonsson, “Static-Priority Scheduling on Multiprocessors”, In Proceedings of 22th IEEE Real-Time Systems Symposium, London, UK, pp.193-202, 2001.
    [2] B. Andersson, “Static Priority Scheduling in Multiprocessors”, Ph.D Thesis, Department of Computer Engineering, Chalmers University of Technology, 2003.
    [3] T. P. Baker, “Multiprocessor EDF and Deadline Monotonic Schedulability Analysis”, In Proceedings of the 24th IEEE Real-Time Systems Symposium, pp. 120-129, 2003.
    [4] T. P. Baker, “An Analysis of EDF Schedulability on a Multiprocessor”, IEEE Transactions on Parallel and Distributed Systems, Vol. 16, No.8 (Aug. 2005) 760-768.
    [5] T. P. Baker, “An Analysis of Fixed-Priority Schedulability on Multiprocessor”, Real-Time Systems Journal, 32(1-2): 49-71, 2006.
    [6] S. Baruah and J. Carpenter, “Multiprocessor Fixed-Priority Scheduling with Restricted Interprocessor Migrations”, In Proceedings of the 15th Euromicro Conference on Real-Time Systems (ECRTS), July 2003.
    [7] S. Baruah, and J. Goossens, “Rate-Monotonic Scheduling on Uniform Multiprocessors”, IEEE Transactions on Computers, 52(7): 966-970, 2003.
    [8] S. Baruah, “Optimal Utilization Bounds for the Fixed-Priority Scheduling of Periodic Task Systems on Identical Multiprocessors”, IEEE Transactions on Computers, 53(6):781-784, 2004.
    [9] A. Burchard, J. Liebeherr, Y. Oh, and S.H. Son, “New Strategies for Assigning Real-Time Tasks on Multiprocessor Systems”, IEEE Transactions on Computers, 44(12): 1429-1442, 1995.
    [10] J. Carpenter, S. Funk, P. Holman, A. Srinivasan, J. Anderson, and S. Baruah. A categorization of real-time multiprocessor scheduling problems and algorithms. In Handbook of Scheduling: Algorithms, Models, and Performance Analysis, edited by Joseph Y-T Leung . Chapman Hall/ CRC Press. 2004.
    [11] Michele Cirinei and T. P. Baker, “EDZL Scheduling Analysis”, In Proceedings of the 19th Euromicro Conference on Real-Time Systems (ECRTS), pp. 9-18, July 2007.
    [12] Yi-Hsiung Chao, Shun-Shii Lin and Kwei-Jay Lin, "Schedulability Issues for EDZL Scheduling on Real-Time Multiprocessor Systems”, to appear in Information Processing Letters, 2008.
    [13] M. L. Dertouzos and A.K. Mok, “Multiprocessor On-line Scheduling of Hard Real-Time tasks”, IEEE Transactions on Software Engineering, Vol. 15, No.12 (Dec. 1989) 1497-1506.
    [14] S. K. Dhall, and C. L. Liu, “On a Real-Time Scheduling Problem”, Operations Research 26(1): 127-140, 1978.
    [15] J. Goosens, S. Funk, and S. Baruah, “Priority-Driven Scheduling of Periodic Task Systems on Multiprocessors”, Real-Time Systems, Vol. 25 (Sep. 2003) 187-205.
    [16] R. Ha and J.W.S. Liu, “Validating timing constraints in multiprocessor and distributed real-time systems”, In Proceedings of the 14th IEEE International Conference on Distributed Computing Systems, June 1994.
    [17] Suk Kyoon Lee and Epley, Donald, “On-line Scheduling Algorithms of Real-Time Sporadic Tasks in Multiprocessor Systems”, Technical Report 92-3, Dept of Computer Science, University of Iowa, 1992.
    [18] Suk Kyoon Lee, “On-line Multiprocessor Scheduling Algorithms for Real-Time Tasks”, TENCON’94. IEEE Region 10’s Ninth Annual International Conference, (Aug. 1994) 607-611.
    [19] J. Y. T. Leung, and J. Whitehead, “On the Complexity of Fixed-priority scheduling of periodic, real-time tasks”, Performance Evaluation, 2(4): 237-250, 1982.
    [20] C. L. Liu, and J. W. Layland, “Scheduling Algorithms for Multiprogramming in a Hard Real-Time Environment”, Journal of the ACM, 20(1): 40-61, 1973.
    [21] J.M. López, J. L. Díaz and D. F. García, “Utilization Bounds for Multiprocessor Rate-Monotonic Scheduling”, Real-Time Systems, 24(1): 5-28, 2003.
    [22] J.M. López, J. L. Díaz and D. F. García, “Utilization Bounds for EDF Scheduling on Real-Time Multiprocessor Systems”, Real-Time Systems, Vol. 28, 29-68, 2004.
    [23] J. M. López, J. L. Díaz, and D. F. García, “Minimum and Maximum Utilization Bounds for Multiprocessor Rate Monotonic Scheduling”, IEEE Transactions on Parallel and Distributed Systems, 15(7): 642-653, 2004.
    [24] W. C. Lu, H. W. Wei, K. J. Lin, “Rate Monotonic Schedulability Conditions Using Relative Period Ratios”, In Proceedings of 12th IEEE International Conference on Embedded and Real-Time Computing Systems and Applications (RTCSA), Sydney, Australia, Aug. 2006.
    [25] L. Lundberg, “Analyzing Fixed-Priority Global Multiprocessor Scheduling”, In Proceedings of 8th IEEE Real-Time and Embedded Technology and Applications Symposium, San Jose, CA, USA, pp. 145-153, 2002.
    [26] D. Oh, and T. P. Baker, “Utilization Bounds for N-Processor Rate Monotone Scheduling with Static Processor Assignment”, Real-Time Systems, 15(2): 183-193, 1998.
    [27] Y. Oh and S. Son, “Allocating Fixed-Priority Periodic Tasks on Multiprocessor Systems. Real-time Systems”, 9(3):207-239, 1995.
    [28] C. Phillips, C. Stein, E. Torng, and J. Wein, “Optimal Time-Critical Scheduling via Resource Augmentation”, In the Proceedings of the 29th ACM Symposium on Theory of Computing, pp. 140-149, May 1997.
    [29] X. Piao, S. Han, H. Kim, M. Park, Y. Cho, and S. Cho, “Predictability of Earliest Deadline Zero Laxity Algorithm for Multiprocessor”, In the Proceedings of 9th IEEE International Symposium on Object and Component-Oriented Real-Time Distributed Computing, April 2006.
    [30] A. Srinivasan and S. Baruah, “Deadline-based Scheduling of Periodic Task Systems on Multiprocessors”, Information Processing Letters, Vol. 84, Issue 2 (October 2002) 93- 98.
    [31] A. Srinivasan, P. Holman, J. Anderson, and S. Baruah. “The Case for Fair Multiprocessor Scheduling”. In Proceedings of the 11th International Workshop on Parallel and Distributed Real-time Systems, April 2003.
    [32] H. W. Wei, Y. H. Chao, S. S. Lin, K. J. Lin, and W. K. Shih, “Current Results on EDZL Scheduling for Multiprocessor Real-Time Systems”, In the Proceedings of 13th IEEE International Conference on Embedded and Real-Time Computing Systems and Applications (RTCSA), 120-130, 21-24 Aug. 2007.

    無法下載圖示 全文公開日期 本全文未授權公開 (校內網路)
    全文公開日期 本全文未授權公開 (校外網路)

    QR CODE