lkml.org 
[lkml]   [2007]   [Mar]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH][RSDL-mm 0/7] RSDL cpu scheduler for 2.6.21-rc3-mm2
Date
On Mar 12, 2007, at 11:26:25, Linus Torvalds wrote:
> So "good fairness" really should involve some notion of "work done
> for others". It's just not very easy to do..

Maybe extend UNIX sockets to add another passable object type vis-a-
vis SCM_RIGHTS, except in this case "SCM_CPUTIME". You call
SCM_CPUTIME with a time value in monotonic real-time nanoseconds
(duration) and a value out of 100 indicating what percentage of your
timeslices to give to the process (for the specified duration). The
receiving process would be informed of the estimated total number of
nanoseconds of timeslice that it will be given based on the priority
of the processes. (Maybe it could prioritize requests?). The X
libraries could then properly "pass" CPU time to the X server to help
with rendering their requests, and the X server could give priority
to tasks which give up more CPU time than is needed to render their
data, and penalize those which use more than they give. Initially
even if you don't patch the X server you could at least patch the X
clients to give up CPU to the X server to promote interactivity.

Cheers,
Kyle Moffett

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

\
 
 \ /
  Last update: 2007-03-13 05:21    [W:0.189 / U:0.144 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site