kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* scheduler help
@ 2014-12-08 13:48 alexis
  2014-12-08 18:58 ` Henry Hallam
  2014-12-08 23:12 ` Anish Kumar
  0 siblings, 2 replies; 5+ messages in thread
From: alexis @ 2014-12-08 13:48 UTC (permalink / raw)
  To: kernelnewbies

hello to everyone ,
l have a assignment and i need help.
i have to change the scheduler function at kernel  2.6.38 so  that the 
scheduler choose the process
with the least slack time.

My problem :
i have create a function that iterates all runnable processes  finds the 
one with least slack time(lst)
and returns a pointer  to the task( struct task_struct*)
Now i need to change the scheduler so that  selected for execution the  
process with lst.

i am trying to change the function pick_next_task_fair in file sched_fair.c
but i cant understand the code in there can someone explain me ?

is the pick_next_task_fair the right function that need change?
if yes it is the only one ?

sorry for my English
thanks.

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

* scheduler help
  2014-12-08 13:48 scheduler help alexis
@ 2014-12-08 18:58 ` Henry Hallam
  2014-12-08 20:34   ` Valdis.Kletnieks at vt.edu
  2014-12-08 23:12 ` Anish Kumar
  1 sibling, 1 reply; 5+ messages in thread
From: Henry Hallam @ 2014-12-08 18:58 UTC (permalink / raw)
  To: kernelnewbies

Your English is fine.

Use a modern kernel, nobody wants to support development of 2.6.x.
It's nearly four years old.

sched_fair.c was moved to kernel/sched/fair.c in 2011, prior to
release of version 3.3.  It has had 345 changes since then.

I realize this is for a class; you should tell your instructor that
they should update the course to use a modern kernel version.  If
enough people do that, maybe it will eventually happen.

Good luck,
Henry

On Mon, Dec 8, 2014 at 5:48 AM, alexis <akavroulakis@gmail.com> wrote:
> hello to everyone ,
> l have a assignment and i need help.
> i have to change the scheduler function at kernel  2.6.38 so  that the
> scheduler choose the process
> with the least slack time.
>
> My problem :
> i have create a function that iterates all runnable processes  finds the
> one with least slack time(lst)
> and returns a pointer  to the task( struct task_struct*)
> Now i need to change the scheduler so that  selected for execution the
> process with lst.
>
> i am trying to change the function pick_next_task_fair in file sched_fair.c
> but i cant understand the code in there can someone explain me ?
>
> is the pick_next_task_fair the right function that need change?
> if yes it is the only one ?
>
> sorry for my English
> thanks.
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

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

* scheduler help
  2014-12-08 18:58 ` Henry Hallam
@ 2014-12-08 20:34   ` Valdis.Kletnieks at vt.edu
  0 siblings, 0 replies; 5+ messages in thread
From: Valdis.Kletnieks at vt.edu @ 2014-12-08 20:34 UTC (permalink / raw)
  To: kernelnewbies

On Mon, 08 Dec 2014 10:58:03 -0800, you said:
> Use a modern kernel, nobody wants to support development of 2.6.x.
> It's nearly four years old.

More correctly, nobody wants to support 2.6.x *for free*.  There's plenty of
people who work for distros who will support 2.6.x if you pay them in the form
of buying a support contract....

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 848 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20141208/093f7fbf/attachment.bin 

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

* scheduler help
  2014-12-08 13:48 scheduler help alexis
  2014-12-08 18:58 ` Henry Hallam
@ 2014-12-08 23:12 ` Anish Kumar
  2014-12-08 23:23   ` Greg KH
  1 sibling, 1 reply; 5+ messages in thread
From: Anish Kumar @ 2014-12-08 23:12 UTC (permalink / raw)
  To: kernelnewbies

I am sure you can get help in Linux mailing list as kernel newbies list would not be be able to answer this.I think there is specific scheduler mailing list.



> On Dec 8, 2014, at 5:48 AM, alexis <akavroulakis@gmail.com> wrote:
> 
> hello to everyone ,
> l have a assignment and i need help.
> i have to change the scheduler function at kernel  2.6.38 so  that the 
> scheduler choose the process
> with the least slack time.
> 
> My problem :
> i have create a function that iterates all runnable processes  finds the 
> one with least slack time(lst)
> and returns a pointer  to the task( struct task_struct*)
> Now i need to change the scheduler so that  selected for execution the  
> process with lst.
> 
> i am trying to change the function pick_next_task_fair in file sched_fair.c
> but i cant understand the code in there can someone explain me ?
> 
> is the pick_next_task_fair the right function that need change?
> if yes it is the only one ?
> 
> sorry for my English
> thanks.
> 
> 
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

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

* scheduler help
  2014-12-08 23:12 ` Anish Kumar
@ 2014-12-08 23:23   ` Greg KH
  0 siblings, 0 replies; 5+ messages in thread
From: Greg KH @ 2014-12-08 23:23 UTC (permalink / raw)
  To: kernelnewbies

On Mon, Dec 08, 2014 at 03:12:24PM -0800, Anish Kumar wrote:
> I am sure you can get help in Linux mailing list as kernel newbies
> list would not be be able to answer this.I think there is specific
> scheduler mailing list.

People do not answer other people's homework questions on public mailing
lists.  Or they do so in ways that guarantee they will get a bad grade,
so beware...

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

end of thread, other threads:[~2014-12-08 23:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-08 13:48 scheduler help alexis
2014-12-08 18:58 ` Henry Hallam
2014-12-08 20:34   ` Valdis.Kletnieks at vt.edu
2014-12-08 23:12 ` Anish Kumar
2014-12-08 23:23   ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).