Re: [Pvfs2-developers] ncache causes shared creat problems

2006-08-28 Thread Phil Carns
Pete Wyckoff wrote: The simul code, test #14, does a shared create: all processes try to do creat(file, 0644) at the same time through the VFS. There is no O_EXCL, so what should happen here is that they all succeed, although under the hood, all but one will probably have to unwind the

Re: [Pvfs2-developers] ncache causes shared creat problems

2006-08-28 Thread Pete Wyckoff
[EMAIL PROTECTED] wrote on Mon, 28 Aug 2006 19:02 +0200: What happens on each iteration? Does the code at some point delete a file with a particular name and then create a new one with the same name? Each iter (of which there are 200, but it fails on #2 or 3) does: task0 rm file

Re: [Pvfs2-developers] ncache causes shared creat problems

2006-08-28 Thread Robert Latham
On Mon, Aug 28, 2006 at 04:28:32PM -0400, Pete Wyckoff wrote: So yeah, the file gets deleted by just one task. Then they all simultaneously try to create it again. That's also what happens when noncontig_coll2 was failing. We did ok until a different process tried to open the file that

Re: [Pvfs2-developers] ncache causes shared creat problems

2006-08-28 Thread Phil Carns
I think so. When one node deletes a file, it does not send out messages to invalidate the cache in all of the other clients, so those still have a cached (no longer valid) entry. If those other clients then lookup the file it will succeed (as if another client had won the race to create it),