完全公平调度器(Completely Fair Scheduler).doc

完全公平调度器(Completely Fair Scheduler).doc

  1. 1、本文档共18页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
完全公平调度器(Completely Fair Scheduler)

完全公平调度器(Completely Fair Scheduler) Completely fair scheduler (CFS) design idea is: an ideal and accurate multi task CPU model in a real hardware. The ideal CPU model runs at 100% load, running in parallel for each task in the exact equal speed, each task runs at the speed of 1/n, that is the ideal CPU n tasks, each task speed is CPU the entire load 1/n. Because of the real hardware, can only run a task, it must introduce virtual running time (virtual runtime) the concept of virtual running time for the next time a task execution in the ideal model of CPU (timeslice). In fact, the virtual running time of a task is taking into account the actual running time of the total number of running tasks. So, a bunch of running for a period of time delta, then their vrumtime will follow the above formula. Obviously, the largest priority increment process vrumtime... 2 details of the operation CFS is through tracking the vruntime for task scheduling. It always choose the minimum vruntime process to run. 3 red black tree. The data structure used in tree kernel is a lot, but I dont understand. Which brother Saul to literacy hrtimer also used the red-black-tree. The process of using vruntime rb-tree to store. Some 4 feature CFS has no time-slice concept.o CFS (1), no obvious to use it in a sneaky way to use. I translated a few paragraphs I say this. The document interface estimation is used to adjust the minimum size. For the desktop and server two different scheduling. The latter may not want frequent scheduling, a waste of time. The former is hope to -- from the widow and uneven also In CFS, the running time of each task by virtual p-se.vruntime (NS units) tracking. In an ideal hardware, at any time, all the tasks will have the same p-se.vruntime value, the task will be executed at the same time, and no task will be the ideal time to share from CPU into a load imbalance. The task of the CFS selection logic based on the p-se.vruntime value, and it will always try to run with the m

您可能关注的文档

文档评论(0)

jgx3536 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:6111134150000003

1亿VIP精品文档

相关文档