Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* st_atime not being updated over NFS mount
@ 1996-09-12  4:00 Gary Wong
  1996-09-20  4:00 ` Casper H.S. Dik - Network Security Engineer
  0 siblings, 1 reply; 2+ messages in thread
From: Gary Wong @ 1996-09-12  4:00 UTC (permalink / raw)



Hiya!

A user has complained to me today that when he reads files on a particular
(NFS-mounted) filesystem, the last access (ls -lu) time is not updated.  I
had a look, and found that while reading the file on the server side had
the expected effect, it is sometimes possible to read it on the client
without changing the st_atime on the file.  (Sometimes it would be
changed; if I read the file several times in a row over an interval of
several minutes, the first read would update the timestamp, but subsequent
ones wouldn't.  Is there some caching effect getting in the way here?)

Both the server and client machines in question are running Digital UNIX
4.0, and the filesystem is an advfs.  Has anybody got any ideas what's
causing this problem, or what I might try to fix it?

Thanks very much,
Gary.
-- 
  Gary Wong, Computer Science Department, University of Auckland, New Zealand
       gary@cs.auckland.ac.nz        http://www.cs.auckland.ac.nz/~gary/



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

* Re: st_atime not being updated over NFS mount
  1996-09-12  4:00 st_atime not being updated over NFS mount Gary Wong
@ 1996-09-20  4:00 ` Casper H.S. Dik - Network Security Engineer
  0 siblings, 0 replies; 2+ messages in thread
From: Casper H.S. Dik - Network Security Engineer @ 1996-09-20  4:00 UTC (permalink / raw)



Gary Wong <gary@cs20.cs.auckland.ac.nz> writes:

>changed; if I read the file several times in a row over an interval of
>several minutes, the first read would update the timestamp, but subsequent
>ones wouldn't.  Is there some caching effect getting in the way here?)

>Both the server and client machines in question are running Digital UNIX
>4.0, and the filesystem is an advfs.  Has anybody got any ideas what's
>causing this problem, or what I might try to fix it?


The cause is client side caching, since most if not all NFS clients leave
atime updates to the server, client side reads satisfied from the client's
cache will not cause atime updates on the server as there are no
server side reads.

You can get the result you want by disabling client side caching, but I
think you'll agree that the cure is worse than the ailment.

Casper
--
Expressed in this posting are my opinions.  They are in no way related
to opinions held by my employer, Sun Microsystems.
Unsolicited e-mail advertisements sent to my address will be proofread
for a $250 flat fee.



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

end of thread, other threads:[~1996-09-20  4:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-09-12  4:00 st_atime not being updated over NFS mount Gary Wong
1996-09-20  4:00 ` Casper H.S. Dik - Network Security Engineer

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