Re: Changing the default scheduler

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Yes, I've managed to go this far.  My problem is discovering where to change on the code to change the default scheduler. It is my first time trying to understand the linux sources, and I couldn't find much updated info online.


Em Ter, 24 de mai de 2016 3:04 AM, Mulyadi Santosa <mulyadi.santosa@xxxxxxxxx> escreveu:


On Tue, May 24, 2016 at 7:59 AM, Renato Utsch <renatoutsch@xxxxxxxxx> wrote:

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?


Em Seg, 23 de mai de 2016 10:05 AM, Mulyadi Santosa <mulyadi.santosa@xxxxxxxxx> escreveu:
On Fri, May 20, 2016 at 6:51 AM, Renato Utsch <renatoutsch@xxxxxxxxx> wrote:
Hello,

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).

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?

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.

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Hi..

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.


--
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com


Hi...

Probably you need to provide several kernel image, each contains different scheduler algorithm you want to test.

So in other word, IMHO, the only way to test different scheduler algorithm is to boot to different kernel each time.

CMIIW


--
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux