Re: Changing the default scheduler

2016-05-26 Thread Armand Zangue
> What would I have to do if I instead wanted to change the scheduler class > that is used when a process specifies the SCHED_NORMAL policy? Is there a > way to do that without replacing the CFS source at fair.c? I'm not sure if it is the safer way to do this, but I think you can achieve this by c

Re: Changing the default scheduler

2016-05-25 Thread Renato Utsch
Changing the policy of the init process at include/linux/init_task.h worked! Although a lot of tasks asked to change the scheduler policy to SCHED_NORMAL (and thus the scheduler class to CFS) through sched_setscheduler(), so I had to add some code there to force the SCHED_RR policy. I made the pri

Re: Changing the default scheduler

2016-05-24 Thread Frederic Weisbecker
(Sorry I forgot to Cc kernelnewbies, I fixed the Cc line). On Tue, May 24, 2016 at 11:47:37AM +, Renato Utsch wrote: > Hi Frederic, > > Thanks, this was exactly what I was looking for! I was suspecting that all > the processes would inherit the policy of the init process, but I didn't > know

Re: Changing the default scheduler

2016-05-24 Thread Renato Utsch
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.sant...@g

Re: Changing the default scheduler

2016-05-23 Thread Mulyadi Santosa
On Tue, May 24, 2016 at 7:59 AM, Renato Utsch 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

Re: Changing the default scheduler

2016-05-23 Thread Renato Utsch
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.sant...@gmail.com> escreveu: > O

Re: Changing the default scheduler

2016-05-23 Thread Mulyadi Santosa
On Fri, May 20, 2016 at 6:51 AM, Renato Utsch 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

Changing the default scheduler

2016-05-19 Thread Renato Utsch
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 chan