一種任意時間片長度對CPU上下文切換代價影響消除的新方法
發(fā)布時間:2018-07-16 14:06
【摘要】:分析并量化了操作系統(tǒng)任務調度時上下文切換對CPU性能影響,得出了任務上下文切換代價對CPU效率影響關系.在此影響關系的基礎上,提出了一種可行的Hyper-Scheduling方法.此方法通過在CPU內(nèi)部設置一條特殊的任務切換專用流水線數(shù)據(jù)通路,并在通用寄存器堆上寄生一個相同的寄存器堆(影子寄存器堆)和監(jiān)視訪存狀態(tài)的寄生邏輯,來監(jiān)視各硬件資源運行情況,實現(xiàn)在CPU硬件資源閑置狀態(tài)時進行預先數(shù)據(jù)準備或任務保存.當任務切換時將這條特殊數(shù)據(jù)通路與CPU主數(shù)據(jù)通路流水線進行交換,使上下文切換時間可趨近于零,任務切換代價被消除,上下文頻繁切換或時間片長度縮短至近于零的情況下,CPU效率仍能夠保持性能最大化.
[Abstract]:The influence of context switching on CPU performance is analyzed and quantified, and the relationship between task context switching cost and CPU efficiency is obtained. Based on the relationship, a feasible Hyper-Scheduling method is proposed. In this method, a special task switching special pipeline data path is set up inside the CPU, and a common register file (shadow register file) is parasitized on the general register file and the parasitic logic of monitoring the memory access state is monitored. To monitor the running situation of each hardware resource, the CPU hardware resource can be prepared or saved in advance when the CPU hardware resource is idle. When the task switches, the special data path is exchanged with the CPU main data path pipeline, so that the context switching time can approach zero, and the task switching cost is eliminated. The CPU efficiency can be maximized when the context is switched frequently or the time slice length is shortened to near zero.
【作者單位】: 華東師范大學可信物聯(lián)網(wǎng)產(chǎn)學研聯(lián)合研發(fā)中心;華東師范大學軟件學院;
【分類號】:TP332
本文編號:2126629
[Abstract]:The influence of context switching on CPU performance is analyzed and quantified, and the relationship between task context switching cost and CPU efficiency is obtained. Based on the relationship, a feasible Hyper-Scheduling method is proposed. In this method, a special task switching special pipeline data path is set up inside the CPU, and a common register file (shadow register file) is parasitized on the general register file and the parasitic logic of monitoring the memory access state is monitored. To monitor the running situation of each hardware resource, the CPU hardware resource can be prepared or saved in advance when the CPU hardware resource is idle. When the task switches, the special data path is exchanged with the CPU main data path pipeline, so that the context switching time can approach zero, and the task switching cost is eliminated. The CPU efficiency can be maximized when the context is switched frequently or the time slice length is shortened to near zero.
【作者單位】: 華東師范大學可信物聯(lián)網(wǎng)產(chǎn)學研聯(lián)合研發(fā)中心;華東師范大學軟件學院;
【分類號】:TP332
【相似文獻】
相關期刊論文 前3條
1 吳貞海;劉福巖;;基于快速上下文切換擴展的快速地址空間切換[J];計算機工程;2010年10期
2 劉月吉;張盛兵;黃嵩人;;一種DSP的快速上下文切換機制[J];計算機應用研究;2012年01期
3 崔光佐,李曉明,胡銘曾;一種支持多線索快速切換的上下文機制:多上下文并行機制[J];計算機研究與發(fā)展;1997年S1期
相關碩士學位論文 前1條
1 王海洋;適于頻繁上下文切換的TG-share分支預測器[D];中國科學院研究生院(計算技術研究所);2002年
,本文編號:2126629
本文鏈接:http://www.lk138.cn/kejilunwen/jisuanjikexuelunwen/2126629.html
最近更新
教材專著