<p dir="ltr">The idea is to patch the kernel. I am trying to discover how I can set the default scheduler for new processes, so that I can test the behavior of any schedulers that I may write. Do you have any ideas? </p>
<br><div class="gmail_quote"><div dir="ltr">Em Seg, 23 de mai de 2016 10:05 AM, Mulyadi Santosa <<a href="mailto:mulyadi.santosa@gmail.com">mulyadi.santosa@gmail.com</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, May 20, 2016 at 6:51 AM, Renato Utsch <span dir="ltr"><<a href="mailto:renatoutsch@gmail.com" target="_blank">renatoutsch@gmail.com</a>></span> wrote:<br></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>I am a new developer trying to learn how to tinker with the kernel. I searched on the internet but couldn't find much info about this (and couldn't find any info up to date).</div><div><br></div><div>My question is, how does the kernel decide which is the default scheduler that all processes start with? I can change the scheduler of a process by sched_setscheduler(), but how do I change *all* processes from using the CFS scheduler to, for example, the RR scheduler?</div><div><br></div><div>Sorry if this is too basic, but I don't know where to search for this. If you guys could point me places where I can learn more about this, I would be grateful.</div></div>
<br></blockquote></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org" target="_blank">Kernelnewbies@kernelnewbies.org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" rel="noreferrer" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
<br></blockquote></div><br></div><div class="gmail_extra">Hi..<br><br></div><div class="gmail_extra">putting aside scheduler plugins module that once exist and maintained (not sure now), I guess the only way to switch to new scheduler is to patch your kernel first (if you haven't do that) with scheduler patch such as Con Kolivas BFS and reboot to that new kernel.<br><br clear="all"></div></div><div dir="ltr"><div class="gmail_extra"><br>-- <br><div>regards,<br><br>Mulyadi Santosa<br>Freelance Linux trainer and consultant<br><br>blog: <a href="http://the-hydra.blogspot.com" target="_blank">the-hydra.blogspot.com</a><br>training: <a href="http://mulyaditraining.blogspot.com" target="_blank">mulyaditraining.blogspot.com</a></div>
</div></div></blockquote></div>