all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Paul Eggert <eggert@twinsun.com>
Cc: buff@hpbs9968.boi.hp.com, emacs-devel@gnu.org
Subject: Re: dired too SLOW
Date: Fri, 8 Mar 2002 14:17:51 -0800 (PST)	[thread overview]
Message-ID: <200203082217.g28MHpN00754@shade.twinsun.com> (raw)
In-Reply-To: <200203082107.g28L7HO03332@wijiji.santafe.edu> (rms@gnu.org)

> From: Richard Stallman <rms@gnu.org>
> Date: Fri, 8 Mar 2002 14:07:17 -0700 (MST)
> 
>     I had this problem and commented-out the invocation of "df",
>     from: insert-directory.el
> 
> It is very strange that df should be so slow.
> Normally it is very fast.  What is causing it to be slow?

There are many reasons df could be slow.  I have often run into
automounters or NFS servers that take a long time to respond to a
resolvepath or a statvfs system call (which df uses), even when they
respond quickly to a stat system call (which ls uses).  This can be
caused by stale NFS file handles, for example.

I've heard that some HP-UX releases require that every mountable
filesystem must actually be mounted, or df will hang.  This might be
what buff is running into, since he's at HP.

In some cases (the Solaris 2.6 automounter comes to mind), the problem
can be worked around by doing the stat (or ls) before the statvfs (or df).
It might be wise to modify Emacs to do that.

Also, perhaps Emacs could put a short timeout on its invocation to
'df', and report that the usage is unknown if 'df' fails to respond in
time.

On older BSD hosts like SunOS 4.1.3, df must do a sync before doing a
statvfs to get reasonably accurate results.  This can be a real
performance hit.  (I think SVR4 /usr/ucb/df does the sync for no good
reason -- the sync is there only because it was needed on older
BSD-style systems.)  Perhaps the Emacs PROBLEMS section can suggest
that users use GNU fileutils df on older SVR4 and SunOS 4.x hosts, to
avoid that problem on those hosts.

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/emacs-devel


  parent reply	other threads:[~2002-03-08 22:17 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200203012353.PAA14261@roadkill.rose.hp.com>
     [not found] ` <2950-Sat02Mar2002102858+0200-eliz@is.elta.co.il>
     [not found]   ` <w2llmd4mfxg.fsf@hpbs1443.i-did-not-set--mail-host-address--so-shoot-me>
2002-03-08 21:07     ` dired too SLOW Richard Stallman
2002-03-08 22:04       ` Jim Buffenbarger
2002-03-09 20:02         ` Richard Stallman
2002-03-10  5:51           ` Eli Zaretskii
2002-03-08 22:17       ` Paul Eggert [this message]
2002-03-09 20:02         ` Richard Stallman
2002-03-08 22:21       ` Jan D.

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=200203082217.g28MHpN00754@shade.twinsun.com \
    --to=eggert@twinsun.com \
    --cc=buff@hpbs9968.boi.hp.com \
    --cc=emacs-devel@gnu.org \
    /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.