[lkml]   [2002]   [Jun]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] scheduler hints
On Wed, 2002-06-12 at 11:37, Ingo Oeser wrote:

> Good idea!
> And I would say SID instead of UID and give up, if no task in the
> same SID is runnable.
> One could provide different policies here, which the user can
> choose/combine.
> That way we aren't at least unfair to other users on our remote
> machine.

The solution I am working on now is to just take the timeslice away
later. I.e., now it is more beneficial to me than later, so give me
some of my future timeslice now. This is per-process.

It is enforced right now only by a call to sched_hint() with a hint
saying "I am done". The timeslice used is calculated and your timeslice
is adjusted and if applicable you are removed from the active runqueue.

Next I need to add a check to schedule() to check for processes who are
scheduling off and have not explicitly given the "I am done" hint. I am
weary of what to do here as I do not want to adversely affect the

That is what I am playing with now, anyhow... but I have been a bit busy
of late and not put enough cycles into it.

Robert Love

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:26    [W:0.058 / U:26.612 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site