From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fe50f,87a6bf60c4b7a678 X-Google-Attributes: gidfe50f,public X-Google-Thread: fee84,87a6bf60c4b7a678 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-03-02 05:06:02 PST Xref: gmd.de comp.unix.osf.osf1:2392 comp.protocols.nfs:5726 Path: gmd.de!xlink.net!sol.ctr.columbia.edu!howland.reston.ans.net!usc!elroy.jpl.nasa.gov!decwrl!crl.dec.com!crl.dec.com!nntpd.lkg.dec.com!alingo.zk3.dec.com!werme From: werme@alingo.uucp (Eric Werme USSG) Newsgroups: comp.unix.osf.osf1,comp.protocols.nfs Subject: Re: NFS automounter Date: 2 Mar 94 13:06:02 GMT Organization: Digital Equipment Corporation Message-ID: References: <2l13n1$42l@disun41.epfl.ch> Reply-To: werme@zk3.dec.com NNTP-Posting-Host: alingo.zk3.dec.com 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 ") 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.