GNU bug report logs - #18713
Very slow startups with TERM=xterm

Previous Next

Package: emacs;

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.

Full log


View this message in rfc822 format

From: Roy Smith <roy <at> panix.com>
To: 18713 <at> debbugs.gnu.org
Subject: bug#18713: Very slow startups with TERM=xterm
Date: Mon, 13 Oct 2014 19:00:45 -0400
[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)]

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.