On 20 Aug 2004, at 15:45, Ara.T.Howard wrote:
i am wrapping any code that will grab a write
lock with an nfs safe lockfile creation to ensure only one process on the
system will even ask for write locks at a time. this, suprisingly, also gives
a massive performance boost as my timeout algorithim seems to be much better
than the one in lockd.
Right, but regardless of what locking you ADD to the system, sqlite is still going to do the lockd NFS locking itself. At least until you provide patches to make NFS locking safe :-)
anyhow, i'm very interested to hear what sort of locking issues you've had -
our system has been working fine for months but it does make me nervous. any
information you could provide regarding issues would be most apprecicated!
NFS locks can get stale if you have network problems. The server loses the client, the lock remains on the server, nobody can lock the file. Everyone using NFS eventually runs into this, but good network setup and good kernel choices can often mitigate it.
Matt.
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email ______________________________________________________________________