Computer Engineering and Applications ›› 2014, Vol. 50 ›› Issue (21): 59-62.

Previous Articles     Next Articles

Research on improving Linux completely fair scheduler

ZHU Yonghua1, SHEN Yi2, LIU Ling1   

  1. 1.Computing Center, Shanghai University, Shanghai 200444, China
    2.School of Computer Engineering and Science, Shanghai University, Shanghai 200444, China
  • Online:2014-11-01 Published:2014-10-28

Linux内核完全公平调度器改进的研究

朱永华1,沈  熠2,刘  玲1   

  1. 1.上海大学 计算中心,上海 200444
    2.上海大学 计算机工程与科学学院,上海 200444

Abstract: Fairness issue of the Completely Fair Scheduler (CFS) used in Linux kernel comes up due to the fact that programs with higher number of threads are favored by the scheduler, which are based on the number of thread in the system. A novel algorithm as well as its implementation through optimized procedure is proposed as a solution to achieve better fairness by punishing greedy-threaded programs. Several tests are conducted to illustrate fairness issue and to examine the effect of the proposed algorithm.

Key words: Linux kernel, process scheduling, complete fair scheduler

摘要: 针对现有Linux内核使用的完全公平调度器无法有效解决贪婪线程问题,提出一种改进的调度算法和该算法的高效实现,该算法通过惩罚贪婪线程的方法提升调度器的公平性。实验结果证实,贪婪线程问题存在;改进后的调度算法有效减少了存在贪婪线程问题的程序对降低系统整体性能的影响。

关键词: Linux内核, 任务调度, 完全公平调度