Re: xemacs 20.3 slow load

1998-02-09 Thread Gerald Wann
Hi-

Many thanks to those who have commented thus far on the xemacs slow load post.
Being relatively new to Linux, i am still slogging thru the process of
analyzing why
the load takes so long on my machine.

In particular, i have just run an strace on the program as it loads, and it
gives me about
280k worth of text file on the system calls, many of which are mysterious
to a newbie
like me.

If find particularly interesting any lines in the file where a timeout
occurs. I have attached
a snippet below, which is repeated many times in the load process. Could
anyone shed
light on just what is happening here?

I will continue to try and understand  analyze the file in the meantime.

Many thanks again
Jerry


***
snip

sigaction(SIGALRM, {0x80d7810, [], SA_INTERRUPT}, {0x80d7810, [],
SA_INTERRUPT}) = 0
setitimer(ITIMER_REAL, {it_interval={0, 0}, it_value={0, 0}}, NULL) = 0
gettimeofday({887026195, 850087}, {300, 1}) = 0
gettimeofday({887026195, 850337}, {300, 1}) = 0
gettimeofday({887026195, 850578}, NULL) = 0
gettimeofday({887026195, 850831}, NULL) = 0
oldselect(5, [4], [], [], {0, 0})   = 0 (Timeout)
gettimeofday({887026195, 852457}, NULL) = 0
oldselect(5, [4], [], [], {0, 0})   = 0 (Timeout)
gettimeofday({887026195, 854022}, NULL) = 0
oldselect(5, [4], [], [], {0, 995556})  = 0 (Timeout)
gettimeofday({887026196, 858258}, NULL) = 0
setitimer(ITIMER_REAL, {it_interval={0, 0}, it_value={0, 0}}, NULL) = 0
setitimer(ITIMER_REAL, {it_interval={0, 0}, it_value={15, 0}}, NULL) = 0
uname({sys=Linux, node=zeropoint, ...}) = 0
open(/etc/hosts, O_RDONLY)= 6
fstat(6, {st_mode=S_IFREG|0600, st_size=39, ...}) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x4000
read(6, 127.0.0.1\tzeropoint\n127.0.0.1\t..., 4096) = 39
read(6, , 4096)   = 0
read(6, , 4096)   = 0
close(6)= 0
munmap(0x4000, 4096)= 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 6
connect(6, {sin_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr(163.125.1.2)}, 16) = -1 ENETUNREACH (Network is
unreachable)
close(6)= 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 6
sendto(6, ,#\1\0\0\1\0\0\0\0\0\0\tlocalhos..., 37, 0,
{sin_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr(163.125.1.1)}, 16) = -1 ENETUNREACH (Network is
unreachable)
close(6)= 0

snip



--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: xemacs 20.3 slow load (follow up)

1998-02-09 Thread Gerald Wann
Hi -

I just started up xemacs while connected to my ISP and it came up in
under 3 seconds!

The timeouts (there are 225 of them) i reported previously are apparently
related to unsuccessful attempts to connect to my ISP while i am offline!

Is there a way to instruct xemacs not to try and connect the socket?

Progress!

Thanks again
Jerry



--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: xemacs 20.3 slow load

1998-02-09 Thread Daniel Martin at cush
Gerald Wann [EMAIL PROTECTED] writes:

 Hi- Many thanks to those who have commented thus far on the xemacs
 slow load post.

 Being relatively new to Linux, i am still slogging thru the process
 of analyzing why the load takes so long on my machine.
 
 In particular, i have just run an strace on the program as it loads,
 and it gives me about 280k worth of text file on the system calls,
 many of which are mysterious to a newbie like me.
 
 If find particularly interesting any lines in the file where a
 timeout occurs. I have attached a snippet below, which is repeated
 many times in the load process. Could anyone shed light on just what
 is happening here?
 
 I will continue to try and understand  analyze the file in the meantime.

snip

Hmm... - it appears that xemacs is attempting to do a dns lookup, and
that's the connection that's taking so long.  If you had a bo machine, 
I'd ask you what your /etc/host.conf said, (and make certain it had
the line order hosts,bind at the top) but I know that in hamm the 
configuration for name lookups has changed a bit - does anyone know
what you need to do on a hamm box to be certain that gethostbyname()
doesn't produce a dns query if a given name is found in /etc/hosts?


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: xemacs 20.3 slow load

1998-02-09 Thread Jean Pierre LeJacq
On Mon, 9 Feb 1998, Daniel Martin at cush wrote:

 Gerald Wann [EMAIL PROTECTED] writes:
  If find particularly interesting any lines in the file where a
  timeout occurs. I have attached a snippet below, which is repeated
  many times in the load process. Could anyone shed light on just what
  is happening here?
 
 Hmm... - it appears that xemacs is attempting to do a dns lookup, and
 that's the connection that's taking so long.  If you had a bo machine, 
 I'd ask you what your /etc/host.conf said, (and make certain it had
 the line order hosts,bind at the top) but I know that in hamm the 
 configuration for name lookups has changed a bit - does anyone know
 what you need to do on a hamm box to be certain that gethostbyname()
 doesn't produce a dns query if a given name is found in /etc/hosts?

I needed to add an entry into /etc/nswitch.conf.

-- 
Jean Pierre



--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: xemacs 20.3 slow load

1998-02-09 Thread Jean Pierre LeJacq
 On Mon, 09 Feb 1998 10:40:18 EST, Jean Pierre LeJacq wrote:
  On Mon, 9 Feb 1998, Daniel Martin at cush wrote:
  
   Hmm... - it appears that xemacs is attempting to do a dns lookup, and
   that's the connection that's taking so long.  If you had a bo machine, 
   I'd ask you what your /etc/host.conf said, (and make certain it had
   the line order hosts,bind at the top) but I know that in hamm the 
   configuration for name lookups has changed a bit - does anyone know
   what you need to do on a hamm box to be certain that gethostbyname()
   doesn't produce a dns query if a given name is found in /etc/hosts?
  
  I needed to add an entry into /etc/nswitch.conf.
 
 What specifically did you add?

Here's my nswitch.file:

  passwd: files
  group:  files
  shadow: files
  gshadow:files

  hosts:  files dns
  networks:   files dns

  protocols:  files
  services:   files
  rpc:files

Its important to have files before dns for hosts entry.

-- 
Jean Pierre



--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: xemacs 20.3 slow load

1998-02-08 Thread John Goerzen
That doesn't sound right.

You should have something like:

127.0.0.1   zeropoint.your.domain   zeropoint
127.0.0.1   localhost

(Also try flipping those lines around.)

Also, what does hostname and hostname -f report?

Gerald Wann [EMAIL PROTECTED] writes:

 
 I am experimenting with xemacs 20.3 on debian linux 2.0.29 machine
 w/ AMD K6 200MHz / 32M RAM. It takes xemacs about a full minute
 to load in xwindows. Anyone else experience such a prolonged load
 wait, or is it just me ( 20.3 ;-)?
 
 Usually the problem with *really* slow emacs loading is that your
 hostname is set incorrectly.  It will wait a long time trying to
 resolve a bad hostname.  Add your hostname to /etc/hosts to fix.
 
 Hi -
 
 I've tried the following (single) lines in my etc/hosts file -
 
 127.0.0.1 localhost
   OR
 127.0.0.1 zeropoint   // where zeropoint is what is reported by hostname
   OR
 127.0.0.1 zeropoint   localhost
 
 and noticed very little if any improvement in xemacs load speed? I'm probably
 making a silly mistake, but it's not immediately obvious to me what it is.
 Ideas?
 
 
 
 
 --
 TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
 [EMAIL PROTECTED] . 
 Trouble?  e-mail to [EMAIL PROTECTED] .
 

-- 
John Goerzen  | Developing for Debian GNU/Linux (www.debian.org)
Custom Programming| Debian GNU/Linux is a free replacement for
[EMAIL PROTECTED] | DOS/Windows -- check it out at www.debian.org.
--+--
Find out how to avoid all those pesky crashes, lockups, application errors,
and slow applications at http://www.debian.org -- Debian can replace Windows
95 with a much more stable operating system.


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: xemacs 20.3 slow load

1998-02-08 Thread Alexander Kjeldaas
On Fri, Feb 06, 1998 at 06:44:29AM -0500, Gerald Wann wrote:
 Hi -
 
 I am experimenting with xemacs 20.3 on debian linux 2.0.29 machine
 w/ AMD K6 200MHz / 32M RAM. It takes xemacs about a full minute
 to load in xwindows. Anyone else experience such a prolonged load
 wait, or is it just me ( 20.3 ;-)?
 

While others have answered this question, there's a way to get xemacs
to load instantly (if you have the memory). I run the following script
when starting fvwm95:

bin/fvwminit:
#!/bin/sh
other programs
xemacs -unmapped -eval '(gnuserv-start)' 


by having the following in my .fvwm2rc95

AddToFunc InitFunction
+   I Exec bin/fvwminit


..and

AddToMenu Utilities Utilities Title
stuff
+ XEmacs slave%mini-edit.xpm% Exec gnudoit (make-frame-on-display \$
DISPLAY\)

astor

--
 Alexander Kjeldaas, Guardian Networks AS, Trondheim, Norway
 http://www.guardian.no/


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: xemacs 20.3 slow load

1998-02-08 Thread Adrian Bridgett
On Fri, Feb 06, 1998 at 10:26:48PM -0600, John Goerzen wrote:
 On my P166 (64 meg RAM) it takes about 20 seconds.  Strange, on a BSDi 
 P133 it takes about 5-10 seconds and that machine has less memory.  I
 suspect our Xemacs is loading a bunch of unneeded stuff but I don't
 know for sure.  You might want to mail our xemacs maintainer about this.
 
 Gerald Wann [EMAIL PROTECTED] writes:
 
  Hi -
  
  I am experimenting with xemacs 20.3 on debian linux 2.0.29 machine
  w/ AMD K6 200MHz / 32M RAM. It takes xemacs about a full minute
  to load in xwindows. Anyone else experience such a prolonged load
  wait, or is it just me ( 20.3 ;-)?

Here is a tip someone posted - it reduced the time on my machine from 20 to
15 seconds. I flushed the disk cache between runs and ran the test several
times.

Adrian

On Thu, Dec 18, 1997 at 10:00:58PM +0200, Heikki Vatiainen wrote:
 Hi,

 If you are in a hurry do
 touch /tmp/.sockets/audio0
 otherwise read on :)

 I was qurious about what makes XEmacs so slow at startup. With the help of
 the strace(1) utility I found the following interesting behaviour of
 XEmacs19. The XEmacs I am using is version 19.16-1 which comes with the
 unstable distribution.

 When XEmacs starts up it creates a UNIX domain socket and tries to connect it
 to /tmp/.sockets/audio0. If this special file does not exist (ENOENT is
 returned) it does nanosleep(2) five times and sleeps about 1 second each
 time. Only after nanosleeping it will continue loading.

 If a plain file named /tmp/.sockets/audio0 is created XEmacs gets
 ECONNREFUSED as return value and goes on without nanosleeping or retrying.
 This speeds up the startup time for about five seconds on my machine.
 /usr/bin/time reports the time going from about 8.7 to 3.7 seconds.

 I hope you find this tip useful,


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: xemacs 20.3 slow load

1998-02-07 Thread John Goerzen
On my P166 (64 meg RAM) it takes about 20 seconds.  Strange, on a BSDi 
P133 it takes about 5-10 seconds and that machine has less memory.  I
suspect our Xemacs is loading a bunch of unneeded stuff but I don't
know for sure.  You might want to mail our xemacs maintainer about this.

Gerald Wann [EMAIL PROTECTED] writes:

 Hi -
 
 I am experimenting with xemacs 20.3 on debian linux 2.0.29 machine
 w/ AMD K6 200MHz / 32M RAM. It takes xemacs about a full minute
 to load in xwindows. Anyone else experience such a prolonged load
 wait, or is it just me ( 20.3 ;-)?
 
 Thanks
 Jerry
 
 
 
 --
 TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
 [EMAIL PROTECTED] . 
 Trouble?  e-mail to [EMAIL PROTECTED] .
 

-- 
John Goerzen  | Developing for Debian GNU/Linux (www.debian.org)
Custom Programming| Debian GNU/Linux is a free replacement for
[EMAIL PROTECTED] | DOS/Windows -- check it out at www.debian.org.
--+--
Find out how to avoid all those pesky crashes, lockups, application errors,
and slow applications at http://www.debian.org -- Debian can replace Windows
95 with a much more stable operating system.


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: xemacs 20.3 slow load

1998-02-07 Thread Ben Pfaff
I am experimenting with xemacs 20.3 on debian linux 2.0.29 machine
w/ AMD K6 200MHz / 32M RAM. It takes xemacs about a full minute
to load in xwindows. Anyone else experience such a prolonged load
wait, or is it just me ( 20.3 ;-)?

Usually the problem with *really* slow emacs loading is that your
hostname is set incorrectly.  It will wait a long time trying to
resolve a bad hostname.  Add your hostname to /etc/hosts to fix.


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: xemacs 20.3 slow load

1998-02-07 Thread Gerald Wann


I am experimenting with xemacs 20.3 on debian linux 2.0.29 machine
w/ AMD K6 200MHz / 32M RAM. It takes xemacs about a full minute
to load in xwindows. Anyone else experience such a prolonged load
wait, or is it just me ( 20.3 ;-)?

Usually the problem with *really* slow emacs loading is that your
hostname is set incorrectly.  It will wait a long time trying to
resolve a bad hostname.  Add your hostname to /etc/hosts to fix.

Hi -

I've tried the following (single) lines in my etc/hosts file -

127.0.0.1   localhost
OR
127.0.0.1   zeropoint   // where zeropoint is what is reported by hostname
OR
127.0.0.1   zeropoint   localhost

and noticed very little if any improvement in xemacs load speed? I'm probably
making a silly mistake, but it's not immediately obvious to me what it is.
Ideas?




--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: xemacs 20.3 slow load

1998-02-07 Thread Ben Pfaff
   I've tried the following (single) lines in my etc/hosts file -

   127.0.0.1localhost
   OR
   127.0.0.1zeropoint   // where zeropoint is what is reported by hostname
   OR
   127.0.0.1zeropoint   localhost

   and noticed very little if any improvement in xemacs load speed? I'm probably
   making a silly mistake, but it's not immediately obvious to me what it is.
   Ideas?

Maybe that's not the problem, then.  It's just that that's what's
always been the problem for me.


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


xemacs 20.3 slow load

1998-02-06 Thread Gerald Wann
Hi -

I am experimenting with xemacs 20.3 on debian linux 2.0.29 machine
w/ AMD K6 200MHz / 32M RAM. It takes xemacs about a full minute
to load in xwindows. Anyone else experience such a prolonged load
wait, or is it just me ( 20.3 ;-)?

Thanks
Jerry



--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .