LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 04-03-2011, 12:42 PM   #1
gnuweenie
Member
 
Registered: Oct 2010
Posts: 35

Rep: Reputation: Disabled
X11 is bandwidth *heavy*... takes over 3 min to launch firefox over a WAN


In trying to run graphical x11 applications on a distant remote host, I'm finding that the performance is unacceptable. As a test, I tried launching and quitting Firefox 3.0 over an ssh connection. It takes over 3 minutes just to launch. Here are the results:
Code:
    ssh -X  -c aes128-ctr   myhost time firefox => 3m30.359s
    ssh -X  -c blowfish-cbc myhost time firefox => 3m23.448s
    ssh -XC -c 3des    	    myhost time firefox => 3m33.569s
    ssh -XC -c 3des-cbc     myhost time firefox => 4m0.350s
    ssh -XC -c aes128-cbc   myhost time firefox => 3m26.528s
    ssh -XC -c aes128-ctr   myhost time firefox => 3m11.631s
    ssh -XC -c arcfour 	    myhost time firefox => 3m15.580s
    ssh -XC -c arcfour128   myhost time firefox => 3m30.218s
    ssh -XC -c blowfish-cbc myhost time firefox => 3m12.603s
    ssh -XC -c cast128-cbc  myhost time firefox => 3m44.806s
Using compression only makes a slight improvement. 3 minutes to launch a window is nowhere near acceptable. I also tried using rsh over an openvpn tunnel, where the cipher defaults to blowfish CBC, and comp-lzo is enabled. The result is worse than using ssh:
Code:
    rsh myhost time firefox => 3m42.009s
    rsh myhost time emacs   => 1m45.374s
The bandwidth and latency for this connection is quite acceptable when it comes to text. Using emacs in text mode works fine. X11 is lousy.

What's the solution? I suspect I need to find a lightweight alternative to X11. The end goal is actually to run firefox remotely - don't ask me why.
 
Old 04-03-2011, 01:09 PM   #2
bluebox
Member
 
Registered: Jun 2004
Posts: 71

Rep: Reputation: 9
Quote:
Originally Posted by gnuweenie View Post
The end goal is actually to run firefox remotely - don't ask me why.
Okay, I will not ask ;-)

But a different question ... are you aware that there are textmode-browsers available for linux? Could these be a sufficient replacement for your needs?

In case it is about displaying text and graphics, an encrypted port forwarding of port 80 could do the trick. Your remote host acts as "surfer", unveiling its IP address, but your local station is used to display the websites via local firefox. Your remote machine will act as "proxy", then.
 
Old 04-03-2011, 01:23 PM   #3
gnuweenie
Member
 
Registered: Oct 2010
Posts: 35

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bluebox View Post
But a different question ... are you aware that there are textmode-browsers available for linux?
I don't believe Selenium2 will drive any text browsers.

It's looking like FreeNX or x2go may be what I need. It seems these are lightweight X11 replacements.

Last edited by gnuweenie; 04-03-2011 at 01:34 PM.
 
Old 04-03-2011, 02:50 PM   #4
bluebox
Member
 
Registered: Jun 2004
Posts: 71

Rep: Reputation: 9
Just did a little test watching a video over XDMCP on a remote X server, on LAN!

It works, in realtime. X just drops frames, so video stutters.

So there is no reason why starting firefox should take 3 minutes. It should take seconds, just dropping frames.

I suppose, encrypting the whole X data stream is what gives you so bad results, not the performance of X.

AFAIK, whole video buffer frames are compressed, encrypted and sent over the network. So you'll need a good mixture of high compression, fast encryption and low resolution.

Yes, FreeNX may be worth a try. X11vnc comes to my mind, too.
 
Old 04-03-2011, 03:52 PM   #5
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
In trying to run graphical x11 applications on a distant remote host, I'm finding that the performance is unacceptable. As a test, I tried launching and quitting Firefox 3.0 over an ssh connection. It takes over 3 minutes just to launch.
Firefox over X on my 100BASE-T LAN is instant. There is nothing wrong with X.

You need to look at the performance of the remote server and your network connections. How are you getting an network/internet connection (DSL Broadband, Satellite, mobile phone, dial-up etc)?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] From 2 days ago, it takes 10 min.s to boot my HP dv9700 laptop. Prior two yr.s, 2 min PTrenholme Linux - Hardware 6 12-28-2010 11:40 AM
'compiz' is making applications very heavy and delaying their launch. deepumnit Linux - Software 2 03-25-2008 06:52 AM
Does anyone know why 'Audacious' takes forever to launch...? perry Slackware 4 01-11-2008 01:09 PM
Grub takes a LONG time to launch. FrankRizzo Linux - Software 9 01-25-2007 11:21 PM
KDE slow: takes 20 seconds to launch programs KWTm Linux - General 15 03-06-2005 12:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 01:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration