Hi Ken, Looks like we are running 1.5: $ ./mpich2version MPICH2 Version: 1.5 I guess I should update the software to the 3.1 series to see how this behavior has changed. Thanks, Mike On 5/11/15 10:19 AM, "Kenneth Raffenetti" <[email protected]> wrote:
Which version of Hydra is this? There was a bug fix that should have improved child process cleanup in the 3.1 series.
Ken
On 05/11/2015 12:04 PM, Cayanan, Michael D (398G) wrote:
Hi,
I'm running the mpiexec.hydra command within a script and there are cases where I need to kill this process.
Our application is designed to issue a "pkill -P <process id>" command, where the "process id" is the id of the script. Nominally, the pkill command is designed to kill the parent and all of its children. However, in this case, it turns out that the script and the parent mpiexec.hydra processes are killed, but the children processes that are spawned by the mpiexec.hydra processes are left running. This is because all of those children are parents of the mpiexec.hydra process.
Example:
Process 1: <script command to launch the mpiexec.hydra command> Process 2 (Parent 1): mpiexec.hydra command Process 3 (Parent 2): Child mpiexec.hydra process Process 4 (Parent 2): Child mpiexec.hydra process Process 5 (Parent 2): Child mpiexec.hydra process
%> pkill -P 1
Processes 1 and 2 are killed, but Processes 3, 4, and 5 are left running.
I've done some online research and it looks like there is a utility called "mpicleanup". Has anybody used this tool and is it intended to kill an mpiexec.hydra process and all its children in a single command? If not, what is the best way to kill the mpiexec.hydra process?
Thanks in advance for your help, Mike
_______________________________________________ discuss mailing list [email protected] To manage subscription options or unsubscribe: https://lists.mpich.org/mailman/listinfo/discuss
_______________________________________________ discuss mailing list [email protected] To manage subscription options or unsubscribe: https://lists.mpich.org/mailman/listinfo/discuss
_______________________________________________ discuss mailing list [email protected] To manage subscription options or unsubscribe: https://lists.mpich.org/mailman/listinfo/discuss