Linux Kernel Changing Default CPU Scheduler

Güngör Basa picture Güngör Basa · Apr 14, 2014 · Viewed 13.8k times · Source

I am trying to hack the Linux kernel and I am wondering. How can I change the default Linux Process scheduler with another one? And can I just set every processes as a real time process?

Answer

Lorenzo Nava picture Lorenzo Nava · Jan 6, 2016

This post is a little bit dated, but anyway I hope this can help... I had similar problem and I implemented a hack to Linux Kernel to make RR the default CPU scheduler. In the end the hack basically changes the shed_fork function, as pointed out in previous comments. Here is the code I made to implement that: https://aelseb.wordpress.com/2016/01/06/change-linux-cpu-default-scheduler/