[Y-devel] Y latency stuff
Erik erikhill at hawaii.rr.com
Sat Feb 21 11:25:25 GMT 2004
On Saturday 21 February 2004 12:33 am, Chris wrote:
> Mark's thesis is available at:
>
> https://www.doc.ic.ac.uk/~ajf/Teaching/Projects/Distinguished03/MarkThomas.p
>d
Yes, thank you, I already read it, this is what it has to say about latency,
page 23:
" Speed improvements can be made by buffering multiple requests and sending
them as a single packet. However, the buffer must be flushed frequently in
order to avoid significant latency."
Combining packets improves throughput, but can, as it is already stated in
Mark's thesis, can worsen latency. Human perception begins to notice a delay
at as little as 10ms, and even a single operation, if long enough, such as a
big bitmap copy, can exceed that. And it's also possible that a lower
priority task is sending more work per packet (a lot of bitmap copies, for
example), so even if the higher priority task gets more requests through, it
still might be overwhelmed by a lower priority task that is simply reading
mouse movements or updating buttons or whatnot. We want buttons for example
to update very quickly even if there's a lot of business going on. And of
course we want movies to not drop frames and so on. Luckily, the Linux
kernel already distinguishes between high and low interactive tasks by
analyzing the sleeping behavior of the tasks (tasks which sleep a lot and are
only occasionally running get a significant priority boost). Other kernels
have other ways of dealing with interactivity and priority. If the Y server
can obtain this information it can boost the interactivity of tasks based on
the same information that the kernel has, without having to recompute it. As
for other kernels, the priority information is still quite useful and can be
used to avoid priority inversions. Approaches that I've considered are,
resorting the queue, multithreading (which Y might already do) and setting
the priority of each thread based on the priority of the task which sent the
signal, or just modifying the priority of the Y server based on that same
information, as it goes through the queue (priorities can be changed very
quickly, with basically zero overhead).
> (and he should really put a link to 'The Thesis', yes capitalized like
> that, on the front page at www.y-windows.org... the phrase 'have you read The
> Thesis' is becoming to common to hide it 3/4s of the way through the about
> page...)
>
> And other than the discussions in the thesis, I don't believe latency has
> been mentioned. There's only a couple hours reading to all the posts in
> the lists. I think. At least there was yesterday... ;)
>
> I'll read your post again to-morrow. Normally, timing issues actually do
> interest me (might have something to do with my rt background...) but
> right now it's late, so.
>
Cool.
> And, even though I still feel like I just barged in on the party, I've been
> here longer than you, so, welcome to the list. ;)
>
Awesome party. I look forward to it -- lets figure this timing stuff out
right on this puppy so we can say goodbye to jumps and stutters like in
XFree86.
> --Chris
>
> On Sat, Feb 21, 2004 at 12:13:35AM -1000, Erik wrote:
> > Hello, I'd like to introduce myself, my name is Erik Hill.
>
> ...
>
> > At this time, is there any standardization of the protocol? I noticed a
> > couple of gadget types, so it seems to be forming.
>
> ..
>
> > I am very interested in latency in user interfaces. And specifically,
> > how to lower it.
>
> ...
>
> _______________________________________________
> Y-devel mailing list
> Y-devel at www.y-windows.org
> https://www.y-windows.org/mailman/listinfo/y-devel
More information about the Y-devel mailing list
2026 © www.Y-Windows.Org - All Rights Reserved