* [levoy@cs.stanford.edu: Poor performance over DSL link]
@ 2002-09-09 0:21 Richard Stallman
2002-09-09 10:04 ` Kim F. Storm
0 siblings, 1 reply; 18+ messages in thread
From: Richard Stallman @ 2002-09-09 0:21 UTC (permalink / raw)
Cc: emacs-devel
Could you please help him figure out what causes this traffic?
------- Start of forwarded message -------
Envelope-to: rms@gnu.org
Delivery-date: Sat, 07 Sep 2002 14:52:11 -0400
From: "Marc Levoy" <levoy@cs.stanford.edu>
To: bug-gnu-emacs@gnu.org
Subject: Poor performance over DSL link
Sender: bug-gnu-emacs-admin@gnu.org
Date: 7 Sep 2002 11:51:19 -0700
Dear Emacs maintainers,
I just upgraded from Emacs 20.7 to 21.2, and I am suddenly seeing high traffic
on my DSL link whenever the mouse is positioned over my Emacs window, even if
my hands are off the keyboard and mouse. Under 20.7, if I didn't touch the
keyboard or mouse, there was no network traffic. Emacs 21.2 seems sluggish
over a DSL link; could this be why?
More details:
I am running "GNU Emacs 21.2.1 (i386-redhat-linux-gnu, X toolkit, Xaw3d scroll
bars) of 2002-04-08 on porky.devel.redhat.com" on a Linux 7.3 system and
displaying through Exceed 7.0 to a Windows 2000 system. However, I see
the same problem displaying through VNC, so I suspect the problem arises
from within Emacs. (If I move the mouse off the Emacs window, the extra
traffic stops.)
I have tried turning off scroll bars and tooltips, but neither has any effect.
I have searched the Internet for similar reports, and I see various complaints
about the performance of various versions of Emacs over slow connections, but
nothing that seems relevant to fixing the problem.
Is there something else I can disable in order to stop this network traffic
and restore my editing performance?
- -Marc Levoy
Associate Professor
Computer Science Department
Stanford University
_______________________________________________
Bug-gnu-emacs mailing list
Bug-gnu-emacs@gnu.org
http://mail.gnu.org/mailman/listinfo/bug-gnu-emacs
------- End of forwarded message -------
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [levoy@cs.stanford.edu: Poor performance over DSL link]
2002-09-09 0:21 [levoy@cs.stanford.edu: Poor performance over DSL link] Richard Stallman
@ 2002-09-09 10:04 ` Kim F. Storm
2002-09-09 9:12 ` Marc Levoy
2002-09-09 23:33 ` Richard Stallman
0 siblings, 2 replies; 18+ messages in thread
From: Kim F. Storm @ 2002-09-09 10:04 UTC (permalink / raw)
Cc: gerd, emacs-devel
From PROBLEMS:
* Improving performance with slow X connections
If you don't need X Input Methods (XIM) for entering text in some
language you use, you can improve performance on WAN links by
configuring Emacs with option `--without-xim'. Configuring Emacs
without XIM does not affect the use of Emacs' own input methods, which
are part of the Leim package.
If the connection is very slow, you might also want to consider
switching off scroll bars, menu bar, and tool bar.
Richard Stallman <rms@gnu.org> writes:
> Could you please help him figure out what causes this traffic?
>
> From: "Marc Levoy" <levoy@cs.stanford.edu>
> Subject: Poor performance over DSL link
> To: bug-gnu-emacs@gnu.org
> Date: 7 Sep 2002 11:51:19 -0700
>
> Dear Emacs maintainers,
>
> I just upgraded from Emacs 20.7 to 21.2, and I am suddenly seeing high traffic
> on my DSL link whenever the mouse is positioned over my Emacs window, even if
> my hands are off the keyboard and mouse. Under 20.7, if I didn't touch the
> keyboard or mouse, there was no network traffic. Emacs 21.2 seems sluggish
> over a DSL link; could this be why?
>
> More details:
>
> I am running "GNU Emacs 21.2.1 (i386-redhat-linux-gnu, X toolkit, Xaw3d scroll
> bars) of 2002-04-08 on porky.devel.redhat.com" on a Linux 7.3 system and
> displaying through Exceed 7.0 to a Windows 2000 system. However, I see
> the same problem displaying through VNC, so I suspect the problem arises
> from within Emacs. (If I move the mouse off the Emacs window, the extra
> traffic stops.)
>
> I have tried turning off scroll bars and tooltips, but neither has any effect.
> I have searched the Internet for similar reports, and I see various complaints
> about the performance of various versions of Emacs over slow connections, but
> nothing that seems relevant to fixing the problem.
>
> Is there something else I can disable in order to stop this network traffic
> and restore my editing performance?
>
> - -Marc Levoy
> Associate Professor
> Computer Science Department
> Stanford University
>
>
> _______________________________________________
> Bug-gnu-emacs mailing list
> Bug-gnu-emacs@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-gnu-emacs
> ----------
>
>
>
> _______________________________________________
> Emacs-devel mailing list
> Emacs-devel@gnu.org
> http://mail.gnu.org/mailman/listinfo/emacs-devel
>
>
--
Kim F. Storm <storm@cua.dk> http://www.cua.dk
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [levoy@cs.stanford.edu: Poor performance over DSL link]
2002-09-09 10:04 ` Kim F. Storm
@ 2002-09-09 9:12 ` Marc Levoy
2002-09-09 10:34 ` Kim F. Storm
2002-09-09 23:33 ` Richard Stallman
2002-09-09 23:33 ` Richard Stallman
1 sibling, 2 replies; 18+ messages in thread
From: Marc Levoy @ 2002-09-09 9:12 UTC (permalink / raw)
Cc: gerd, emacs-devel, rms
Kim (and Richard),
Thanks for the quick response. I had already seen those suggestions (turning
off XIM, and disabling scroll bars, the menu bar, and the tool bar) on a web
page. I tried all except turning off XIM, and it didn't help.
As it happens, I finally realized (by watching the rhythm of the traffic)
that Emacs 21's software blinking cursor was causing the traffic. I disabled
it using:
(if (fboundp 'blink-cursor-mode)
(blink-cursor-mode -1))
and the extra traffic disappeared. You might suggest this tweak to people
with DSL (or slower) links.
-Marc
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [levoy@cs.stanford.edu: Poor performance over DSL link]
2002-09-09 9:12 ` Marc Levoy
@ 2002-09-09 10:34 ` Kim F. Storm
2002-09-09 23:33 ` Richard Stallman
1 sibling, 0 replies; 18+ messages in thread
From: Kim F. Storm @ 2002-09-09 10:34 UTC (permalink / raw)
Cc: gerd, emacs-devel, rms
"Marc Levoy" <levoy@cs.stanford.edu> writes:
> Kim (and Richard),
>
> Thanks for the quick response. I had already seen those suggestions (turning
> off XIM, and disabling scroll bars, the menu bar, and the tool bar) on a web
> page. I tried all except turning off XIM, and it didn't help.
>
> As it happens, I finally realized (by watching the rhythm of the traffic)
> that Emacs 21's software blinking cursor was causing the traffic. I disabled
> it using:
>
> (if (fboundp 'blink-cursor-mode)
> (blink-cursor-mode -1))
>
> and the extra traffic disappeared. You might suggest this tweak to people
> with DSL (or slower) links.
We should add this to PROBLEMS.
Since the other suggestions mentioned there to improve performance can
be controlled via the Options->Show/Hide menu [PROBLEMS could mention
that], we might consider to add a menu item for controlling the
blinking cursor as well, e.g Option->Show/Hide->Blinking Cursor
--
Kim F. Storm <storm@cua.dk> http://www.cua.dk
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [levoy@cs.stanford.edu: Poor performance over DSL link]
2002-09-09 9:12 ` Marc Levoy
2002-09-09 10:34 ` Kim F. Storm
@ 2002-09-09 23:33 ` Richard Stallman
2002-09-10 23:56 ` Kim F. Storm
[not found] ` <15741.13832.457353.277778@dda.Stanford.EDU>
1 sibling, 2 replies; 18+ messages in thread
From: Richard Stallman @ 2002-09-09 23:33 UTC (permalink / raw)
Cc: storm, gerd, emacs-devel
As it happens, I finally realized (by watching the rhythm of the traffic)
that Emacs 21's software blinking cursor was causing the traffic.
I am surprised that blinking every .5 second causes so much traffic.
Does this cure the sluggishness too?
We should add this to PROBLEMS.
Yes, once we are finished understanding the situation.
Since the other suggestions mentioned there to improve performance can
be controlled via the Options->Show/Hide menu [PROBLEMS could mention
that], we might consider to add a menu item for controlling the
blinking cursor as well, e.g Option->Show/Hide->Blinking Cursor
Ok.
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [levoy@cs.stanford.edu: Poor performance over DSL link]
2002-09-09 23:33 ` Richard Stallman
@ 2002-09-10 23:56 ` Kim F. Storm
2002-09-11 20:03 ` Richard Stallman
[not found] ` <15741.13832.457353.277778@dda.Stanford.EDU>
1 sibling, 1 reply; 18+ messages in thread
From: Kim F. Storm @ 2002-09-10 23:56 UTC (permalink / raw)
Cc: levoy, gerd, emacs-devel
Richard Stallman <rms@gnu.org> writes:
> As it happens, I finally realized (by watching the rhythm of the traffic)
> that Emacs 21's software blinking cursor was causing the traffic.
>
> I am surprised that blinking every .5 second causes so much traffic.
>
> Does this cure the sluggishness too?
>
> We should add this to PROBLEMS.
>
> Yes, once we are finished understanding the situation.
There were other X-related problems on slow WAN links.
AFAIR the problem was related to emacs constantly allocating and
releasing colors on the X-server, and requesting the list of fonts
from the X-server.
I made some changes for 21.1 (which Gerd used) to improve this by
caching some of the information, and it did make a fairly significant
difference.
But there were still several areas which could be improved - but it
would be non-trivial to do so, either because X-servers have different
capabilities, or because the "excessive" traffic was partially caused
by some of the X-library functions.
So it was put on hold until after 21.1. (Un)fortunately, in the
meantime I've got a much faster WAN link (1024/256 ADSL), so I no
longer experience the problems I had with the 64k ISDN link, and thus
I don't have a personal interest in improving this anymore.
I'm afraid I no longer have the correspondance with Gerd and Richard
on this issue; any chance that either of you still have a copy [I think
my email address at the time was stormware@get2net.dk] ?
>
> Since the other suggestions mentioned there to improve performance can
> be controlled via the Options->Show/Hide menu [PROBLEMS could mention
> that], we might consider to add a menu item for controlling the
> blinking cursor as well, e.g Option->Show/Hide->Blinking Cursor
>
> Ok.
Would the maintainer of the "show/hide" menu please do this?
--
Kim F. Storm <storm@cua.dk> http://www.cua.dk
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [levoy@cs.stanford.edu: Poor performance over DSL link]
2002-09-10 23:56 ` Kim F. Storm
@ 2002-09-11 20:03 ` Richard Stallman
2002-09-11 22:38 ` Kim F. Storm
0 siblings, 1 reply; 18+ messages in thread
From: Richard Stallman @ 2002-09-11 20:03 UTC (permalink / raw)
Cc: levoy, gerd, emacs-devel
But there were still several areas which could be improved - but it
would be non-trivial to do so, either because X-servers have different
capabilities, or because the "excessive" traffic was partially caused
by some of the X-library functions.
What areas are they? Maybe someone else would like to work on it.
At very least we can put them in etc/TODO.
I'm afraid I no longer have the correspondance with Gerd and Richard
on this issue; any chance that either of you still have a copy [I think
my email address at the time was stormware@get2net.dk] ?
If I received the messages, I still have them. What time period should
I search?
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [levoy@cs.stanford.edu: Poor performance over DSL link]
2002-09-11 20:03 ` Richard Stallman
@ 2002-09-11 22:38 ` Kim F. Storm
2002-09-12 16:41 ` Richard Stallman
2002-09-12 16:41 ` Richard Stallman
0 siblings, 2 replies; 18+ messages in thread
From: Kim F. Storm @ 2002-09-11 22:38 UTC (permalink / raw)
Cc: levoy, gerd, emacs-devel
Richard Stallman <rms@gnu.org> writes:
> But there were still several areas which could be improved - but it
> would be non-trivial to do so, either because X-servers have different
> capabilities, or because the "excessive" traffic was partially caused
> by some of the X-library functions.
>
> What areas are they? Maybe someone else would like to work on it.
> At very least we can put them in etc/TODO.
It's been a long time, but I used Ethereal to trace the X traffic, and it
was quite obvious that the same sequences of events were repeated over
and over again...
IIRC, it had to do with allocating colors (or pixels?) in the X
server, updating [tiny parts of the display], and then deallocating
the colors - and doing that over and over for every tiny update.
I discussed ways to cache this information with Gerd, but it was
non-trivial because different X-servers had different number of
available colors/pixels, so it seemed to be difficult to do in a
general way.
>
> I'm afraid I no longer have the correspondance with Gerd and Richard
> on this issue; any chance that either of you still have a copy [I think
> my email address at the time was stormware@get2net.dk] ?
>
> If I received the messages, I still have them. What time period should
> I search?
Try January/February 2001
--
Kim F. Storm <storm@cua.dk> http://www.cua.dk
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [levoy@cs.stanford.edu: Poor performance over DSL link]
2002-09-11 22:38 ` Kim F. Storm
@ 2002-09-12 16:41 ` Richard Stallman
2002-09-12 16:41 ` Richard Stallman
1 sibling, 0 replies; 18+ messages in thread
From: Richard Stallman @ 2002-09-12 16:41 UTC (permalink / raw)
Cc: levoy, gerd, emacs-devel
IIRC, it had to do with allocating colors (or pixels?) in the X
server, updating [tiny parts of the display], and then deallocating
the colors - and doing that over and over for every tiny update.
Can anyone identify which parts of the code in Emacs do this?
I discussed ways to cache this information with Gerd, but it was
non-trivial because different X-servers had different number of
available colors/pixels, so it seemed to be difficult to do in a
general way.
I am sure it must be possible. Since this seems to be causing a
significant annoyance for users, I think we should talk about it here.
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [levoy@cs.stanford.edu: Poor performance over DSL link]
2002-09-11 22:38 ` Kim F. Storm
2002-09-12 16:41 ` Richard Stallman
@ 2002-09-12 16:41 ` Richard Stallman
[not found] ` <5xhegunctj.fsf@kfs2.cua.dk>
1 sibling, 1 reply; 18+ messages in thread
From: Richard Stallman @ 2002-09-12 16:41 UTC (permalink / raw)
Cc: levoy, gerd, emacs-devel
I searched my mail in Jan/Feb 2001 for stormware@get2net.dk
and did not find it.
^ permalink raw reply [flat|nested] 18+ messages in thread
[parent not found: <15741.13832.457353.277778@dda.Stanford.EDU>]
* Re: [levoy@cs.stanford.edu: Poor performance over DSL link]
2002-09-09 10:04 ` Kim F. Storm
2002-09-09 9:12 ` Marc Levoy
@ 2002-09-09 23:33 ` Richard Stallman
2002-09-10 23:34 ` Kim F. Storm
1 sibling, 1 reply; 18+ messages in thread
From: Richard Stallman @ 2002-09-09 23:33 UTC (permalink / raw)
Cc: levoy, gerd, emacs-devel
If you don't need X Input Methods (XIM) for entering text in some
language you use, you can improve performance on WAN links by
configuring Emacs with option `--without-xim'. Configuring Emacs
without XIM does not affect the use of Emacs' own input methods, which
are part of the Leim package.
Can we add a run-time feature to Emacs to disable the use of them?
Would that get the same speedup?
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [levoy@cs.stanford.edu: Poor performance over DSL link]
2002-09-09 23:33 ` Richard Stallman
@ 2002-09-10 23:34 ` Kim F. Storm
2002-09-11 1:15 ` Miles Bader
2002-09-11 20:03 ` Richard Stallman
0 siblings, 2 replies; 18+ messages in thread
From: Kim F. Storm @ 2002-09-10 23:34 UTC (permalink / raw)
Cc: levoy, gerd, emacs-devel
Richard Stallman <rms@gnu.org> writes:
> If you don't need X Input Methods (XIM) for entering text in some
> language you use, you can improve performance on WAN links by
> configuring Emacs with option `--without-xim'. Configuring Emacs
> without XIM does not affect the use of Emacs' own input methods, which
> are part of the Leim package.
>
> Can we add a run-time feature to Emacs to disable the use of them?
> Would that get the same speedup?
It seems like a fairly trivial change.
However, it is not adequate to simply make a variable to control this,
as the decision whether to actually use XIM would then have to be made
before creating the first frame, so setting that variable to "don't
use XIM" too late will not have any effect.
The proper solution is probably to make a function to enable/disable XIM on
an X display; as I see it, the use of XIM is actually per-display, so this
would be more flexible than the current compile-time constant.
--
Kim F. Storm <storm@cua.dk> http://www.cua.dk
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [levoy@cs.stanford.edu: Poor performance over DSL link]
2002-09-10 23:34 ` Kim F. Storm
@ 2002-09-11 1:15 ` Miles Bader
[not found] ` <5xr8g0pcpv.fsf@kfs2.cua.dk>
2002-09-11 20:03 ` Richard Stallman
1 sibling, 1 reply; 18+ messages in thread
From: Miles Bader @ 2002-09-11 1:15 UTC (permalink / raw)
Cc: rms, levoy, gerd, emacs-devel
storm@cua.dk (Kim F. Storm) writes:
> However, it is not adequate to simply make a variable to control this,
> as the decision whether to actually use XIM would then have to be made
> before creating the first frame, so setting that variable to "don't
> use XIM" too late will not have any effect.
Is it really impossible to turn off XIM in an existing window?
That seems like a bug in X...
-Miles
--
Ich bin ein Virus. Mach' mit und kopiere mich in Deine .signature.
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [levoy@cs.stanford.edu: Poor performance over DSL link]
2002-09-10 23:34 ` Kim F. Storm
2002-09-11 1:15 ` Miles Bader
@ 2002-09-11 20:03 ` Richard Stallman
1 sibling, 0 replies; 18+ messages in thread
From: Richard Stallman @ 2002-09-11 20:03 UTC (permalink / raw)
Cc: levoy, gerd, emacs-devel
The proper solution is probably to make a function to enable/disable XIM on
an X display; as I see it, the use of XIM is actually per-display, so this
would be more flexible than the current compile-time constant.
That would be a good approach. Would you like to do it?
^ permalink raw reply [flat|nested] 18+ messages in thread
end of thread, other threads:[~2002-09-14 17:35 UTC | newest]
Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-09 0:21 [levoy@cs.stanford.edu: Poor performance over DSL link] Richard Stallman
2002-09-09 10:04 ` Kim F. Storm
2002-09-09 9:12 ` Marc Levoy
2002-09-09 10:34 ` Kim F. Storm
2002-09-09 23:33 ` Richard Stallman
2002-09-10 23:56 ` Kim F. Storm
2002-09-11 20:03 ` Richard Stallman
2002-09-11 22:38 ` Kim F. Storm
2002-09-12 16:41 ` Richard Stallman
2002-09-12 16:41 ` Richard Stallman
[not found] ` <5xhegunctj.fsf@kfs2.cua.dk>
2002-09-14 17:35 ` Richard Stallman
[not found] ` <15741.13832.457353.277778@dda.Stanford.EDU>
2002-09-11 1:40 ` Richard Stallman
2002-09-11 9:04 ` Gerd Moellmann
2002-09-09 23:33 ` Richard Stallman
2002-09-10 23:34 ` Kim F. Storm
2002-09-11 1:15 ` Miles Bader
[not found] ` <5xr8g0pcpv.fsf@kfs2.cua.dk>
2002-09-12 1:20 ` Miles Bader
2002-09-11 20:03 ` Richard Stallman
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.