public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Linux scheduler Implementation details
@ 2004-02-27  9:18 Sonika Sachdeva
  2004-02-27  9:21 ` Raj
  2004-02-27  9:24 ` Nick Piggin
  0 siblings, 2 replies; 7+ messages in thread
From: Sonika Sachdeva @ 2004-02-27  9:18 UTC (permalink / raw)
  To: Linux Kernel list

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?

Thank you
Sonika


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Linux scheduler Implementation details
  2004-02-27  9:18 Linux scheduler Implementation details Sonika Sachdeva
@ 2004-02-27  9:21 ` Raj
  2004-02-27  9:24 ` Nick Piggin
  1 sibling, 0 replies; 7+ messages in thread
From: Raj @ 2004-02-27  9:21 UTC (permalink / raw)
  To: Sonika Sachdeva; +Cc: Linux Kernel list

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?
>
>Thank you
>Sonika
>
>-
>To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at  http://vger.kernel.org/majordomo-info.html
>Please read the FAQ at  http://www.tux.org/lkml/
>
>  
>
Documentation/sched-design.txt
Documentation/sched-coding.txt

and oh ofcourse, kernel/sched.c :-)

/Raj


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Linux scheduler Implementation details
  2004-02-27  9:18 Linux scheduler Implementation details Sonika Sachdeva
  2004-02-27  9:21 ` Raj
@ 2004-02-27  9:24 ` Nick Piggin
  2004-02-27  9:46   ` Sonika Sachdeva
  1 sibling, 1 reply; 7+ messages in thread
From: Nick Piggin @ 2004-02-27  9:24 UTC (permalink / raw)
  To: Sonika Sachdeva; +Cc: Linux Kernel list



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.



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Linux scheduler Implementation details
  2004-02-27  9:24 ` Nick Piggin
@ 2004-02-27  9:46   ` Sonika Sachdeva
  2004-02-27 10:07     ` Nick Piggin
  0 siblings, 1 reply; 7+ messages in thread
From: Sonika Sachdeva @ 2004-02-27  9:46 UTC (permalink / raw)
  To: Nick Piggin; +Cc: Linux Kernel list

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.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Linux scheduler Implementation details
  2004-02-27  9:46   ` Sonika Sachdeva
@ 2004-02-27 10:07     ` Nick Piggin
  2004-02-27 10:59       ` Sonika Sachdeva
  0 siblings, 1 reply; 7+ messages in thread
From: Nick Piggin @ 2004-02-27 10:07 UTC (permalink / raw)
  To: Sonika Sachdeva; +Cc: Linux Kernel list



Sonika Sachdeva wrote:

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

You can use it to tell your simulator how the Linux kernel will
schedule tasks. I'm not sure exactly what you want, execution time?
latency?


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Linux scheduler Implementation details
  2004-02-27 10:07     ` Nick Piggin
@ 2004-02-27 10:59       ` Sonika Sachdeva
  2004-02-27 10:59         ` Nick Piggin
  0 siblings, 1 reply; 7+ messages in thread
From: Sonika Sachdeva @ 2004-02-27 10:59 UTC (permalink / raw)
  To: Nick Piggin; +Cc: Linux Kernel list

I wonder if you could give me some hints to do fair approximations (to calculate
execution time) for scheduling process?

Regards
Sonika

Nick Piggin wrote:

> Sonika Sachdeva wrote:
>
> >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?
> >
> >
>
> You can use it to tell your simulator how the Linux kernel will
> schedule tasks. I'm not sure exactly what you want, execution time?
> latency?


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Linux scheduler Implementation details
  2004-02-27 10:59       ` Sonika Sachdeva
@ 2004-02-27 10:59         ` Nick Piggin
  0 siblings, 0 replies; 7+ messages in thread
From: Nick Piggin @ 2004-02-27 10:59 UTC (permalink / raw)
  To: Sonika Sachdeva; +Cc: Linux Kernel list



Sonika Sachdeva wrote:

>I wonder if you could give me some hints to do fair approximations (to calculate
>execution time) for scheduling process?
>
>

Use a very simple model? Assume each runnable process gets equal
amount of the CPU.

I have no idea what you are trying to do or why, but I suspect
that the "simulator" you should be using is testing a running
kernel on a real machine. Very simple, very accurate.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-02-27 10:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-27  9:18 Linux scheduler Implementation details Sonika Sachdeva
2004-02-27  9:21 ` Raj
2004-02-27  9:24 ` Nick Piggin
2004-02-27  9:46   ` Sonika Sachdeva
2004-02-27 10:07     ` Nick Piggin
2004-02-27 10:59       ` Sonika Sachdeva
2004-02-27 10:59         ` Nick Piggin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox