Networking Forums

Networking Forums > Computer Networking > Linux Networking > Disable NFS Client Caching

Reply
Thread Tools Display Modes

Disable NFS Client Caching

 
 
william.obrien@clearpace.com
Guest
Posts: n/a

 
      06-02-2008, 12:03 PM
Hi.

We have an issue with some apparent caching going on in nfs clients
supplied with SLES 9.1 and RedHat 5. We use nfs to manage the a queue
of tasks in a distributed environment thus

ServerA ServerB
\ /
\ /
/remote/drive
|_ pending
|_ processing
|_ processed

ServerA and ServerB look for files in the pending directory, the
content of which describe the task to perform. If a file is found, the
server which found it will move it to the processing directory and
start working, once complete, the task will be moved to the processed
directory.

The problem is that ServerA picks up the task and moves it into
processing and sometime after (about 1/10 second in recent testing),
ServerB scans the pending directory and sees the task which has been
processed by ServerB. It tries to move the file to the processing
directory before commencing with the task and this move fails which
makes me think it does not go back to the nfs server to stat the file,
only to perform move (and presumably to read the contents).

I have mounted the file system with the -noac option. I have also set
up the export with no_wdelay option. Is there anything I can do to
ensure I do not get any stale data. We currently try to refresh the
directory by doing a directory scan, but this does not appear to be
completely effective.

Unfortunately this is a much simplified example and it would not be
straightforward to replace this file based queue with a sockets
equivalent.

Many Thanks In Advance,
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
howto disable profile caching Erik Lukac Windows Networking 4 03-24-2007 01:18 PM
Disable Write Caching, Opportunistic Locking on NetConnections in W2K3 Rick Cabral Windows Networking 1 01-14-2004 04:51 PM
Recovering Offline Files/Client Side Caching (CSC) Denver Windows Networking 0 12-20-2003 11:53 PM
disable write behind caching it will not stay on disabled on rebooting SteveJ Windows Networking 0 11-02-2003 08:14 AM
disable write behind caching it will not stay on disabled on rebooting Windows Networking 0 11-02-2003 08:13 AM



1 2 3 4 5 6 7 8 9 10 11