Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: werme@alingo.uucp (Eric Werme USSG)
Subject: Re: NFS automounter
Date: 2 Mar 94 13:06:02 GMT	[thread overview]
Message-ID: <werme.762613562@alingo.zk3.dec.com> (raw)
In-Reply-To: 2l13n1$42l@disun41.epfl.ch

monnier@di.epfl.ch (Stefan Monnier) writes:

>On my alpha here, I noticed that the automounter takes about 4% CPU
>time ("ps aux" dixit). And it actually varies more or less accordingly
>to dbx's cpu usage (always about half as much).

You might explain why you are mentioning dbx and automount in the same
sentence.  The link is not at all obvious, and I've already had a cup
of coffee today.  :-)

>When does automount work ?

There are those who say it doesn't work, (or was that lockd)? :-) :-)
Seriously, I fixed a lot of automount bugs for DEC OSF/1.  Most of the
fixes are in V1.2, some more in V1.3.  Ultrix will see them in 4.4.
Also, I understand you meant "When does automount run?":

> Does it catch every single access to the
>mounted filesystem ?

Do "mount -e".  (-e is a DECism that will list automount's "intercept
points".)  For example:

   alingo 9% mount -e      
   /dev/rz1a on / type ufs (rw)
   /dev/rz1g on /usr type ufs (rw)
   alingo:(pid246) on /usr/qar type nfs (ro, hard, intr, noac, ...
   alingo:(pid246) on /usr/net type nfs (ro, hard, intr, noac, ...
   alingo:(pid246) on /home type nfs (ro, hard, intr, noac, ...

All those mounts for pid 246 are served by a NFS server that is part
of automount.  This is a bizarre concept and takes some time to
understand.  /home is the auto.home indirect map.  If I reference
/home/werme/Mail/inbox/666, automount runs twice, once to handle a
LOOKUP for "werme" and once to handle a READLINK.  Once automount
mounts a remote file system, it makes the intercept point look like a
symbolic link to the remote mount.  I.e.:

alingo 196% ls -l /home/werme
lrwxrwxrwx   1 root     system        25 Mar 02 08:24 /home/werme -> /tmp_mnt/home/werme

So, "Does it catch every single access to the mounted filesystem?"  It
will catch every reference to the intercept point, but if you are reading
or writing a file, it will not be catching those.

If you really, really want to see what automount is doing, and have
exclusive access to your alpha, kill automount (just "kill <pid>") and
restart it with the "-T -T" option.  It will report on stderr all the
NFS traffic it handles and what it does with it.  You will probably be
surprised at how often automount does run.
-- 
Eric (Ric) Werme		| werme@zk3.dec.com
Digital Equipment Corp.		| This space intentionally left blank.


  reply	other threads:[~1994-03-02 13:06 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-03-02  4:12 NFS automounter Stefan Monnier
1994-03-02 13:06 ` Eric Werme USSG [this message]
1994-03-02 15:10   ` Stefan Monnier
1994-03-02 16:52 ` pdxjfp
1994-03-03  9:13   ` Hans Peter Kluender
1994-03-06  0:31     ` Larry Cannell
1994-03-03 17:23 ` Barry Margolin
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox