From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Roy Smith Newsgroups: gmane.emacs.bugs Subject: bug#18713: Very slow startups with TERM=xterm Date: Mon, 13 Oct 2014 19:00:45 -0400 Message-ID: <2FA2CCC3-A40A-431A-BEFC-E3E95C05108F@panix.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1283) Content-Type: multipart/alternative; boundary="Apple-Mail=_FEEFDE9D-AB26-4AEB-86E3-04BC144434BF" X-Trace: ger.gmane.org 1413242127 2378 80.91.229.3 (13 Oct 2014 23:15:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 13 Oct 2014 23:15:27 +0000 (UTC) To: 18713@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 14 01:15:20 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Xdopj-0007X6-I0 for geb-bug-gnu-emacs@m.gmane.org; Tue, 14 Oct 2014 01:15:19 +0200 Original-Received: from localhost ([::1]:35727 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xdopj-0005Hp-0Y for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 Oct 2014 19:15:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35318) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XdopZ-0005Hj-Vc for bug-gnu-emacs@gnu.org; Mon, 13 Oct 2014 19:15:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XdopU-00079L-46 for bug-gnu-emacs@gnu.org; Mon, 13 Oct 2014 19:15:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51417) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XdopU-000778-0m for bug-gnu-emacs@gnu.org; Mon, 13 Oct 2014 19:15:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XdopT-0000y7-G6 for bug-gnu-emacs@gnu.org; Mon, 13 Oct 2014 19:15:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Roy Smith Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 13 Oct 2014 23:15:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 18713 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14132420503638 (code B ref -1); Mon, 13 Oct 2014 23:15:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Oct 2014 23:14:10 +0000 Original-Received: from localhost ([127.0.0.1]:42981 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xdooa-0000wb-Ss for submit@debbugs.gnu.org; Mon, 13 Oct 2014 19:14:09 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59870) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xdobw-0000cA-Nw for submit@debbugs.gnu.org; Mon, 13 Oct 2014 19:01:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xdobq-0003RF-M4 for submit@debbugs.gnu.org; Mon, 13 Oct 2014 19:01:04 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:48853) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xdobq-0003RB-Ih for submit@debbugs.gnu.org; Mon, 13 Oct 2014 19:00:58 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33327) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xdobk-0003eO-R0 for bug-gnu-emacs@gnu.org; Mon, 13 Oct 2014 19:00:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xdobf-0003Py-8x for bug-gnu-emacs@gnu.org; Mon, 13 Oct 2014 19:00:52 -0400 Original-Received: from mailbackend.panix.com ([166.84.1.89]:55240) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xdobf-0003Pu-3V for bug-gnu-emacs@gnu.org; Mon, 13 Oct 2014 19:00:47 -0400 Original-Received: from [10.0.1.113] (ool-18e47171.dyn.optonline.net [24.228.113.113]) by mailbackend.panix.com (Postfix) with ESMTP id EC63134A85; Mon, 13 Oct 2014 19:00:45 -0400 (EDT) X-Mailer: Apple Mail (2.1283) X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Mailman-Approved-At: Mon, 13 Oct 2014 19:14:07 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:94471 --Apple-Mail=_FEEFDE9D-AB26-4AEB-86E3-04BC144434BF Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii I'm running GNU Emacs 24.3.1, with the -nw flag. If have TERM=3Dxterm = or TERM=3Dxterm-256color, it takes 2 or 3 seconds to start up. Setting = TERM=3Dansi (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}) =3D 1 (in = [3], left {1, 980201052}) <0.016169> 15215 pselect6(4, [3], [], NULL, {1, 999612379}, {NULL, 8}) =3D 0 = (Timeout) <2.001673> 15215 pselect6(4, [3], [], NULL, {0, 499948991}, {NULL, 8}) =3D 0 = (Timeout) <0.500516> 15215 pselect6(4, [3], [], NULL, {27, 497597665}, {NULL, 8}) =3D 1 (in = [3], left {27, 83731691}) <0.413916> 15215 pselect6(4, [3], [], NULL, {0, 499864020}, {NULL, 8}) =3D 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 --Apple-Mail=_FEEFDE9D-AB26-4AEB-86E3-04BC144434BF Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii

15215 pselect6(4, [3], [], NULL, {1, 996360390}, =
{NULL, 8}) =3D 1 (in [3], left {1, 980201052}) <0.016169>
15215 pselect6(4, [3], [], NULL, {1, 999612379}, {NULL, 8}) =3D 0 =
(Timeout) <2.001673>
15215 pselect6(4, [3], [], NULL, {0, 499948991}, {NULL, 8}) =3D 0 =
(Timeout) <0.500516>
15215 pselect6(4, [3], [], NULL, {27, 497597665}, {NULL, 8}) =3D 1 (in =
[3], left {27, 83731691}) <0.413916>
15215 pselect6(4, [3], [], NULL, {0, 499864020}, {NULL, 8}) =3D 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

=
= --Apple-Mail=_FEEFDE9D-AB26-4AEB-86E3-04BC144434BF--