You are not logged in.

#1 2006-05-11 11:13:59

con
Member
Registered: 2006-05-11
Posts: 89
Website

emacs starts really slow

It takes a long time to start emacs, heres the output from 'time emacs --kill'

[conny@morticia ~]$ time emacs --kill

real    0m5.550s
user    0m0.185s
sys     0m0.031s

...and heres /etc/hosts

[conny@morticia ~]$ cat /etc/hosts
#
# /etc/hosts: static lookup table for host names
#

#<ip>   <hostname>   <hostname>
127.0.0.1               localhost.localdomain   localhost

# End of file

What is wrong? Emacs shouldnt take this long to start. oh yea computer is acer aspire 3003lmi.


charlie dont surf!

Offline

#2 2006-05-12 15:20:05

Klette
Member
Registered: 2005-05-20
Posts: 27

Re: emacs starts really slow

[klette@Distraction ~]$ time /usr/local/bin/emacs --kill

real    0m1.991s
user    0m0.636s
sys    0m0.060s


No problems here ..

Offline

#3 2006-05-14 10:05:17

con
Member
Registered: 2006-05-11
Posts: 89
Website

Re: emacs starts really slow

that's what I get on my Slackware install too, but not on Arch.


charlie dont surf!

Offline

#4 2006-05-15 08:35:43

drakosha
Member
Registered: 2006-01-03
Posts: 253
Website

Re: emacs starts really slow

Maybe it's a good idea to run strace and find out what takes the time... I'll do it if i find the time, or you can try it smile

Offline

#5 2006-05-15 09:05:17

JGC
Developer
Registered: 2003-12-03
Posts: 1,664

Re: emacs starts really slow

Your localhost network interface is up?

Offline

#6 2006-05-16 06:15:10

con
Member
Registered: 2006-05-11
Posts: 89
Website

Re: emacs starts really slow

lo is up and here is the output from strace:
students.turkuai.fi/~coholteg/emacs_strace.txt


charlie dont surf!

Offline

#7 2006-05-16 07:55:21

JGC
Developer
Registered: 2003-12-03
Posts: 1,664

Re: emacs starts really slow

Do you have an entry for 192.168.101.32 in /etc/hosts, or at least some way to get a reverse DNS record for it? emacs is trying to do quite some lookups for them, which can take 10 seconds to timeout (I guess ssh is also very slow from your machine)

Offline

#8 2006-05-17 06:44:20

con
Member
Registered: 2006-05-11
Posts: 89
Website

Re: emacs starts really slow

192.168.101.32 is the DNS server at work. Should I add it to  /etc/hosts? What should the line look like?


charlie dont surf!

Offline

#9 2006-05-17 08:29:04

con
Member
Registered: 2006-05-11
Posts: 89
Website

Re: emacs starts really slow

added <ip> dns.server dns to /etc/hosts no change


charlie dont surf!

Offline

#10 2006-05-27 08:54:21

robertK
Member
Registered: 2006-05-25
Posts: 17

Re: emacs starts really slow

I have

real    0m12.757s
user    0m0.308s
sys     0m0.060s

did you solve this problem?

Offline

#11 2006-05-27 10:27:49

con
Member
Registered: 2006-05-11
Posts: 89
Website

Re: emacs starts really slow

No I did'nt solve it....on thing though, when i run hostname -f i get hostname lookup failure or something like that.


charlie dont surf!

Offline

#12 2006-05-27 15:18:40

robertK
Member
Registered: 2006-05-25
Posts: 17

Re: emacs starts really slow

Maybe a font problem?

When I remove

(set-default-font "-adobe-courier-medium-r-normal--18-180-75-75-m-110-iso8859-2")

from .emacs I have
$ time emacs --kill

real    0m0.570s
user    0m0.320s
sys     0m0.024s

Offline

#13 2006-05-27 15:32:33

con
Member
Registered: 2006-05-11
Posts: 89
Website

Re: emacs starts really slow

OK i solved it... I had misspelled the hostname in /etc/hosts big_smile thanks for your help everyone


charlie dont surf!

Offline

#14 2006-05-27 16:51:53

drakosha
Member
Registered: 2006-01-03
Posts: 253
Website

Re: emacs starts really slow

can u please write exactly how your /etc/hosts looks like?

Offline

#15 2006-05-28 07:13:18

con
Member
Registered: 2006-05-11
Posts: 89
Website

Re: emacs starts really slow

127.0.0.1   localhost.localdomain   localhost
192.168.101.55   morticia.addams   morticia # had spelled it moritcia

I had also set the hostname in rc.conf to morticia like this

HOSTNAME="morticia"

charlie dont surf!

Offline

#16 2006-05-28 07:35:50

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: emacs starts really slow

if you're using network profiles for your network config, make sure the hostname entry is commented out there.

Offline

Board footer

Powered by FluxBB