From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: emacs trying to load too many files at startup Date: Sat, 19 Nov 2005 21:09:41 +0200 Message-ID: References: <200511191831.jAJIVJTp026147@scanner2.ics.uci.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1132427555 8097 80.91.229.2 (19 Nov 2005 19:12:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 19 Nov 2005 19:12:35 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 19 20:12:34 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EdY7S-0008T3-3h for ged-emacs-devel@m.gmane.org; Sat, 19 Nov 2005 20:11:26 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EdY7Q-00028X-MF for ged-emacs-devel@m.gmane.org; Sat, 19 Nov 2005 14:11:24 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EdY5v-0001YE-Ek for emacs-devel@gnu.org; Sat, 19 Nov 2005 14:09:51 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EdY5u-0001XM-Fu for emacs-devel@gnu.org; Sat, 19 Nov 2005 14:09:50 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EdY5u-0001Wh-03 for emacs-devel@gnu.org; Sat, 19 Nov 2005 14:09:50 -0500 Original-Received: from [192.114.186.20] (helo=nitzan.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EdY5t-0006TI-PW for emacs-devel@gnu.org; Sat, 19 Nov 2005 14:09:50 -0500 Original-Received: from HOME-C4E4A596F7 (IGLD-80-230-28-201.inter.net.il [80.230.28.201]) by nitzan.inter.net.il (MOS 3.6.5-GR) with ESMTP id BZC01936 (AUTH halo1); Sat, 19 Nov 2005 21:09:36 +0200 (IST) Original-To: Dan Nicolaescu In-reply-to: <200511191831.jAJIVJTp026147@scanner2.ics.uci.edu> (message from Dan Nicolaescu on Sat, 19 Nov 2005 10:31:16 -0800) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:46271 Archived-At: > From: Dan Nicolaescu > Date: Sat, 19 Nov 2005 10:31:16 -0800 > > The /tmp/emacs.strace file shows that emacs is trying to load at > startup a lot of files that are dumped anyway so there should be no > reason to load them at startups. > > This is seen by looking at stat system calls like: > stat64("/home/dann/packages/emacs-CVS/share/emacs/22.0.50/site-lisp/replace.elc", 0xbf8c767c) > > Other files loaded: abbrev, textmodes/fill, emacs-lisp/lisp-mode, etc, etc > > There are about 2400 stat syscalls during the startup. > emacs-21.4 does about 230 stat64 syscalls... > > When running from the local disk this is unlikely to cause a problem, > but it might be a problem when using a slow NFS server... > > Does anyone know what is going on? The easiest and the most accurate way of answering that is to put a breakpoint in stat64, and then do a bt each time the breakpoint triggers.