GNU bug report logs -
#18713
Very slow startups with TERM=xterm
Previous Next
Reported by: Roy Smith <roy <at> panix.com>
Date: Mon, 13 Oct 2014 23:15:03 UTC
Severity: normal
Tags: moreinfo
Done: Noam Postavsky <npostavs <at> gmail.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 18713 in the body.
You can then email your comments to 18713 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#18713
; Package
emacs
.
(Mon, 13 Oct 2014 23:15:03 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Roy Smith <roy <at> panix.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Mon, 13 Oct 2014 23:15:03 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
I'm running GNU Emacs 24.3.1, with the -nw flag. If have TERM=xterm or TERM=xterm-256color, it takes 2 or 3 seconds to start up. Setting TERM=ansi (or vt100, or vt102), I get instant startups. I'm running on goobuntu (Google's own flavor of ubuntu linux)
Tracing the emacs process as it starts up, I see that all the time is spent in a set of select() calls (fd 3 is "/dev/tty" at this point):
15215 pselect6(4, [3], [], NULL, {1, 996360390}, {NULL, 8}) = 1 (in [3], left {1, 980201052}) <0.016169>
15215 pselect6(4, [3], [], NULL, {1, 999612379}, {NULL, 8}) = 0 (Timeout) <2.001673>
15215 pselect6(4, [3], [], NULL, {0, 499948991}, {NULL, 8}) = 0 (Timeout) <0.500516>
15215 pselect6(4, [3], [], NULL, {27, 497597665}, {NULL, 8}) = 1 (in [3], left {27, 83731691}) <0.413916>
15215 pselect6(4, [3], [], NULL, {0, 499864020}, {NULL, 8}) = 1 (in [3], left {0, 287729575}) <0.212174>
Based on the write() calls I see to fd 3 immediately before this, it looks like it's in the process of initializing the screen. Does this sound like I'm running into http://lists.gnu.org/archive/html/bug-gnu-emacs/2013-06/msg00362.html?
--
Roy Smith
roy <at> panix.com
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#18713
; Package
emacs
.
(Tue, 14 Oct 2014 06:22:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 18713 <at> debbugs.gnu.org (full text, mbox):
> From: Roy Smith <roy <at> panix.com>
> Date: Mon, 13 Oct 2014 19:00:45 -0400
>
> I'm running GNU Emacs 24.3.1, with the -nw flag. If have TERM=xterm or
> TERM=xterm-256color, it takes 2 or 3 seconds to start up. Setting TERM=ansi (or
> vt100, or vt102), I get instant startups. I'm running on goobuntu (Google's own
> flavor of ubuntu linux)
Please try a recent pretest of Emacs 24.4 (available from
alpha.gnu.org and probably also from goobuntu), I believe this was
already solved there.
See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=17648.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#18713
; Package
emacs
.
(Tue, 14 Oct 2014 14:34:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 18713 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
I downloaded emacs-24.3.94 (I assume that’s what you intended?) and built it with:
./configure --prefix=`/bin/pwd` --with-x-toolkit=no --with-xpm=no --with-jpeg=no --with-png=no --with-gif=n
o --with-tiff=no
./configure --prefix=`/bin/pwd` --with-x-toolkit=no --with-xpm=no --with-jpeg=no --with-png=no --with-gif=n
o --with-tiff=no
It has exactly the same behavior. Starting it with TERM=xterm-256color, it takes a couple of seconds to get to the welcome screen. Same pselect6() calls in the trace output:
pselect6(4, [3], [], NULL, {1, 995148137}, {NULL, 8}) = 1 (in [3], left {1, 952766953}) <0.042444>
pselect6(4, [3], [], NULL, {1, 999909468}, {NULL, 8}) = 0 (Timeout) <2.000402>
pselect6(4, [3], [], NULL, {0, 499943592}, {NULL, 8}) = 0 (Timeout) <0.500541>
pselect6(4, [3], [], NULL, {29, 498901886}, {NULL, 8}) = 1 (in [3], left {29, 361558588}) <0.137381>
pselect6(4, [3], [], NULL, {0, 499841425}, {NULL, 8}) = 1 (in [3], left {0, 308628336}) <0.191243>
TERM=ansi starts instantly.
On Oct 14, 2014, at 2:21 AM, Eli Zaretskii <eliz <at> gnu.org> wrote:
>> From: Roy Smith <roy <at> panix.com>
>> Date: Mon, 13 Oct 2014 19:00:45 -0400
>>
>> I'm running GNU Emacs 24.3.1, with the -nw flag. If have TERM=xterm or
>> TERM=xterm-256color, it takes 2 or 3 seconds to start up. Setting TERM=ansi (or
>> vt100, or vt102), I get instant startups. I'm running on goobuntu (Google's own
>> flavor of ubuntu linux)
>
> Please try a recent pretest of Emacs 24.4 (available from
> alpha.gnu.org and probably also from goobuntu), I believe this was
> already solved there.
>
> See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=17648.
>
>
>
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#18713
; Package
emacs
.
(Tue, 14 Oct 2014 23:45:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 18713 <at> debbugs.gnu.org (full text, mbox):
> I downloaded emacs-24.3.94 (I assume that’s what you intended?) and built it with:
> ./configure --prefix=`/bin/pwd` --with-x-toolkit=no --with-xpm=no --with-jpeg=no --with-png=no --with-gif=n
> o --with-tiff=no
> ./configure --prefix=`/bin/pwd` --with-x-toolkit=no --with-xpm=no --with-jpeg=no --with-png=no --with-gif=n
> o --with-tiff=no
> It has exactly the same behavior. Starting it with TERM=xterm-256color, it
> takes a couple of seconds to get to the welcome screen. Same pselect6()
> calls in the trace output:
Could you show the result of typing `C-h l' right after this slow startup?
Stefan
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#18713
; Package
emacs
.
(Tue, 14 Oct 2014 23:46:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 18713 <at> debbugs.gnu.org (full text, mbox):
> It has exactly the same behavior. Starting it with TERM=xterm-256color, it
> takes a couple of seconds to get to the welcome screen. Same pselect6()
> calls in the trace output:
Also, could you describe precisely what terminal emulator you're
using (including version number)?
Stefan
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#18713
; Package
emacs
.
(Wed, 06 Jun 2018 00:13:01 GMT)
Full text and
rfc822 format available.
Message #20 received at 18713 <at> debbugs.gnu.org (full text, mbox):
tags 18713 + moreinfo
close 18713
quit
Stefan Monnier <monnier <at> iro.umontreal.ca> writes:
>> I downloaded emacs-24.3.94 (I assume that’s what you intended?) and built it with:
>> ./configure --prefix=`/bin/pwd` --with-x-toolkit=no --with-xpm=no --with-jpeg=no --with-png=no --with-gif=n
>> o --with-tiff=no
>> ./configure --prefix=`/bin/pwd` --with-x-toolkit=no --with-xpm=no --with-jpeg=no --with-png=no --with-gif=n
>> o --with-tiff=no
>
>> It has exactly the same behavior. Starting it with TERM=xterm-256color, it
>> takes a couple of seconds to get to the welcome screen. Same pselect6()
>> calls in the trace output:
>
> Could you show the result of typing `C-h l' right after this slow startup?
> Also, could you describe precisely what terminal emulator you're
> using (including version number)?
Closing since OP hasn't responded.
Added tag(s) moreinfo.
Request was from
Noam Postavsky <npostavs <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Wed, 06 Jun 2018 00:13:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
18713 <at> debbugs.gnu.org and Roy Smith <roy <at> panix.com>
Request was from
Noam Postavsky <npostavs <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Wed, 06 Jun 2018 00:13:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 04 Jul 2018 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 7 years and 46 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.