基于多核平臺的實時混合任務調度算法研究
發(fā)布時間:2018-03-24 17:54
本文選題:多核平臺 切入點:混合任務 出處:《武漢理工大學》2013年碩士論文
【摘要】:隨著人類對計算機性能需求的不斷提高,處理具有嚴格時間限制的計算密集型實時應用時,單核處理器已經顯得力不從心,人們把提高計算機性能的需求通過采用多核處理器來實現(xiàn)。目前,智能手機、平板電腦、筆記本電腦等電子產品基本上都采用了多核處理器。多核處理器因其諸多的優(yōu)勢將取代傳統(tǒng)的單核處理器,逐步成為市場的主流。 多核處理器的普及為實時系統(tǒng)的應用提供了更廣闊的平臺,也使實時系統(tǒng)變得更為復雜,系統(tǒng)中同時存在多種類型的任務,其中主要包括硬實時周期任務和軟實時非周期任務兩種任務類型。這類實時混合任務調度目標是在保證硬實時周期任務滿足截止期的前提下,盡量提高軟實時非周期任務的平均響應時間,然而,這并不是唯一的目標,為了充分利用多核的性能優(yōu)勢以及維持系統(tǒng)的穩(wěn)定性,還需要考慮提高多核處理器的利用率和負載均衡。 針對以上兩個目標,本文對多核平臺的實時混合任務調度算法進行了研究,主要工作如下: (1)首先,采用劃分方案將所有的硬實時周期任務映射到特定的處理器核上;然后,對每個核上的周期任務進行分析,定義了“超周期空閑時間”和“空閑率”及相關計算方法,提出了分配最小截止期(Assign Minimum Deadline, AMD)算法,該算法為混合任務中的軟實時任務選擇具有最大空閑率的處理器核,并為其分配最小截止期;最后,將分配最小截止期的軟實時任務和硬實時周期任務一起由EDF算法進行調度,可使混合任務中的軟實時任務盡可能早得到響應,從而有效縮短了軟實時任務的平均響應時間,并且該算法利用的是周期任務集在每個超周期內提供的空閑時間來處理軟實時任務,所以不會影響到硬實時周期任務的截止期。 (2)硬實時周期任務的分配策略不僅會影響到軟實時任務的調度,還會影響到多核處理器的利用率及負載均衡(Utilization and Load Balance,,ULB),為了綜合考慮實時混合任務調度以及多核處理器的利用率和負載均衡,提出了EDF-ULB算法,該算法通過定義“分配因子”對周期任務集的分配策略進行靈活選擇,實驗結果表明,該算法在提高混合任務中軟實時任務平均響應時間的同時,有效的平衡了多核處理器核的高利用率和負載均衡。
[Abstract]:With the increasing demand for computer performance, when dealing with computationally intensive real-time applications with strict time constraints, the single-core processor has become inadequate. The need to improve the performance of computers is achieved through the use of multi-core processors. At present, smartphones, tablets, Notebook computers and other electronic products basically use multi-core processors. Because of its many advantages, multi-core processors will replace the traditional single-core processors and gradually become the mainstream of the market. The popularity of multi-core processors provides a broader platform for the application of real-time systems, and also makes real-time systems more complex, and there are many types of tasks in the system. There are two kinds of tasks: hard real-time periodic task and soft real time aperiodic task. The scheduling goal of this kind of real-time hybrid task is to ensure that hard real-time periodic task meets the deadline. To maximize the average response time of soft real-time aperiodic tasks, however, this is not the only goal, in order to take full advantage of the performance advantages of multi-core and maintain the stability of the system. Consideration should also be given to increasing the utilization and load balancing of multi-core processors. Aiming at the above two objectives, this paper studies the real-time hybrid task scheduling algorithm of multi-core platform. The main work is as follows:. First of all, all hard real-time periodic tasks are mapped to specific processor cores by partitioning scheme, then the periodic tasks on each core are analyzed, and the "super-period idle time", "idle rate" and the related calculation methods are defined. In this paper, an assign Minimum deadline (AMD) algorithm is proposed. The algorithm selects processor cores with maximum idle rate for soft real-time tasks in hybrid tasks, and assigns minimum deadlines to them. The soft real-time task with the minimum deadline is scheduled by EDF algorithm together with the hard real-time periodic task, so that the soft real-time task in the mixed task can be responded as early as possible, and the average response time of the soft real time task can be shortened effectively. Moreover, the algorithm uses the idle time provided by the periodic task set in each super-period to process soft real-time tasks, so it does not affect the deadline of hard real-time periodic tasks. The allocation strategy of hard real-time periodic tasks will not only affect the scheduling of soft real-time tasks. It will also affect the utilization of multi-core processors and load balancing. In order to comprehensively consider the real-time mixed task scheduling, the utilization and load balancing of multi-core processors, a EDF-ULB algorithm is proposed. The algorithm flexibly selects the allocation strategy of periodic task set by defining "assignment factor". The experimental results show that the algorithm not only improves the average response time of soft real-time tasks in hybrid tasks, but also increases the average response time of soft real-time tasks. The high utilization and load balance of multi-core processor core are effectively balanced.
【學位授予單位】:武漢理工大學
【學位級別】:碩士
【學位授予年份】:2013
【分類號】:TP301.6
【參考文獻】
相關期刊論文 前5條
1 沈卓煒;;長釋放時間間隔優(yōu)先的混合任務調度算法[J];計算機工程與應用;2007年05期
2 徐成;王立東;劉彥;;基于遺傳算法的異構多核多幀任務分配[J];計算機應用研究;2009年11期
3 金宏,王宏安,王強,戴國忠;改進的最小空閑時間優(yōu)先調度算法[J];軟件學報;2004年08期
4 黃國睿;張平;魏廣博;;多核處理器的關鍵技術及其發(fā)展趨勢[J];計算機工程與設計;2009年10期
5 黃姝娟;朱怡安;李兵哲;陸偉;;基于利用率和負載均衡的多核實時調度算法研究[J];西北工業(yè)大學學報;2012年01期
相關博士學位論文 前4條
1 賓雪蓮;實時系統(tǒng)中的任務調度技術研究[D];國防科學技術大學;2004年
2 涂剛;軟實時系統(tǒng)任務調度算法研究[D];華中科技大學;2004年
3 譚朋柳;開放式實時系統(tǒng)任務調度的研究[D];華中科技大學;2008年
4 張杰;最早截止期優(yōu)先實時調度算法研究[D];華中科技大學;2009年
相關碩士學位論文 前2條
1 謝建平;單處理器環(huán)境下實時混合任務的調度算法研究[D];武漢理工大學;2008年
2 邱峗峗;基于多核處理器的節(jié)能調度算法研究[D];武漢理工大學;2012年
本文編號:1659386
本文鏈接:http://www.sikaile.net/kejilunwen/jisuanjikexuelunwen/1659386.html
最近更新
教材專著