taucmdr icon indicating copy to clipboard operation
taucmdr copied to clipboard

lockfile doesn't work on some lustre systems

Open jlinford opened this issue 8 years ago • 2 comments

[TAU] Unable to acquire lock on /lustre/scratch1/turquoise/sameer/taucmdr-120/system/.lock [TAU] due to [Errno 38] Function not implemented

jlinford avatar Sep 06 '17 13:09 jlinford

This may be related to a variety of 'NoneType' object has no attribute errors on knl01.

jlinford avatar Nov 29 '17 13:11 jlinford

To be clear, the lockfile is for atomically updating the project file, correct?

This may be overkill, but this blog post has some interesting ideas: https://renatocunha.com/blog/2015/11/ctypes-mmap-rwlock/

It looks like you can use mmap to share state between processes, even if they aren't launched from the same python script using multiprocessing etc.

The post in question uses ctypes to wrap posix rwlocks. This could be overkill.

Additional potentially helpful info:

  • https://blog.schmichael.com/2011/05/15/sharing-python-data-between-processes-using-mmap/
  • https://stackoverflow.com/questions/1829116/how-to-share-variables-across-scripts-in-python

zbeekman avatar Jan 23 '18 15:01 zbeekman