Xpra-org / xpra

Persistent remote applications for X11; screen sharing for X11, MacOS and MSWindows.
https://xpra.org/
GNU General Public License v2.0
1.97k stars 169 forks source link

very high latency on LAN #1651

Closed totaam closed 7 years ago

totaam commented 7 years ago

Issue migrated from trac ticket # 1651

component: server | priority: major | resolution: needinfo | keywords: latency

2017-09-19 14:34:30: mavu created the issue


OS: Debian testing (Future Buster) xpra version client + server : Xpra gtk2 client version 2.1.2-16903 64-bit

2017-09-19 14:47:46,728  running on Linux Debian testing buster
2017-09-19 14:47:49,137 GStreamer version 1.12.2 for Python 2.7.13 64-bit

installed from winswitch repo.

commandline:

xpra --speaker=on --desktop-scaling=off --video-scaling=off --border=off --opengl=yes --exit-with-children start ssh:mars --start-child="xterm"

then start opengl application (eve online, game) with vglrun wine path/to/exe

xpra works, but the latency makes it unusable.

xpra info | grep latency.avg
damage.in_latency.avg=1891
damage.out_latency.avg=1984
window.1.damage.in_latency.avg=228
window.1.damage.out_latency.avg=228
window.1.encoding.speed.damage_latency.avg=311
window.3.damage.in_latency.avg=0
window.3.damage.out_latency.avg=0
window.3.encoding.speed.damage_latency.avg=100
window.4.damage.in_latency.avg=0
window.4.damage.out_latency.avg=0
window.4.encoding.speed.damage_latency.avg=100
window.5.damage.in_latency.avg=3610
window.5.damage.out_latency.avg=3799
window.5.encoding.speed.damage_latency.avg=792

this is on a lan with one PC connected to router, one connected to router through 100mbit switch.

I used to use the very old 0.16 version present in the debian repo, and it worked until I had to do an update, after which it stopped working with 0.16. After that I decided to update to 2.1.2 from the winswitch repo, and never got it to work again without unusable latency.

So, I know it worked at one time with the application and virtualgl.

xpra info | egrep "last_used|total_frames|total_pixels" 
window.1.last_used=rgb24
window.1.total_frames.rgb24=3
window.1.total_pixels.rgb24=1510860
window.3.last_used=rgb24
window.4.last_used=rgb32
window.5.last_used=rgb24
window.5.total_frames.rgb24=4
window.5.total_pixels.rgb24=3145728
window.19.last_used=rgb24
window.20.last_used=h264
window.20.total_frames.delta=11
window.20.total_frames.h264=10
window.20.total_frames.jpeg=44
window.20.total_frames.png=7
window.20.total_frames.rgb24=27
window.20.total_pixels.delta=216332
window.20.total_pixels.h264=10427792
window.20.total_pixels.jpeg=26149524
window.20.total_pixels.png=7343616
window.20.total_pixels.rgb24=13448880
  • window 1 is the xterm
  • window 5 is the game launcher
  • window 20 game client

I'll attach the xpra info as file. below output from the bug-report tool

totaam commented 7 years ago

2017-09-19 14:34:55: mavu uploaded file xpra_info (172.9 KiB)

totaam commented 7 years ago

2017-09-20 06:58:17: antoine uploaded file bug-report.txt (159.1 KiB)

converting super long bug report to attachment

totaam commented 7 years ago

2017-09-20 07:02:54: antoine changed owner from antoine to mavu

totaam commented 7 years ago

2017-09-20 07:02:54: antoine edited the issue description

totaam commented 7 years ago

2017-09-20 07:02:54: antoine commented


Does this happen with other applications or just this one? Can you give me a reproducible test case that does not involve running wine? Is the latency still bad if you attach directly on the server? (assuming that it isn't headless) Does it work any better if you use a tcp connection instead of ssh? Is the server powerful enough? Have you tried setting min-speed?

totaam commented 7 years ago

2017-10-01 11:01:09: antoine changed status from new to closed

totaam commented 7 years ago

2017-10-01 11:01:09: antoine set resolution to needinfo

totaam commented 7 years ago

2017-10-01 11:01:09: antoine commented


Not heard back, closing.