GNU bug report logs - #9291
23.3.50; Emacs takes long time to start up due to DNS

Previous Next

Package: emacs;

Reported by: Leo <sdl.web <at> gmail.com>

Date: Sat, 13 Aug 2011 02:01:01 UTC

Severity: normal

Found in version 23.3.50

Done: Chong Yidong <cyd <at> stupidchicken.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 9291 in the body.
You can then email your comments to 9291 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#9291; Package emacs. (Sat, 13 Aug 2011 02:01:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Leo <sdl.web <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 13 Aug 2011 02:01:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Leo <sdl.web <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 23.3.50; Emacs takes long time to start up due to DNS
Date: Sat, 13 Aug 2011 09:59:15 +0800
On my machine, emacs -q -nw normally takes 0.1 seconds. But I have just
found that it could take more than 10 seconds on some network. I have
this device that provides wifi/wapi through the telencom network here,
so the behaviour is readily reproducible. Let me know how I may provide
more information for debugging. AFAICT this happens in 24.0.50 too.

I am running emacs 23.3.50 on OSX 10.6.8.

leo <at> bogon ~$ time emacs -q -nw

real	0m11.347s
user	0m0.207s
sys	0m0.037s

Backtrace in GDB reveals this:

#0  0x00007fff85677c0a in kevent ()
#1  0x00007fff856b69fa in _mdns_query_mDNSResponder ()
#2  0x00007fff856b5db7 in _mdns_search ()
#3  0x00007fff856b4ffc in _mdns_addrinfo ()
#4  0x00007fff856b4059 in search_addrinfo ()
#5  0x00007fff856b3a7a in si_addrinfo ()
#6  0x00007fff856b348d in getaddrinfo ()
#7  0x000000010012915e in init_system_name () at sysdep.c:1793
#8  0x00000001001a4b9d in init_editfns () at editfns.c:154
#9  0x00000001001021bc in main (argc=3, argv=0x7fff5fbff5f8) at emacs.c:1768

BTW, is it possible for init_system_name to be done async?

Leo




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#9291; Package emacs. (Sat, 13 Aug 2011 03:04:02 GMT) Full text and rfc822 format available.

Message #8 received at 9291 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Leo <sdl.web <at> gmail.com>
Cc: 9291 <at> debbugs.gnu.org
Subject: Re: bug#9291: 23.3.50; Emacs takes long time to start up due to DNS
Date: Fri, 12 Aug 2011 23:01:45 -0400
> On my machine, emacs -q -nw normally takes 0.1 seconds. But I have just
> found that it could take more than 10 seconds on some network. I have
> this device that provides wifi/wapi through the telencom network here,
> so the behaviour is readily reproducible. Let me know how I may provide
> more information for debugging. AFAICT this happens in 24.0.50 too.

I think you'll find an answer in etc/PROBLEMS:

*** Emacs startup on GNU/Linux systems (and possibly other systems) is slow.

This can happen if the system is misconfigured and Emacs can't get the
full qualified domain name, FQDN.  You should have your FQDN in the
/etc/hosts file, something like this:

127.0.0.1	localhost
129.187.137.82	nuc04.t30.physik.tu-muenchen.de	nuc04

> BTW, is it possible for init_system_name to be done async?

Could be.


        Stefan




bug closed, send any further explanations to 9291 <at> debbugs.gnu.org and Leo <sdl.web <at> gmail.com> Request was from Chong Yidong <cyd <at> stupidchicken.com> to control <at> debbugs.gnu.org. (Sun, 14 Aug 2011 21:05: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. (Mon, 12 Sep 2011 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 13 years and 341 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.