xpra icon
Bug tracker and wiki

Opened 11 months ago

Closed 5 months ago

#2381 closed task (needinfo)

add total latency to perf charts

Reported by: Antoine Martin Owned by: Smo
Priority: major Milestone: 4.0
Component: tests Version: 2.5.x
Keywords: Cc:

Description (last modified by Antoine Martin)

As part of #619 and #2130, it would help to be able to see how long screen updates take to land on the client's screen.
In the same way that we have the "overall latency" on the session info graphs.

Attachments (2)

test_nodelay0cork0.tar.gz (238.0 KB) - added by Smo 11 months ago.
nodelay0 cork0 vs defaults
test-client-frame-latency-dump.patch (847 bytes) - added by Antoine Martin 11 months ago.
debug client frame latency

Download all attachments as: .zip

Change History (9)

comment:1 Changed 11 months ago by Antoine Martin

Description: modified (diff)
Status: newassigned

comment:2 Changed 11 months ago by Antoine Martin

Owner: changed from Antoine Martin to Smo
Status: assignednew

r23539 records two new attributes in xpra info:

  • client.damage.frame-total-latency: how long it takes from the moment we get a damage event until we get the draw acknowledgement packet from the client, that's everything we do - which can be summarized as: batch delay + compression + sending + network latency + receiving + updating the window buffer + sending ack + network latency (again) + receiving ack
  • client.damage.client-latency: same, minus the connection latency (note: this latency includes the cost of the protocol layer - which is small in most but not all cases..)

As of r23541, these new attributes are now exposed in the perf test data as:

  • "Frame Total Latency"
  • "Client Frame Latency"

@smo: does that work?
Maybe re-run just NODELAY=0 + CORK=0 vs default settings.

comment:3 Changed 11 months ago by Smo

Added these to charts in r23546

Changed 11 months ago by Smo

Attachment: test_nodelay0cork0.tar.gz added

nodelay0 cork0 vs defaults

comment:4 Changed 11 months ago by Smo

Here are the results attached to the ticket.

Something looks off to me what do you think?

Changed 11 months ago by Antoine Martin

debug client frame latency

comment:5 Changed 11 months ago by Antoine Martin

Something looks off to me what do you think?

Yup. The values are completely wrong: they should usually be lower than 100ms (+network latency).
No idea why. The values are correct when I run xpra info | egrep "damage.frame-total|damage.client-latency" and the perf test code uses the same function as everywhere else for capturing the data:

add("", avg, "Frame Total Latency",             ["client.damage.frame-total-latency"])
add("", avg, "Client Frame Latency",            ["client.damage.client-latency"])

I've also run the tests and got sensible values out:

Frame Total Latency	 Client Frame Latency
34	34
43	43
45	45
32	32
77	77
63	63

Can you run again with the patch attached and see what you get? It will dump the values it finds for "Client Frame Latency" as it goes along.

comment:6 Changed 10 months ago by Antoine Martin

Milestone: 3.04.0

comment:7 Changed 5 months ago by Antoine Martin

Resolution: needinfo
Status: newclosed
Note: See TracTickets for help on using tickets.