> 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
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
(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
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
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
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
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
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