Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* OSF1 V4.0 automounter weirdness
@ 1996-10-28  5:00 Chris Ulrich
  1996-10-31  5:00 ` Chris Ulrich
  0 siblings, 1 reply; 4+ messages in thread
From: Chris Ulrich @ 1996-10-28  5:00 UTC (permalink / raw)



  We have an alpha 3000/500 in use as a student email machine.
It has on the order of 8000 accounts, most inactive.  It is
also running C2 security stuff.  It also has lsm running on 
the file systems which store the home directories.
  Unloaded, it was a pretty perky machine, however we have been
receiving complaints of it being pokey.  Our research into the
complaints was that pine was taking too long to load.
  Indeed, sometimes it takes 30 seconds for pine to load.  The
mail files are stored in people's home directories.  Sometimes
it would load instantly (I have six messages each of which is 
very small) sometimes it would take a really long time.
  At first, I could not figure out why it took such a wide range
of times to load.  Then, I discovered that by running a simple
shell script, I could reliably cause it to take 30 seconds to a
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
tried running other programs which take up as much CPU as
possible, none of them affect the load times of pine in the same
way as the automounter/this script.
  What's the scoop?
tia,
chris
insom@ac.ucr.edu		Riverside - where they come for 
insom@math.ucr.edu		the waters and stay for the air



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: OSF1 V4.0 automounter weirdness
  1996-10-28  5:00 OSF1 V4.0 automounter weirdness Chris Ulrich
@ 1996-10-31  5:00 ` Chris Ulrich
  1996-11-01  5:00   ` Birger Wathne
  1996-11-01  5:00   ` Eric Werme
  0 siblings, 2 replies; 4+ messages in thread
From: Chris Ulrich @ 1996-10-31  5:00 UTC (permalink / raw)



In article <553o93$sqe@charity.ucr.edu>,
Chris Ulrich <insom@math.ucr.edu> wrote:
]  We have an alpha 3000/500 in use as a student email machine.
]It has on the order of 8000 accounts, most inactive.  It is
]also running C2 security stuff.  It also has lsm running on 
]the file systems which store the home directories.
]  Unloaded, it was a pretty perky machine, however we have been
]receiving complaints of it being pokey.  Our research into the
]complaints was that pine was taking too long to load.
]  Indeed, sometimes it takes 30 seconds for pine to load.  The
]mail files are stored in people's home directories.  Sometimes
]it would load instantly (I have six messages each of which is 
]very small) sometimes it would take a really long time.
]  At first, I could not figure out why it took such a wide range
]of times to load.  Then, I discovered that by running a simple
]shell script, I could reliably cause it to take 30 seconds to a
]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
]tried running other programs which take up as much CPU as
]possible, none of them affect the load times of pine in the same
]way as the automounter/this script.
]  What's the scoop?
]tia,
]chris
]insom@ac.ucr.edu		Riverside - where they come for 
]insom@math.ucr.edu		the waters and stay for the air

  Hmm, I have heard that it is bad form to follow up one's own
post.  I talk to myself all the time, and nobody thinks the worse
of me...

  Anyhow, the problem with the machine being slow for performing
some tasks, like running pine, went away as soon as we turned off
the automounter.  

  Can anyone explain why the automounter would impact ls -l /home?
Is it because there are 8000 entries in the auto.home map?  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?

  There must be larger osf1 machines out there than ours, what
did you do with the automounter? (I crossposted the followup to
comp.unix.large.  Hope you don't mind out  there in big-world)
chris
--
insom@ac.ucr.edu		Riverside - where they come for 
insom@math.ucr.edu		the waters and stay for the air



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: OSF1 V4.0 automounter weirdness
  1996-10-31  5:00 ` Chris Ulrich
  1996-11-01  5:00   ` Birger Wathne
@ 1996-11-01  5:00   ` Eric Werme
  1 sibling, 0 replies; 4+ messages in thread
From: Eric Werme @ 1996-11-01  5:00 UTC (permalink / raw)



insom@math.ucr.edu (Chris Ulrich) writes:

>In article <553o93$sqe@charity.ucr.edu>,
>Chris Ulrich <insom@math.ucr.edu> 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   <>
  <>  <werme@zk3.dec.com>  <>     visit http://www.HarryBrowne96.org/      <>



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: OSF1 V4.0 automounter weirdness
  1996-10-31  5:00 ` Chris Ulrich
@ 1996-11-01  5:00   ` Birger Wathne
  1996-11-01  5:00   ` Eric Werme
  1 sibling, 0 replies; 4+ messages in thread
From: Birger Wathne @ 1996-11-01  5:00 UTC (permalink / raw)
  To: Chris Ulrich


Hmmm. You *are* using indirect maps aren't you?

ls /home only lists the home directories currently
accessed?

Or are you using direct maps?

Each entry in a direct map starts one virtual nfs server.
But each indirect map uses one virtual nfs server for
all the entries within the map.

Birger



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1996-11-01  5:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-10-28  5:00 OSF1 V4.0 automounter weirdness Chris Ulrich
1996-10-31  5:00 ` Chris Ulrich
1996-11-01  5:00   ` Birger Wathne
1996-11-01  5:00   ` Eric Werme

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