* bug#18713: Very slow startups with TERM=xterm
@ 2014-10-13 23:00 Roy Smith
2014-10-14 6:21 ` Eli Zaretskii
0 siblings, 1 reply; 6+ messages in thread
From: Roy Smith @ 2014-10-13 23:00 UTC (permalink / raw
To: 18713
[-- Attachment #1: Type: text/plain, Size: 1167 bytes --]
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@panix.com
[-- Attachment #2: Type: text/html, Size: 2861 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#18713: Very slow startups with TERM=xterm
2014-10-13 23:00 bug#18713: Very slow startups with TERM=xterm Roy Smith
@ 2014-10-14 6:21 ` Eli Zaretskii
2014-10-14 14:33 ` Roy Smith
0 siblings, 1 reply; 6+ messages in thread
From: Eli Zaretskii @ 2014-10-14 6:21 UTC (permalink / raw
To: Roy Smith; +Cc: 18713
> From: Roy Smith <roy@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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#18713: Very slow startups with TERM=xterm
2014-10-14 6:21 ` Eli Zaretskii
@ 2014-10-14 14:33 ` Roy Smith
2014-10-14 23:44 ` Stefan Monnier
2014-10-14 23:45 ` Stefan Monnier
0 siblings, 2 replies; 6+ messages in thread
From: Roy Smith @ 2014-10-14 14:33 UTC (permalink / raw
To: Eli Zaretskii; +Cc: 18713
[-- Attachment #1: Type: text/plain, Size: 1677 bytes --]
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@gnu.org> wrote:
>> From: Roy Smith <roy@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.
>
>
>
[-- Attachment #2: Type: text/html, Size: 2497 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#18713: Very slow startups with TERM=xterm
2014-10-14 14:33 ` Roy Smith
@ 2014-10-14 23:44 ` Stefan Monnier
2018-06-06 0:11 ` Noam Postavsky
2014-10-14 23:45 ` Stefan Monnier
1 sibling, 1 reply; 6+ messages in thread
From: Stefan Monnier @ 2014-10-14 23:44 UTC (permalink / raw
To: Roy Smith; +Cc: 18713
> 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
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#18713: Very slow startups with TERM=xterm
2014-10-14 14:33 ` Roy Smith
2014-10-14 23:44 ` Stefan Monnier
@ 2014-10-14 23:45 ` Stefan Monnier
1 sibling, 0 replies; 6+ messages in thread
From: Stefan Monnier @ 2014-10-14 23:45 UTC (permalink / raw
To: Roy Smith; +Cc: 18713
> 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
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#18713: Very slow startups with TERM=xterm
2014-10-14 23:44 ` Stefan Monnier
@ 2018-06-06 0:11 ` Noam Postavsky
0 siblings, 0 replies; 6+ messages in thread
From: Noam Postavsky @ 2018-06-06 0:11 UTC (permalink / raw
To: Stefan Monnier; +Cc: Roy Smith, 18713
tags 18713 + moreinfo
close 18713
quit
Stefan Monnier <monnier@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.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2018-06-06 0:11 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-13 23:00 bug#18713: Very slow startups with TERM=xterm Roy Smith
2014-10-14 6:21 ` Eli Zaretskii
2014-10-14 14:33 ` Roy Smith
2014-10-14 23:44 ` Stefan Monnier
2018-06-06 0:11 ` Noam Postavsky
2014-10-14 23:45 ` Stefan Monnier
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.