From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: frobware@yahoo.com (frobware inc) Newsgroups: gmane.emacs.help Subject: Re: remote X11/GNU emacs/ssh: Incredible slowness loading libs Date: 3 Oct 2002 11:30:58 -0700 Organization: http://groups.google.com/ Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1033704991 8386 127.0.0.1 (4 Oct 2002 04:16:31 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 4 Oct 2002 04:16:31 +0000 (UTC) Return-path: Original-Received: from mail-relay.eunet.no ([193.71.71.242]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17xJt8-0002B8-00 for ; Fri, 04 Oct 2002 06:16:30 +0200 Original-Received: from monty-python.gnu.org (monty-python.gnu.org [199.232.76.173]) by mail-relay.eunet.no (8.12.2/8.12.2/GN) with ESMTP id g944GsML083730 for ; Fri, 4 Oct 2002 06:16:54 +0200 (CEST) (envelope-from help-gnu-emacs-admin@gnu.org) Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17xJtV-0005Fb-00; Fri, 04 Oct 2002 00:16:53 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail Original-Newsgroups: comp.emacs,gnu.emacs.help Original-Lines: 59 Original-NNTP-Posting-Host: 192.55.52.1 Original-X-Trace: posting.google.com 1033669858 4922 127.0.0.1 (3 Oct 2002 18:30:58 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: 3 Oct 2002 18:30:58 GMT Original-Xref: shelby.stanford.edu comp.emacs:75037 gnu.emacs.help:105679 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:2201 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:2201 "David Abrahams" wrote in message news:... > "Krishnakumar B" wrote in message > news:dmlu1k8cwsc.fsf@charanga.cs.wustl.edu... > > On Sunday, 29 September 2002, "David Abrahams" wrote: > > > I've been doing some work on remote machines on the other U.S. coast > > > recently, and have noticed strange and horrible delays associated with > > > running GNU emacs in an X window. At first I thought the problem was the > > > speed of traffic associated with X11, but I don't think so any more. The > > > reason I say these delays are strange is that they seem to be worst when > > > emacs is loading libraries (especially during startup), or just when > it's > > > trying to respond to "C-x C-f" the first time. On some machines, it > takes > > > literally minutes to give me the "find file:" prompt. I don't see the > same > > > problems when running "emacs -nw" in an xterm (that just blasts along > like > > > crazy), so it can't be having trouble loading the libraries. I don't see > > > anything this bad when running Xemacs, so I doubt there's a real problem > > > with the X11 GUI stuff. Can't imagine what the problem is. Any ideas? > > > > Enable ssh compression. It helps a lot. > > Makes absolutely no perceivable difference. However, there is an enormous > amount of network traffic going by, as I can see by the flashing light on my > NIC. This happens any time a new emacs mode (library) loads on the remote > machine. What in the world could it be accessing on my local machine? All > that handshaking, just as emacs starts up?!? > > I heard some rumour that you can work around this with .Xauthority, but I'm > tired of diddling around with things I don't really understand, and I still > can't understand why there should be any difference between emacs -nw and > emacs when it comes to loading libraries. > > still-baffled-ly y'rs, > dave I happened to run into this thread in my quarterly scan of the group. I had/have the same problem. I dial into a work machine, and can run emacs (reasonably OK), displaying stuff on my laptop. However, at times I also need to ssh into another machine (over vpn, from my work machine), and this runs into all the problems that David describes. It takes CxCf about 1 minute to respond. Xemacs isn't so bad, and the xterm itself works just fine. So it is something to do with gnu emacs. I tried emacs verion 19/20/21, all exhibit the same problem. Since I couldn't figure out what was going on, and since I thought this was a problem unique to my environment (apparently not), I switched to `emacs -nw', which works just fine. I prefer to use gnu emacs over xemacs since I am used to the former. My best guess is that the authentication handshake between emacs, and ssh/remote-xserver is somehow causing incredible latencies. (I turned compression on, and that did not help either.) What blows my mind is that emacs should take so long to load lisp libraries when run over an ssh/vpn/remote-xserver connection.