[wplug] Debug: 5-second timeout when starting emacs

Eric Cooper ecc at cmu.edu
Wed Oct 5 12:30:46 EDT 2005


On Tue, Oct 04, 2005 at 01:26:42AM -0400, Brandon Kuczenski wrote:
> Recently I noticed that EMACS was timing out on startup.  I think this 
> began with my system upgrade, but I'm not sure.
> 
> Using crude debugging techniques, I have determined that the pause happens 
> during the execution of the lisp function "set-frame-font", from the file 
> frame.el (and called in my .emacs file). The output of strace suggests 
> that a 'select' command is reaching its 5-second timeout:
> 
> select(5, [4], [], [], {4, 231000})     = 0 (Timeout)
> 
> (the line is preceded by a whole bunch of select() commands where the last 
> argument gradually counts down from {5, 0} to above)
> 
> How do I go about finding the cause of the Timeout?

Timeouts immediately suggest network activity.  Some possible
suspects that might be triggered "behind the scenes":
    your X configuration (is it trying to contact a font server?)
    DNS lookups
    NFS automounts

You might also try using "strace -e trace=network ..." to narrow it down.

-- 
Eric Cooper             e c c @ c m u . e d u


More information about the wplug mailing list