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
fastpath.
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 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/
This archive was generated by hypermail 2b29 : Sat Jun 15 2002 - 22:00:26 EST