From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: Why is Emacs so slow when used remotely? Date: Wed, 22 Sep 2010 08:12:51 +1000 Organization: Unlimited download news at news.astraweb.com Message-ID: <87ocbqsq3g.fsf@puma.rapttech.com.au> References: <76f5ba95-cc68-4326-a962-f515c0fb70cd@y31g2000vbt.googlegroups.com> <3ebca0e6-c698-44dd-a4fd-6166233f5eba@q26g2000vbn.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1291868525 7088 80.91.229.12 (9 Dec 2010 04:22:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 9 Dec 2010 04:22:05 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 09 05:22:00 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PQY11-0008Bb-2j for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 05:21:59 +0100 Original-Received: from localhost ([127.0.0.1]:41398 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQY10-00070y-2d for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 23:21:58 -0500 Original-Path: usenet.stanford.edu!news.glorb.com!news2.glorb.com!news.astraweb.com!border2.newsrouter.astraweb.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:cdOKssxdlstVZvq1ipS7WRq2FHA= Original-Lines: 64 Original-NNTP-Posting-Host: 6e12230f.news.astraweb.com Original-X-Trace: DXC=^8PcZ3n8a List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:76634 Archived-At: "Russ P." writes: > On Sep 20, 6:40 pm, des...@verizon.net wrote: >> "Russ P." writes: >> > As I explained a few days ago, I am trying to switch from XEmacs to >> > Emacs so I can use Ensime (an Emacs-based IDE for Scala). I finally >> > got my .emacs file debugged, but now I am finding that Emacs seems to >> > be very slow when used remotely. >> >> > When I work from home, I login from one Linux machine to another using >> > ssh -X over a high-speed Internet connection, using my home machine as >> > an X terminal for my work machine. I am using Emacs 23.2.1 on Red Hat. >> > I am finding that opening a file or switching buffers by middle- >> > clicking in dired or the buffer menu takes approximately 20-30 >> > seconds. With XEmacs it takes less than one second. I hope I am doing >> > something wrong that can be corrected, because I'll grow old sitting >> > around that long every time I open a file or switch buffers. Any >> > suggestions? Thanks. >> >> Did you file a bug report? > > No. I don't know if this behavior is a bug or just poor performance. > (Nor do I know, off hand, how to file a bug report.) > > This is disappointing. As far as I can tell, Emacs seems to be > essentially unusable for remote usage. I can't believe I am the only > one who has noticed this problem. Am I the only one who uses Emacs/ > XEmacs to work remotely over ssh -X? > A few things to try ... 1. turn off tooltip mode 2. Try running with -nw to turn off X and only have a terminal UI and see what the performance is like. this will let you know if the problem is basic emacs or the X protocol stuff 3. Have you considered running tramp rather than a remote emacs? I've not bothered with a remote emacs for a long time, preferring to run tramp (especially with tramps support for remote execution of commands etc). 4. Have you experimented with ssh compression? Sometimes you need to try various values to get the optimal setting for your connection. Most X protocol packets are quite small and too high a setting for compression can actaully slow things down. 5. When I did run remote X based emacs versions, I found using one of the X compression protocols gave a huge performance improvement. From memory, the one I used was something like xdcp (X differential compression protocol or something similar). I believe recent X.org versions come with support for such protocols. Maybe look at setting this up. HTH Tim -- tcross (at) rapttech dot com dot au