From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: David Klein Newsgroups: gmane.emacs.help Subject: Re: 1st character change in file takes forever Date: 24 Dec 2002 10:19:52 +0200 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 1040718021 13006 80.91.224.249 (24 Dec 2002 08:20:21 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 24 Dec 2002 08:20:21 +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 18QkIS-0003NF-00 for ; Tue, 24 Dec 2002 09:20:16 +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 18QkIi-0005rO-01 for gnu-help-gnu-emacs@m.gmane.org; Tue, 24 Dec 2002 03:20:32 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!HSNX.atgi.net!cyclone-sf.pbi.net!151.164.30.35!cyclone.swbell.net!newsfeed1.easynews.com!easynews.com!easynews!uunet!dfw.uu.net!ash.uu.net!spool0902.news.uu.net!not-for-mail Original-Newsgroups: gnu.emacs.help X-Newsreader: Gnus v5.7/Emacs 20.7 Original-Lines: 41 Original-NNTP-Posting-Host: 199.172.169.9 Original-X-Trace: 1040717995 18068 199.172.169.9 Original-Xref: shelby.stanford.edu gnu.emacs.help:108468 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:4997 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:4997 Michael Powe writes: > >>>>> "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? I am indeed on a network. I disconnected the ethernet cable and rebooted. The problem still exists. It is possible that I need to change some configuration files, but I don't know which ones. I am running a modified redhat-release-6.0-1 version of linux. -- Use of tools distinguishes Man from Beast. And UNIX users from WINDOZE lusers.