Where is Linux CFS Scheduler Code?

不想你离开。 提交于 2019-12-08 15:50:37

问题


I have complete linux source code for version 3.13. I was trying to find out source code for CFS scheduler which according to popular books should reside inside /kernel/sched.c for base scheduler code and /kernel/sched_fair.c specifically for CFS code. I just made a code wide global search for those two files inside my 3.13 linux code which turned up no results. I also individually searched /linux-3.13/kernel folder and /linux-3.13/kernel/sched folders. Still no luck.

I wanted someone to shed light on where CFS is located inside the new linux kernel code domain(linux-3.13.*). Please excuse me if I am missing something here. I am a beginner to linux kernel.


回答1:


Source code changes quickly and books are updated slowly. Its in kernel/sched/fair.c.




回答2:


All the scheduler code is now in the kernel/sched/ directory.




回答3:


CFS scheduler code is in kernel/sched_fair.c (Kernel 3.0.4)



来源:https://stackoverflow.com/questions/21371735/where-is-linux-cfs-scheduler-code

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!