Jeff Squyres a écrit :
>On Jun 13, 2005, at 8:23 AM, Pierre Valiron wrote:
>
>
>
>>>>Of course there is a workaround using
>>>>
>>>> export LAM_MPI_SESSION_PREFIX="/some/permanent/path"
>>>> export LAM_MPI_SESSION_SUFFIX="some_unique_name"
>>>>
>>>>
>>>I'm a little confused -- this should suffer exactly the same problem
>>>as you described above. The mechanism for where LAM's session
>>>directory is located/found does not affect the takedown time of
>>>lamhalt.
>>>
>>>
>>I don't agree.
>>
>>If the daemons are attached to a volatile directory, lamhalt comes into
>>trouble when the directory is destroyed. If the deamons are attached to
>>a permanent one, then lamhalt gets all the time he needs to kill the
>>lam
>>universe and remove the corresponding files.
>>
>>
>
>Unfortunately, I'm still confused. :-)
>
>Are you saying that you're removing $TMPDIR before running lamhalt? Or
>perhaps removing it immediately after lamhalt completes?
>
Yes, I remove $TMPDIR just *after* lamhalt completes. Before would be
just silly of course...
I have tried some sleep values, unfortunately nothing seems very
reliable because the machine may be very busy with other calculations,
especially if large I/O are underway...
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.
Best.
Pierre.
>If so, then
>yes, I would agree -- lamhalt will have problems because the socket
>that it's looking for will no longer exist. In either case, a "sleep
>3" after the lamhalt command should fix the problem.
>
>Did you mean something else?
>
>
>
--
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
_/ _/_/
|