Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
X11 Forwarding ssh very slow
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
aleskandro
n00b
n00b


Joined: 05 Sep 2012
Posts: 13

PostPosted: Mon Oct 06, 2014 9:15 pm    Post subject: X11 Forwarding ssh very slow Reply with quote

Hi I've a vps server with ssh configured to forward X11.
When I ssh -X (or -Y) to it from my computer and try to start, for example, xterm, it is very slow to show window... After it shows xterm it is enough fast.
I monitored network traffic via nethogs and found that in the starting time there is much traffic at maximum client speed (30 kb/s): after start the application and traffic is much less.
How many things X server sends to vps to starting apps? Is there any way to speed up this start delay?
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 2152
Location: Berlin, Germany

PostPosted: Tue Oct 07, 2014 1:25 am    Post subject: Reply with quote

X11 forwarding is not very bandwidth efficient.
You can try enabling compression with ssh -C which can help, but which also introduces a bit of latency.

Other than that, switch to a different protocol like vnc or nx.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13509

PostPosted: Tue Oct 07, 2014 1:44 am    Post subject: Reply with quote

As I understand it, the problem has less to do with bandwidth efficiency than to do with latency efficiency. Although X11 programming resources emphasize that clients must minimize the number of round trips, many modern X11 clients assume that round trips are nearly free. When the X server is hundreds of milliseconds away, each round trip is expensive.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum