unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Chong Yidong <cyd@stupidchicken.com>
Cc: "T.V. Raman" <tv.raman.tv@gmail.com>, emacs-devel@gnu.org
Subject: Re: files.el: Once again impossible to turn off dir-settings
Date: Tue, 25 Nov 2008 20:37:06 -0500	[thread overview]
Message-ID: <jwvod035kzc.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87d4gj8m2c.fsf@cyd.mit.edu> (Chong Yidong's message of "Tue, 25 Nov 2008 17:42:19 -0500")

>>> (setq vc-ignore-dir-regexp
>>> "\\`\\([\\/][\\/]\\|/net/\\|/home/\\|/afs/\\)\\'")
>>> Notice the addition of /home above  -- in my case /home is nfs
>>> mounted.
>> 
>> NFS mounting as such is normally not a problem.  So could you explain
>> exactly how is /home mounted?  Is it an autofs mount?  Do accesses to
>> /home/foobar automatically trigger access to some network server (even
>> if /home/foobar doesn't actually exist)?

> I don't know if this is what T. V. Raman is using, but I have experience
> of a setup where moving up the directory hierachy eventually leads to
> extreme slowness.  When (say) your home directory is mounted on AFS (a
> distributeed network file system), moving up the AFS file hierachy
> eventually brings you to the /afs root directory.  This directory is
> populated by literally thousands of files, each of which on a different
> server (each is a different AFS cell).

Indeed.  Which is why /afs is handled specially in
locate-dominating-stop-dir-regexp.  With NFS this problem normally
doesn't happen.

> Doing something like `ls' in this directory can take minutes.

dir-settings (and VC) doesn't use the equivalent of `ls' (aka
directory-files).  Instead it looks specifically for the few files that
could matter (e.g. CVS/Entries, .dit-settings.el, ...).  This can make
a very large difference.

> (I don't use this setup anymore, though; this was on a campus network
> where AFS was widely used.)

Yes, I've used AFS as well.  Neat thing (other than Kerberos whose
timeouts I don't like).


        Stefan




  reply	other threads:[~2008-11-26  1:37 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-25 14:13 files.el: Once again impossible to turn off dir-settings T.V. Raman
2008-11-25 15:30 ` Stefan Monnier
2008-11-25 19:00   ` T.V. Raman
2008-11-25 21:48     ` Stefan Monnier
2008-11-25 22:42       ` Chong Yidong
2008-11-26  1:37         ` Stefan Monnier [this message]
2008-11-26  4:33       ` T.V. Raman
2008-11-26 14:37         ` Stefan Monnier
2008-11-29  3:46     ` Miles Bader
2008-11-25 16:04 ` Juri Linkov
2008-11-25 19:03   ` T.V. Raman
2008-11-25 20:02   ` Tom Tromey
2008-11-25 22:19     ` T.V. Raman
2008-11-27  0:00       ` Juri Linkov

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=jwvod035kzc.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=cyd@stupidchicken.com \
    --cc=emacs-devel@gnu.org \
    --cc=tv.raman.tv@gmail.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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).