Re: Thread Scheduler

From: Mahmood Naderan
Date: Wed Mar 19 2014 - 16:07:15 EST






On Wednesday, March 19, 2014 4:36 PM, Jack Carrozzo <jack@xxxxxxxxxxx> wrote:

>On Wed, Mar 19, 2014 at 7:34 AM, Mahmood Naderan <nt_mahmood@xxxxxxxxx> wrote:
>
>>
>> [...]
>> Do you mean include/linux/sched.h ?
>> Where is he implementation then?
>
>Your kernel source is incomplete. You can fetch a vanilla kernel
>tarball from http://kernel.org.
>
>jackc@kdev0 ~ $ ls /usr/src/linux-2.6.10/kernel/|grep sched
>sched.c
>jackc@kdev0 ~ $ ls /usr/src/linux-3.13.5/kernel/sched/
>auto_group.c  completion.c  cpuacct.h  cputime.c  features.h   proc.c
>stats.c      wait.c
>auto_group.h  core.c        cpupri.c   debug.c    idle_task.c  rt.c     stats.h
>clock.c       cpuacct.c     cpupri.h   fair.c     Makefile     sched.h
>stop_task.c
>
>-J


OK I installed the full source and now can see the sched*.c files
One more question. Is it possible to dynamically change the scheduling policy, e.g from fair to clock? Basically, I am trying to find the direction on *how to invoke a new scheduling policy*?

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/