Gentoo Archives: gentoo-user

From: Laurence Perkins <lperkins@×××××××.net>
To: "gentoo-user@l.g.o" <gentoo-user@l.g.o>
Subject: RE: [gentoo-user] How to run X11 apps remotely?
Date: Tue, 22 Mar 2022 17:42:11
Message-Id: DM5PR07MB4055C6FAB20D6A184931813ED2179@DM5PR07MB4055.namprd07.prod.outlook.com
In Reply to: [gentoo-user] How to run X11 apps remotely? by Grant Edwards
1 >-----Original Message-----
2 >From: Grant Edwards <grant.b.edwards@×××××.com>
3 >Sent: Tuesday, March 22, 2022 9:42 AM
4 >To: gentoo-user@l.g.o
5 >Subject: [gentoo-user] How to run X11 apps remotely?
6 >
7 >CAUTION: This is an EXTERNAL email. Do not click links or open attachments unless you recognize the sender and know the content is safe.
8 >
9 >How does one run "modern" X11 apps remotely?
10 >
11 >Using ssh -X or ssh -Y works fine for older applications, but not for things that use "modern" toolkits. Modern tookit designers appear to have adopted a life mission to maximize the number of client-server round-trips required for even a trivial event like a keystroke in a text box.
12 >
13 >As a result, even with a 5-10Mbps remote connection, it takes several minutes to enter a string of even a few characters. A mouseclick on a button can take a minute or two to get processed. Resizing a window pretty much means it's time for a cuppa.
14 >
15 >Opening chrome and loading a web page can take 10-15 minutes. No activity at all on the screen, but the network connection to the remote machine is saturated at 5Mbps for minutes at a time. WTF?
16 >
17 >Something like LibreOffice is completely unusable.
18 >
19 >Even something "lightweight" like atril is so slow it's barely usable.
20 >
21 >I do not want a "remote desktop". I just want to run a single application on a remote machine and have its window show up locally.
22 >
23 >Back in the day, I used to run X11 apps remotely through dial-up connections, and most of them were a little sluggish but still actually usable...
24 >
25 >X11 transparent network support was its killer feature, but for all practical purpopses, that feature seems to have been killed.
26 >
27 >--
28 >Grant
29 >
30
31 As you mentioned, it's a lot of extra round-trips. Which means that it's not primarily your bandwidth that's the limiting factor, it's the latency.
32
33 Unfortunately, the speed of light being what it is, there are practical limits to what you can do about latency depending on how far apart the systems in question are.
34
35 But, check for and mitigate any bufferbloat issues you may have, that will spike your latency quite a bit.
36
37 The key back in the day was that people used X11 primitives directly. But the X11 primitives are ugly, and there weren't any tools for making them pretty. So rather than add those mechanisms all the toolkit authors just did their own thing and now everything is just bitmaps and practically no processing can be done locally.
38
39 Some programs like gVim will detect that they're running over SSH and fall back to basic X11 for the speed factor. Not sure what browsers might do that.
40
41 LMP

Replies

Subject Author
[gentoo-user] Re: How to run X11 apps remotely? Grant Edwards <grant.b.edwards@×××××.com>