On Mon, 13 Jun 2005, Jeff Squyres wrote:
> > Thus I suggest to write some specific caveat in the man page and doc
> > that lamhalt is asynchronous and thus that the sockets should not be
> > deleted by the user but rather by lam itself, and thus to rely on the
> > LAM_MPI_SESSION_SUFFIX to generate several unrelated LAM universes on a
> > permanent LAM_MPI_SESSION_PREFIX.
>
> What might be a better workaround for you would be, instead of sleep,
> test when the file "lam-io-socket" disappears from the LAM session
> directory. This is the last file that is removed before the directory
> itself is deleted (and the directory will only be deleted if it is
> empty). Normally, there will never be any other files in the session
> directory and the whole directory disappears, but looking for the
> disappearance of that last file will definitely cover you in all cases.
>
> Would that work?
Probably yes, but this is not elegant nor easy to implement in a script...
And the machine would stay inactive until these files get deleted, which
is bad if many short LAM jobs are to be processed.
I have already given the answer: using LAM_MPI_SESSION_SUFFIX to label a
unique lam universe lying on top of a permanent filesystel (such as /tmp).
In this case the files are deleted asynchronously by lamhalt.
And nothing prevents starting immediately another lam universe unsing a
new unique LAM_MPI_SESSION_SUFFIX.
The only point I am insisting is to put these considerations somewhere in
the doc, because I have already wasted a whole day to understand this
strange behaviour and it would be nice if I could save the same horror
story to another lam user !
Pierre.
--
Soutenez le mouvement SAUVONS LA RECHERCHE :
http://recherche-en-danger.apinc.org/
_/_/_/_/ _/ _/ Dr. Pierre VALIRON
_/ _/ _/ _/ Laboratoire d'Astrophysique
_/ _/ _/ _/ Observatoire de Grenoble / UJF
_/_/_/_/ _/ _/ BP 53 F-38041 Grenoble Cedex 9 (France)
_/ _/ _/ http://www-laog.obs.ujf-grenoble.fr
_/ _/ _/ mail: Pierre.Valiron_at_[hidden]
_/ _/ _/ Phone: +33 4 7651 4787 Fax: +33 4 7644 8821
_/ _/_/
|