Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Linux Kernel Changing Default CPU Scheduler

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?

like image 621
Güngör Basa Avatar asked Apr 13 '14 22:04

Güngör Basa


Video Answer


1 Answers

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/

like image 81
Lorenzo Nava Avatar answered Oct 22 '22 16:10

Lorenzo Nava