From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Krishnakumar B Newsgroups: gmane.emacs.help Subject: Re: remote X11/GNU emacs/ssh: Incredible slowness loading libs Date: 30 Sep 2002 21:28:54 -0500 Organization: Washington University in St. Louis Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1033439752 8044 127.0.0.1 (1 Oct 2002 02:35:52 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 1 Oct 2002 02:35:52 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17wCt2-00024p-00 for ; Tue, 01 Oct 2002 04:35:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17wCtH-0001EM-00; Mon, 30 Sep 2002 22:36:03 -0400 Original-Path: shelby.stanford.edu!nntp.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!unlnews.unl.edu!newsreader.wustl.edu!not-for-mail Original-Newsgroups: comp.emacs,gnu.emacs.help Original-Lines: 93 Original-NNTP-Posting-Host: samba.doc.wustl.edu Original-X-Trace: newsreader.wustl.edu 1033439312 4159 128.252.160.42 (1 Oct 2002 02:28:32 GMT) Original-X-Complaints-To: usenet@newsreader.wustl.edu Original-NNTP-Posting-Date: Tue, 1 Oct 2002 02:28:32 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-Xref: nntp.stanford.edu comp.emacs:74953 gnu.emacs.help:105574 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:2118 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:2118 On Monday, 30 September 2002, "David Abrahams" wrote: > > What does "non-native" mean in this context? It certainly is native x86 code > running on an x86 machine. I meant the X-server implementation which is the case with any Windows box. > > like Exceed always has problems related to fonts. > > It's not Exceed, FWIW; it's Cygwin XFree86: http://cygwin.com/xfree/ OK. > > What terminal are you using ? > > I'm using xterm to launch emacs, but I'm confused by your question because I > can't see how it's relevant. The slowdowns only occur when emacs isn't > running in a terminal window. I will tell you how it hit me. When I run rxvt (comes with Cygwin) and do this: local> plink -ssh remote remote> emacs I get the same exact slowdowns which you report. But when I open the terminal application that comes with Putty, and do the same thing, emacs comes up normally (i.e snappily as if it were running on a local machine). I don't mess with DISPLAY cruft (anymore) as SSH takes care of doing the forwarding and setting the DISPLAY correctly. > Okay. I'm not sure what it means to "switch the SSH client". I have two ways > of starting ssh: > > 1. From within a dos box running cygwin. It doesn't know about my DISPLAY > and thus I don't bother with -X I assume "-X" means ssh -X which requests forwarding of X display ? You don't need to mess with DISPLAY if your SSH is setup correctly. > 2. From within an xterm window I launch on my local machine from within TWM > under cygwin/XFree86 I have never tried that. I would probably be happy with a rootless X server on Windows as I have no intention of running TWM or such under Windows. Does rootless X work under Cygwin XFree86 ? > > What does "outside" mean ? > > Outside means I pick the "Cygwin Bash Shell" from my start menu and get a > "dos box" running bash, with no X server running. When I launch emacs it's > running in a character-based mode. OK. > > It's the command-line utility that ships with Putty. > > If you have slowdowns with plink, why do you think I'll see an improvement > by switching to its terminal window? I have no idea. But it works for me. I haven't spent time on figuring out why. My guess was that with the terminal window I have specified a lot more setting related to the terminal type and compression, SSH algorithm etc, remote forwarding etc which might make a difference in the speed. And none of which I could specify using just plink. > Uhhhm. Coming up with the correct DISPLAY variable setting for the remote > machine is difficult, isn't it? Nope, it is not difficult. See above. Frankly I just don't bother with DISPLAY anymore. You just need a X server running on your windows box either Cygwin or Exceed. If you run Cygwin, I think starting an Emacs from a dos terminal with X forwarding set up should open up the Emacs window in your XFree86 window. > Well, OK, I tried it. And it made... no perceivable difference :( > > > Again it's up to you. If you have the time, I am sure that the GNU Emacs > > developers will appreciate the extra information. > > Do you know where I can find a Cygwin version of this tool (or the > equivalent)? Try getting the source and compiling it under Cygwin. I think there is a version that comes with Windows too. Try this link: http://windump.polito.it/ I haven't tried it. But unless you are a X guru (I am not), I don't think the output will make much sense except maybe give you a cue the ports attracting traffic which in the case is obvious. -kitty.