From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Michael Powe Newsgroups: gmane.emacs.help Subject: Re: 1st character change in file takes forever Date: Sun, 22 Dec 2002 19:15:21 GMT Organization: The Hospice of the Mind Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1040584990 10255 80.91.224.249 (22 Dec 2002 19:23:10 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 22 Dec 2002 19:23:10 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18QBfb-0002dJ-00 for ; Sun, 22 Dec 2002 20:21:51 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18QBg5-0006LT-01 for gnu-help-gnu-emacs@m.gmane.org; Sun, 22 Dec 2002 14:22:21 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!news.stealth.net!news.stealth.net!newsread.com!newsprint.netaxs.com!207.8.186.120.MISMATCH!POSTED.monger.newsread.com!not-for-mail Original-Newsgroups: gnu.emacs.help X-Newsreader: Gnus v5.8.8/Emacs 20.7.2 [Linux 2.2.16] X-Home-Page: http://www.trollope.org Original-Lines: 40 Cache-Post-Path: gaspra.spiretech.com!unknown@slip-32-100-238-101.ca.us.prserv.net X-Cache: nntpcache 3.0.1 (see http://www.nntpcache.org/) Original-NNTP-Posting-Host: 207.173.200.229 Original-X-Complaints-To: Abuse Role , We Care Original-X-Trace: monger.newsread.com 1040584521 207.173.200.229 (Sun, 22 Dec 2002 14:15:21 EST) Original-NNTP-Posting-Date: Sun, 22 Dec 2002 14:15:21 EST Original-Xref: shelby.stanford.edu gnu.emacs.help:108421 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:4950 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:4950 >>>>> "David" == David Klein writes: David> Barry Margolin writes: >> In article , David >> Klein wrote: >When I first >> try to insert a character into a buffer that is >associated >> with a file on disk, the insert takes close to a minute! >> During that first change, Emacs checks whether someone else has >> modified the file, and also checks for a lock file. For some >> reason, these checks are taking a long time. Try doing a >> system call trace to see what it's doing during that time. David> Assuming by "a system call trace" you meant the strace David> function, I did the following: >> emacs junk1& strace -c -f -ff -o emacs_trace -q -r -t -T -p1238 David> (1238 was the pid of emacs. After running the strace David> command, I pressed the spacebar once in emacs. When it David> finally inserted the space into the buffer, I ^C'ed the David> strace). >> cat emacs_trace [ ... ] David> I have no idea how to continue, besides the fact that David> 255963 read syscalls seems slightly on the high side for David> inserting a single character. Any ideas how to continue? are you on a network? if so, does this behavior continue if you disconnect the machine from the network? mp -- Michael Powe Waterbury, CT ------------------------------------------------------------- "The most likely way for the world to be destroyed, most experts agree, is by accident. That's where we come in. We're computer professionals. We cause accidents." -- Nathaniel Borenstein