mailbox
Sjoerd Mullender
sjoerd at cwi.nl
Tue Sep 25 19:15:48 AEST 1990
eva at socrates.esd.sgi.com (Eva Manolis) writes:
>fam will NEVER do an 'ls -l' of a directory.
>IF ( and only if) the directory is NFS mounted ( which seems to be
>the case for Robert van Liere ) 'fam' will 'stat' the directory to
>track changes. If the files reside on a local file system, there is
>no polling ( no 'stats' ). fam works with events generated when the filesystem
>is changed, so it's as cheap and low overhead as it can be.
>For NFS directories and files, the stat's are every 3 seconds.
Robert and I found together that a system on which mailbox was running
produced many requests to the mail server. I just did a small test to see
what really happens.
I have a NFS directory with 2 symbolic links in it. I told mailbox to
check one of these links. My system produced the following sequence of
NFS requests with 3 second intervals:
(-> to server, <- from server)
(nothing happend for 3 seconds)
-> read symbolic link
<- ok (path=/usr/spool/mail/sjoerd) the link I'm checking
-> get attributes
<- ok
-> read dir why read the directory?
<- ok (4 entries)
-> read symbolic link
<- ok (path=/usr/spool/mail/sjoerd) why again?
-> get attributes
<- ok
-> read symbolic link
<- ok (path=/usr/spool/mail/robertl) why? I'm not checking
-> get attributes this file
<- ok
(nothing happens for 3 seconds)
I can understand the first two requests with their answers, but why all the
other requests?
--
Sjoerd Mullender Center for Mathematics and Computer Science
sjoerd at cwi.nl Amsterdam, Netherlands
More information about the Comp.sys.sgi
mailing list