研究生: |
古以恩 Ian Ku |
---|---|
論文名稱: |
時間片管理機制的效能評比 Performance Evaluation of Timeslice Management Mechanisms |
指導教授: |
張韻詩
Jane W.S. Liu 金仲達 Chung-Ta King |
口試委員: | |
學位類別: |
碩士 Master |
系所名稱: |
電機資訊學院 - 資訊工程學系 Computer Science |
論文出版年: | 2006 |
畢業學年度: | 94 |
語文別: | 中文 |
論文頁數: | 68 |
中文關鍵詞: | Linux 、時間片管理 、動態時間片配給 、分時共享 |
外文關鍵詞: | Linux, timeslice management, dynamic quantum allocation, time-sharing |
相關次數: | 點閱:3 下載:0 |
分享至: |
查詢本校圖書館目錄 查詢臺灣博碩士論文知識加值系統 勘誤回報 |
在現代,大多數的作業系統為了分享有限的處理器時間給程序,會讓程序們輪流的執行。每一個程序會執行一段時間,停止,然後等待下一次的執行時間。當作業系統把執行時間細分然後分配給想要執行的程序時,讓程序們快速的輪流執行時,就可以給予一種所有的程序都在同時執行的感覺。至於程序在輪流執行時,每一次可以被允許執行多久的時間則是由作業系統裡面的排程器來決定。除了一些少數的例外,Windows的核心排程器會給予所有想要執行的程序相同的時間,而不去考慮程序的優先度以及狀態等等。相對來說,Linux 2.6.10的核心排程器就會根據程序的優先度,然後計算出每一個程序在每一次被允許執行的時間可以是多久。
本篇論文是在評比Windows跟Linux這兩個作業系統管理這個執行時間長短的方法。這兩個作業系統的執行時間管理方法以及其他的排程計算方法都被模擬在一個模擬器上面,然後在不同的工作量以及系統的參數之下進行了許多的實驗。這些實驗所得到的效能資訊被紀錄下來然後整理重現。從這些效能的資訊可以顯示出這兩個作業系統所使用的不同的方法,在不同的工作量以及系統的參數之下,有些情況下使用比較複雜方法的Linux會比使用比較簡單方法的Windows有著較佳的效能。而再另外一些情況下,Windows的效能表現則跟Linux的效能表現一樣。
Most modern operating systems allocate limited amounts of processor time to tasks and let them take turns to run. By dividing time on each processor to ready-to-run tasks, the operating system gives the impression that the tasks are running simultaneously. The amount of time each task is allowed to run each turn is assigned by the scheduler. With a few exceptions, Windows kernel scheduler gives all tasks the same amount regardless of their priorities. In contrast, Linux 2.6.10 kernel computes the amount for each task based on its priority.
This thesis evaluates the methods used by Windows and Linux operating systems to allocate time to tasks under different workloads and system configurations by simulating the methods and scheduling algorithms used by the operating systems. The performance data presented here demonstrate that under certain workloads and system configurations, the more complicated Linux operating system has better performance than its simpler Windows counterpart. While in some other cases Windows performs just as well as Linux.
[1]. OMNeT++, “Discrete Event Simulation System”, http://www.omnetpp.org/
[2]. Anoop Gupta, Andrew Tucker, and Shigeru Urushibara. The impact of operating system scheduling policies and synchronization methods on the performance of parallel applications. In SIGMETRICS Conf. Measurement and Modeling of Comput. Syst., pages 120--132, May 1991.
[3].N. S. Arora, R. D. Blumofe, and C. G. Plaxton, Thread scheduling for multiprogrammed multiprocessors, in ACM Symposium on Parallel Algorithms and Architectures, 1998.
[4].Mark Crovella, Prakash Das, Czarek Dubnicki, Thomas LeBlanc, and Evangelos Markatos. Multiprogramming on multiprocessors. In Proceedings of the Third IEEE Symposium on Parallel and Distributed Processing, pages 590--597, December 1991.
[5].N. B. W. Lampson, A Scheduling Philosophy for Multi-Processing
Systems, Comm. ACM, vol. 11, p. 347-360, May, 1968.
[6].R.M. Needham and D.F. Hartley. Theory and practice in operating system design, in: Proc. 2nd ACM Symp. on operating system principles, Princeton Univ., Princeton, N.J. (Oct. 20-22 1969) 8-12
[7]. R. Love. Linux kernel development. SAMS, Developer Library Series, 2003.
[8]. D. A. Solomon, Inside Windows NT, second edition ISBN 1-57231-677-2
[9]. The Linux Kernel Achieves, http://www.kernel.org/
[10].Linux On-line, http://www.linux.org/
[11].Understanding the Linux 2.6.8.1 CPU Scheduler. By Josh Aas. c 2005 Silicon Graphics, Inc. (SGI). 17th February 2005
[12]. Edward G. Coffman, Jr. , Peter J. Denning, Operating Systems Theory, Prentice Hall Professional Technical Reference, 1973
[13.] J. A. Michel , E. G. Coffman, Jr., Synthesis of a Feedback Queueing Discipline for Computer Operation, Journal of the ACM (JACM), v.21 n.2, p.329-339, April 1974
[14]. Stephen Sherman , Forest Baskett, III , J. C. Browne, Trace-driven modeling and analysis of CPU scheduling in a multiprogramming system, Communications of the ACM, v.15 n.12, p.1063-1069, Dec. 1972
[15]. David F. Stevens, Operating Systems: On overcoming high-priority paralysis in multiprogramming systems: a case history, Communications of the ACM, v.11 n.8, p.539-541, Aug. 1968
[16]. RYDER, KD, A heuristic approach to task dispatching. IBM Syst. J. 9, 3 (1970), 189-198
[17].Bhat, U. Narayan, An Evaluation of CPU Efficiency Under Dynamic Quantum Allocation, Journal of the ACM (JACM) Volume 26 , Issue 4 (October 1979) Pages: 761 - 778
[18].E. G. Coffman, Jr., Analysis of Two Time-Sharing Algorithms Designed for Limited Swapping, Journal of the ACM (JACM), v.15 n.3, p.341-353, July 1968
[19]. Leonard Kleinrock, Time-shared Systems: a theoretical treatment, Journal of the ACM (JACM), v.14 n.2, p.242-261, April 1967
[20]. Don R. Rice, An analytical model for computer system performance evaluation, ACM SIGMETRICS Performance Evaluation Review, Volume 2 ,Issue 2 (June 1973)
Pages: 14 - 30
[21]. Lucas, Henry C., Performance Evaluation and Monitoring, ACM Computing Surveys, Vol. 3, No. 3, September 1971, pp. 79-91.
[22]. Nielson, N.R. An Analysis of Some Time-Sharing Techniques, Communications of the Association for Computing Machinery, Vol. 14, 2 (February, 1971), 79-90.
[23]. Buzen J.P. and Denning P.J., The Operational Analysis of Queuing Network Models, ACM Computing surveys, 10, 3, Sept. 1978, 225-261