all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David Klein <dklein@bloombergREMOVETHISPART.com>
Subject: Re: 1st character change in file takes forever
Date: 24 Dec 2002 10:19:52 +0200	[thread overview]
Message-ID: <m04r93zv4n.fsf@bloombergREMOVETHISPART.com> (raw)
In-Reply-To: uisxlc1ba.fsf@trollope.org

Michael Powe <michael+gnus@trollope.org> writes:

> >>>>> "David" == David Klein <dklein@bloombergREMOVETHISPART.com> writes:
> 
>     David> Barry Margolin <barmar@genuity.net> writes:
>     >> In article <m08yyodagg.fsf@bloombergREMOVETHISPART.com>, David
>     >> Klein <dklein@bloombergREMOVETHISPART.com> 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.

      reply	other threads:[~2002-12-24  8:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-17 13:46 1st character change in file takes forever David Klein
2002-12-17 15:30 ` Barry Margolin
2002-12-22 11:33   ` David Klein
2002-12-22 19:15     ` Michael Powe
2002-12-24  8:19       ` David Klein [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m04r93zv4n.fsf@bloombergREMOVETHISPART.com \
    --to=dklein@bloombergremovethispart.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.