public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* NFS caching issues on 2.4
@ 2001-06-06 20:48 Phil Oester
  2001-06-06 22:55 ` Trond Myklebust
  0 siblings, 1 reply; 2+ messages in thread
From: Phil Oester @ 2001-06-06 20:48 UTC (permalink / raw)
  To: linux-kernel

I've stumbled upon a wierd NFS caching issue on 2.4 which does not seem to
exist in 2.2.  Our www docroot is NFS mounted on a NetApp 760.  We have a
cron job which make changes to the index.html every 5 minutes.

Recently, we upgraded all the web servers to 2.4 and noticed that there were
big delays in seeing these 5 minute updates.  Yet, an ls -l in the nfs
directory on each of the servers clearly shows the new timestamp.  However,
a cat of the file shows that it is the old version (sometimes up to 1 hour
old).  I was using NFSv3, so decided to try NFSv2, but got the same results.

I reverted to 2.2.19 on the boxes (which are RedHat 7.1 incidentally), and
these problems went away.

Any ideas why this is happening?

-Phil Oester


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

* Re: NFS caching issues on 2.4
  2001-06-06 20:48 NFS caching issues on 2.4 Phil Oester
@ 2001-06-06 22:55 ` Trond Myklebust
  0 siblings, 0 replies; 2+ messages in thread
From: Trond Myklebust @ 2001-06-06 22:55 UTC (permalink / raw)
  To: Phil Oester; +Cc: linux-kernel

>>>>> " " == Phil Oester <phil@theoesters.com> writes:

     > I've stumbled upon a wierd NFS caching issue on 2.4 which does
     > not seem to exist in 2.2.  Our www docroot is NFS mounted on a
     > NetApp 760.  We have a cron job which make changes to the
     > index.html every 5 minutes.

     > Recently, we upgraded all the web servers to 2.4 and noticed
     > that there were big delays in seeing these 5 minute updates.
     > Yet, an ls -l in the nfs directory on each of the servers
     > clearly shows the new timestamp.  However, a cat of the file
     > shows that it is the old version (sometimes up to 1 hour old).
     > I was using NFSv3, so decided to try NFSv2, but got the same
     > results.

     > I reverted to 2.2.19 on the boxes (which are RedHat 7.1
     > incidentally), and these problems went away.

     > Any ideas why this is happening?

The main suspect would be if you're mmapping the file while the cron
job updates your file on the server. This would means that the cache
invalidation breaks (see all the conditions in
invalidate_inode_pages()).

Cheers,
  Trond

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

end of thread, other threads:[~2001-06-06 22:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-06-06 20:48 NFS caching issues on 2.4 Phil Oester
2001-06-06 22:55 ` Trond Myklebust

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