GNU bug report logs - #8248
23.2; Emacs 23.2 very slow over ssh when vertical-scroll-bar is enabled

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: obh@HIDDEN; dated Mon, 14 Mar 2011 14:28:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 8248 <at> debbugs.gnu.org:


Received: (at 8248) by debbugs.gnu.org; 15 Mar 2011 01:40:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 14 21:40:28 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1PzJFM-0000Qb-1i
	for submit <at> debbugs.gnu.org; Mon, 14 Mar 2011 21:40:28 -0400
Received: from ironport2-out.teksavvy.com ([206.248.154.183]
	helo=ironport2-out.pppoe.ca)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <monnier@HIDDEN>) id 1PzJFI-0000QM-VJ
	for 8248 <at> debbugs.gnu.org; Mon, 14 Mar 2011 21:40:25 -0400
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AhcGANZffk1FxIRf/2dsb2JhbACZB40GeMJShWIElUw
X-IronPort-AV: E=Sophos;i="4.62,319,1297054800"; d="scan'208";a="96518723"
Received: from 69-196-132-95.dsl.teksavvy.com (HELO pastel.home)
	([69.196.132.95])
	by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA;
	14 Mar 2011 21:40:19 -0400
Received: by pastel.home (Postfix, from userid 20848)
	id 1676A58ED9; Mon, 14 Mar 2011 21:40:19 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: obh@HIDDEN
Subject: Re: bug#8248: 23.2;
	Emacs 23.2 very slow over ssh when vertical-scroll-bar is enabled
Message-ID: <jwv39mp6ub1.fsf-monnier+emacs@HIDDEN>
References: <v5k4g22jf7.fsf@HIDDEN>
Date: Mon, 14 Mar 2011 21:40:19 -0400
In-Reply-To: <v5k4g22jf7.fsf@HIDDEN> (obh@HIDDEN's message
	of "Mon, 14 Mar 2011 09:30:36 +0100")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -2.1 (--)
X-Debbugs-Envelope-To: 8248
Cc: 8248 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -2.1 (--)

> When vertical-scroll-bar is enabled on emacs 23.2 and used over ssh -X
> then switching buffers (^X ^B) takes several seconds. Likewise
> scrolling, changing windows etc. is very sluggish. I have a 12/5 Mbps
> cable line between work/home with usually 8-12ms ICMP rtt. Plenty of
> available bandwidth and CPU.

This will depend on the kind of vertical scollbars you're using.
The bug-data you sent indicates you're using a Gtk build, so it may also
depend on the theme you're using.

Do you see similar problems when running other Gtk applications over
this "ssh -X" tunnel?

> When googling 'emacs ssh latency' there seems to be more people
> having this problem and the prevalent advise was to use use server
> fonts and not client fonts. I tried to compile emacs with

I have no first hand knowledge of how server-side fonts compare to
client-side fonts, but according the some influential X11 hacker,
client-side fonts may actually be better because the bandwidth required
to send the chars's bitmaps is not significantly higher than the font
metrics that the client otherwise has to download from the server, but
sending the bitmaps can be streamed and is latency tolerant whereas
requesting the font metric tends to suffer from a lot of
round-tripping.


        Stefan




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#8248; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 14 Mar 2011 14:28:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 14 10:28:01 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Pz8kZ-000676-HO
	for submit <at> debbugs.gnu.org; Mon, 14 Mar 2011 10:28:00 -0400
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <obh@HIDDEN>) id 1Pz3B1-0001vF-H2
	for submit <at> debbugs.gnu.org; Mon, 14 Mar 2011 04:30:57 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <obh@HIDDEN>) id 1Pz3Av-0002cW-Lb
	for submit <at> debbugs.gnu.org; Mon, 14 Mar 2011 04:30:50 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00
	autolearn=unavailable version=3.3.1
Received: from lists.gnu.org ([199.232.76.165]:45421)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <obh@HIDDEN>) id 1Pz3Av-0002cQ-GS
	for submit <at> debbugs.gnu.org; Mon, 14 Mar 2011 04:30:49 -0400
Received: from [140.186.70.92] (port=59279 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1Pz3As-00011j-Ss
	for bug-gnu-emacs@HIDDEN; Mon, 14 Mar 2011 04:30:48 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <obh@HIDDEN>) id 1Pz3Ar-0002bo-3T
	for bug-gnu-emacs@HIDDEN; Mon, 14 Mar 2011 04:30:46 -0400
Received: from nsmail01.e.nsc.no ([148.123.0.197]:49737)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <obh@HIDDEN>) id 1Pz3Aq-0002bX-O0
	for bug-gnu-emacs@HIDDEN; Mon, 14 Mar 2011 04:30:45 -0400
Received: from asol1.nm1.telenor.net (asol1.nm1.telenor.net [10.122.94.133])
	by nsmail01.e.nsc.no (Postfix) with ESMTP id A591817966
	for <bug-gnu-emacs@HIDDEN>; Mon, 14 Mar 2011 09:30:41 +0100 (MET)
Received: by asol1.nm1.telenor.net (Postfix, from userid 174)
	id 82F3C1D8350; Mon, 14 Mar 2011 09:30:36 +0100 (CET)
From: obh@HIDDEN
To: bug-gnu-emacs@HIDDEN
Subject: 23.2;
	Emacs 23.2 very slow over ssh when vertical-scroll-bar is enabled
Date: Mon, 14 Mar 2011 09:30:36 +0100
Message-ID: <v5k4g22jf7.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 199.232.76.165
X-Spam-Score: -5.9 (-----)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Mon, 14 Mar 2011 10:27:57 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -5.9 (-----)


When vertical-scroll-bar is enabled on emacs 23.2 and used over ssh -X
then switching buffers (^X ^B) takes several seconds. Likewise
scrolling, changing windows etc. is very sluggish. I have a 12/5 Mbps
cable line between work/home with usually 8-12ms ICMP rtt. Plenty of
available bandwidth and CPU.

Emacs feels a lot mot snappy and is usable when starting 'emacs -xrm
'*verticalScrollBars: off'.

I found the following (old) bug report in emacs bug database that
probably describes this bug:

  http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6429

When googling 'emacs ssh latency' there seems to be more people
having this problem and the prevalent advise was to use use server
fonts and not client fonts. I tried to compile emacs with
'--without-xft' but with no visibly speedup.

  http://groups.google.com/group/gnu.emacs.help/browse_thread/thread/8bf4914f3a7ae7e5
  http://groups.google.com/group/gnu.emacs.help/browse_frm/thread/bd7e102326bec6b2/dd8706c921a0ef8c?tvc=1#dd8706c921a0ef8c


Kind regards,

Ole Bjorn Hessen


---




In GNU Emacs 23.2.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.10.4)
 of 2011-03-03 on asol1.nm1.telenor.net
Windowing system distributor `The X.Org Foundation', version 11.0.10707000
configured using `configure  '--prefix=/local/net/arch/linux_x86_64/encap/emacs-23.2''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: no_NO.UTF-8
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<down-mouse-1> <mouse-1> C-x C-b e C-x m q <tab> <M-backspace> 
C-x k <return> y e s <return> C-x C-g M-x r e c <backspace> 
p o <tab> r t <tab> <return>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Commands: d, s, x, u; f, o, 1, 2, m, v; ~, %; q to quit; ? for help.
Making completion list...

Load-path shadows:
/home/o/obh/emacs/cperl-mode hides /local/net/arch/linux_x86_64/encap/emacs-23.2/share/emacs/23.2/lisp/progmodes/cperl-mode

Features:
(shadow sort mail-extr emacsbug help-mode view message sendmail
regexp-opt ecomplete rfc822 mml easymenu mml-sec password-cache
mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047
rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc time-date
mm-util mail-prsvr gmm-utils wid-edit mailheader canlock sha1 hex-util
hashcash mail-utils warnings server compile comint ring tooltip
ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd font-setting
tool-bar dnd fontset image fringe lisp-mode register page menu-bar
rfn-eshadow timer select scroll-bar mldrag mouse jit-lock font-lock
syntax facemenu font-core frame cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button
minibuffer faces cus-face files text-properties overlay md5 base64
format env code-pages mule custom widget hashtable-print-readable
backquote make-network-process font-render-setting gtk x-toolkit x
multi-tty emacs)




Acknowledgement sent to obh@HIDDEN:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#8248; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.