Re: [PATCH] scheduler hints

From: Ingo Oeser (ingo.oeser@informatik.tu-chemnitz.de)
Date: Wed Jun 12 2002 - 13:37:03 EST


On Fri, Jun 07, 2002 at 01:32:31PM +0200, Pavel Machek wrote:
> > Boosting its priority will assure there is no priority inversion and
> > that, eventually, the task will run - but it does nothing to avoid the
> > nasty "grab resource, be preempted, reschedule a bunch, finally find
> > yourself running again since everyone else blocked" issue.
> >
> > And I don't think only root should be able to do this. If we later
> > punish the task (take back the timeslice we gave it) then this is
> > fair.
>
> Another possibility might be to allow it to *steal* time from another
> processes... Of course only processes of same UID ;-).
> Pavel

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.

Regards

Ingo Oeser

-- 
Science is what we can tell a computer. Art is everything else. --- D.E.Knuth
-
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