Article View: fj.editor.xemacs
Article #102emacs の起動が遅いのはなぜ? (was: オフライン時 起動できず)
From: KURODA Chihiro
Date: Mon, 22 Oct 2001 00:44
Date: Mon, 22 Oct 2001 00:44
71 lines
4446 bytes
4446 bytes
# PROBLEMS の中に次の記述を見つけたのですが、これによると Linux
# 固有の問題のように読めます。ということで fj.os.linux も追加。
emacs の起動が遅いのはなぜ? というトピックで、それに対する回答が
(オフライン状態の場合は) 空の host.conf を用意せよ、hosts は
この方法では不要である、 ということのようですが、
・そもそも私の環境では起動が遅いどころか、起動すらしない
・(オン・オフライン) 状態が頻繁に変わる状況で、いちいち空の host.
conf を用意するなんてアプローチは取りたくない
いずれにしても、こういう仕様(-q をつけても 起動時に dns query)自体が
(少なくとも私には)にわかに信じ難いのですが、とりあえず皆さんはどういった
回避方法を取られているか、教えてもらえませんか?
/usr/share/doc/xemacs-21.5.3/PROBLEMS 1385 行目付近
*** Slow startup on Linux.
People using systems based on the Linux kernel sometimes report that
startup takes 10 to 15 seconds longer than `usual'. There are two
problems, one older, one newer.
**** Old problem: IPv4 host lookup
On older systems, this is because Emacs looks up the host name when it
starts. Normally, this takes negligible time; the extra delay is due
to improper system configuration. (Recent Linux distros usually have
this configuration correct "out of the box".) This problem can occur
for both networked and non-networked machines.
Here is how to fix the configuration. It requires being root.
***** Networked Case
First, make sure the files `/etc/hosts' and `/etc/host.conf' both
exist. The first line in the `/etc/hosts' file should look like this
(replace HOSTNAME with your host name):
127.0.0.1 localhost HOSTNAME
Also make sure that the `/etc/host.conf' files contains the following
lines:
order hosts, bind
multi on
Any changes, permanent and temporary, to the host name should be
indicated in the `/etc/hosts' file, since it acts a limited local
database of addresses and names (e.g., some SLIP connections
dynamically allocate ip addresses).
***** Non-Networked Case
The solution described in the networked case applies here as well.
However, if you never intend to network your machine, you can use a
simpler solution: create an empty `/etc/host.conf' file. The command
`touch /etc/host.conf' suffices to create the file. The `/etc/hosts'
file is not necessary with this approach.
> [chee] == chee@subdimension.com
> wrote in message <m3adylqhzv.wl@localhost> ...
chee> XEmacs 21.5 beta3 でオフライン時(LANケーブルを抜いた状態)
chee> xemacs -q で立ち上げてみても、 dnsを引きにいってしまうようで
chee> 起動できません。
chee> セッティングの問題やこれを抑制する方法など、分かるところがありま
chee> したら教えてください。
Technical Details
Message-ID:
<m3elnwa4gn.wl@localhost>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!tokyo-ipcon-ppp-211-125-76-142.interq.or.JP!not-for-mailReferences:
<m3adylqhzv.wl@localhost>Show Full Headers
Complete Article Headers
X-Google-Language: Japanese,JIS X-Google-Thread: 10684a,957045dbb6527ba,start X-Google-Attributes: gid10684a,public X-Google-Thread: 1107f7,ae7c59f16429de9b X-Google-Attributes: gid1107f7,public X-Google-ArrivalTime: 2001-10-21 17:44:28 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!tokyo-ipcon-ppp-211-125-76-142.interq.or.JP!not-for-mail From: KURODA Chihiro <chee@subdimension.com> Newsgroups: fj.editor.xemacs,fj.os.linux Subject: emacs の起動が遅いのはなぜ? (was: オフライン時 起動できず) Date: Mon, 22 Oct 2001 09:44:24 +0900 Organization: home Lines: 73 Message-ID: <m3elnwa4gn.wl@localhost> References: <m3adylqhzv.wl@localhost> NNTP-Posting-Host: tokyo-ipcon-ppp-211-125-76-142.interq.or.jp (211.125.76.142) Mime-Version: 1.0 (generated by SEMI 1.14.3 - "牛ノ谷") Content-Type: text/plain; charset=ISO-2022-JP X-Trace: fu-berlin.de 1003711466 27062286 211.125.76.142 (16 [112108]) In-Reply-To: <m3adylqhzv.wl@localhost> User-Agent: Wanderlust/2.7.5 (Too Funky) SEMI/1.14.3 (牛ノ谷) FLIM/1.14.3 (畝傍御陵前) APEL/10.3 MULE XEmacs/21.5 (beta3) (asparagus) (i386-kondara-linux) X-cite: carm 1.19 X-cite-me: chee X-Weather: 今日の東京地方は晴後時々曇です