All of lore.kernel.org
 help / color / mirror / Atom feed
From: Frank van Maarseveen <frankvm@frankvm.com>
To: Stefan Palme <kleiner@hora-obscura.de>
Cc: Linux NFS mailing list <nfs@lists.sourceforge.net>
Subject: Re: disabling caching
Date: Fri, 14 Jul 2006 11:26:12 +0200	[thread overview]
Message-ID: <20060714092612.GA11555@janus> (raw)
In-Reply-To: <1152864752.28625.30.camel@devel.office.ancoso-development.de>

On Fri, Jul 14, 2006 at 10:12:32AM +0200, Stefan Palme wrote:
> 
> After a few seconds, the open() call on the second box succeeds.
> So I guess that caching is the reason for the second open()-call
> to fail.

You might want to try (1) and/or ((2) or (3)) on the NFS client:

(1)	On the NFS client, put this before the open():

		close(open("whatever", O_WRONLY|O_CREAT, 0666));
		unlink("whatever");

(2)	Try the "noac" nfs mount option, it'll cost performance though.

(3)	Another solution might be to use the patch at www.frankvm.com/nfs-noac
	to selectively disable attribute caching (see the README). It's a trick
	I use for some distributed work.


-- 
Frank


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

  reply	other threads:[~2006-07-14  9:26 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-14  8:12 disabling caching Stefan Palme
2006-07-14  9:26 ` Frank van Maarseveen [this message]
2006-07-14  9:44   ` Stefan Palme
2006-07-14 12:17     ` Stefan Palme
2006-07-14 12:19       ` Stefan Palme
     [not found]         ` <76bd70e30607140615x606fb651r61d09d636147336b@mail.gmail.com>
2006-07-14 15:13           ` Stefan Palme
2006-07-14 15:27             ` Daniel Forrest
2006-07-14 15:34               ` Stefan Palme
2006-07-14 16:01                 ` Daniel Forrest

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060714092612.GA11555@janus \
    --to=frankvm@frankvm.com \
    --cc=kleiner@hora-obscura.de \
    --cc=nfs@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.