Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is Linux CFS Scheduler Code?

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.

like image 815
Ace Avatar asked Jan 27 '14 01:01

Ace


2 Answers

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

like image 156
bladeWalker Avatar answered Oct 01 '22 21:10

bladeWalker


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

like image 28
CL. Avatar answered Oct 01 '22 21:10

CL.