From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb0d8,dced30c41f67f6a X-Google-Attributes: gidfb0d8,public X-Google-Thread: 1164f8,bdaf2be8563d699f X-Google-Attributes: gid1164f8,public From: werme@alingo.zk3.dec.com (Eric Werme) Subject: Re: OSF1 V4.0 automounter weirdness Date: 1996/11/01 Message-ID: #1/1 X-Deja-AN: 193548715 references: <553o93$sqe@charity.ucr.edu> <55asco$s22@charity.ucr.edu> organization: Digital Equipment Corporation reply-to: werme@zk3.dec.com newsgroups: comp.sys.dec,comp.unix.large insom@math.ucr.edu (Chris Ulrich) writes: >In article <553o93$sqe@charity.ucr.edu>, >Chris Ulrich wrote: >]minute. This is the script: >]while :; do ls -l /home; done; >] This takes about a minute to complete, and while it is running >]pine takes forever to start. While running top, I noticed that the >]automounter is using up 90% of the CPU while this script is >]running. Why is the automounter affected by this script? I have Well, part of automount is a user level NFS server that happens to be serving /home. That ls -l sends several NFS requests to read the directory (which is really a data structure within automount), do lookups on all the files, and follow the symbolic links (created from the same data structure). If you're running V4.0 and have the packet filter configured, you can watch the activity with tcpdump -s300 -i lo0. > Can anyone explain why the automounter would impact ls -l /home? >Is it because there are 8000 entries in the auto.home map? The size of the map shouldn't be an issue. Having a lot of mounted home directories would be. We >would rather have an automounter, especially in a situation like >this machine. I suggested having two entries in the map -- student >and staff and then have all the student's home directories in >/home/student/name and so on. Probably this will work quickly. >Does anyone know for certain? You'd be better off having two maps and two automounts. Make one handle /home/student and the other /home/staff. That means some mucking about in /sbin/init.d/nfs or a separate script for starting extra automounts. > There must be larger osf1 machines out there than ours, what >did you do with the automounter? Our production machines run 5 or 6 automounts. One for auto.home, one for -hosts, others for various collections of NFS-served stuff. -- <> Eric (Ric) Werme <> Why Government Doesn't Work! For details <> <> <> visit http://www.HarryBrowne96.org/ <>