I don't know much about X-Windows. Sometimes I run a remote X-windows session to an HP DL380 host from my MacBook Pro on the same LAN. I'm using X11 forwarding with the ssh -X
option. The X-Windows performance is kind of slow. How can I speed this up? Can I install a video card in the HP DL380 to speed up performance? Is there another way?
4 Answers
X should be fast enough on a LAN so your problem may be elsewhere. However, you could try to X acceleration software such as NX or VNC.
-
1VNC is not an X11 accelerator. It's a completely different protocol which basically amounts to a continuously-updated screenshot.– WyzardJan 25, 2012 at 6:01
-
Here as a presentation comparing X, VNC, and NX. The performance of VNC and NX is about the same. X "should" perform very well over a LAN too based on these reported RTT measurements. But you are right, the best way to speed up X is to use NX or VNC. Thanks! Jan 25, 2012 at 8:21
Short answer, No, X is a brain dead protocol. Why X isn't dead by now is astonishing. (I had high hopes for display postscript but that went nowhere...). In X-windows the "Server" is your Mac. The client is the application you are running. X tells your Mac what to render and the Mac does all the work on drawing the screen. At best it's possible that should it be possible to get a better card for your Mac, you might increase performance- but not by much. X "accelerators" like NX work by compressing and caching X calls (essentially replacing X with a better protocol)
See http://www.miscdebris.net/blog/2007/06/01/speed-up-ssh-x11-forwarding/ and copied below for a really useful tip on how to speed up X11 forwarding. It made a huge difference for me, even over our 100-Mbit LAN.
Speed up SSH X11 forwarding Posted June 1st @ 9:50 by Werner
I use an Ubuntu server as a work-horse for my calculations and connect from my desktop-pc with ssh to the server. For some applications (gnuplot =) this is really slow altough it’s over LAN. I found on the internet some instructions to improve this situation: instead of the AES cipher the arcfour and blowfish ciphers perform much better and switching on compression also doesn’t hurt. Therefore one should use
ssh -c arcfour,blowfish-cbc -XC host.com
to connect to with ssh. And guess what? This really improves the situation, especially for gnuplot. Thanks Samat!
-
1This made my remote X app go from sludge to thin mud thanks! Makes it bearable. Jun 17, 2015 at 14:07
-
+1, thanks! I found that
arcfour
andblowfish-cbc
aren't supported by my client and server 8 years later, but-C
alone is a big win. (I tried a few currently supported ciphers (from the output ofssh -Q cipher
, filtered to what the server supports), but I didn't notice any performance differences.) Jun 17, 2020 at 14:25
ssh -CX
. The -C helps a lot.