Skip to content

Conversation

@jerrymannil
Copy link
Contributor

  • Use Popen.terminate() to stop the child processes gracefully; Kill them if terminate doesn't work

  • The Popen.kill() command cause the training processes to end abruptly. This may cause the child processes to become zombies without communicating properly to the parent process about the kill signal. So the ssh session continue to wait for signals from the child processes, causing it to not return back to the pdsh command

Fixes microsoft#1995

@jerrymannil
Copy link
Contributor Author

@jeffra can you look at this ?

@jerrymannil
Copy link
Contributor Author

@jeffra @tjruwase Can one of you help with merging ?

* Use Popen.terminate() to stop the child processes gracefully; Kill them if terminate doesn't work

* The Popen.kill() command cause the training processes to end abruptly. This may cause the child processes to become zombies without communicating properly to the parent process about the kill signal. So the ssh session continue to wait for signals from the child processes, causing it to not return back to the pdsh command

Fixes microsoft#1995
@jerrymannil
Copy link
Contributor Author

@jeffra @tjruwase Can one of you help with merging ?

@tjruwase
Copy link
Contributor

@jerrymannil, taking a look. Apologies for the delay.

Copy link
Collaborator

@jeffra jeffra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @jerrymannil , so sorry for the delay.

@jeffra jeffra merged commit 66d29b0 into deepspeedai:master Jul 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Not exiting gracefully on failures from training script for multi-node runs

3 participants