Re: Linux scheduler Implementation details
From: Sonika Sachdeva
Date: Fri Feb 27 2004 - 04:47:47 EST
Hi,
I want to give the loaded system metrics(loadavg, io details etc) as the input to
the simulator program so that it is able to calculate the priority for any new job
that will be submitted.
Then knowing the execution time of that job in a no-load system, I am able to
compute the latency encountered becoz of the load on the system.
How can I reuse the sched.c code to do this?
Thank you
Regards
Sonika
Nick Piggin wrote:
> Sonika Sachdeva wrote:
>
> >Hello List,
> >
> >I want to simulate the Linux Scheduler, ie Calculate the priorities, counters
> >and define to some extent how much time a given process will take to execute on
> >the system. Can anyone suggest some pointers?
> >
> >
>
> It is all in kernel/sched.c, so you can just make a simulator and
> plug that code in.
>
> This will perfectly model the scheduler behaviour given some input
> from your simulator, which is what you asked for. This has nothing
> to do with maximum realtime scheduling latency, of course.
-
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/