CrayLabs / SmartSim

SmartSim Infrastructure Library.
BSD 2-Clause "Simplified" License
219 stars 36 forks source link

`smart teardown --dragon` does not remove shared memory segments #612

Open al-rigazzi opened 2 weeks ago

al-rigazzi commented 2 weeks ago

Description

The current smart teardown --dragon does not clean up the /dev/shmem segments.

How to reproduce

Interrupt a running Dragon-based example which reserved shared memory segments and try to run smart teardown --dragon. The segments will not be cleared.

One possible explanation is that the teardown command is killed by dragon-cleanup before it gets to the shmem-related section of the dragon-cleanup script itself.

Expected behavior

The shared memory segments should be cleaned up.

System

ankona commented 1 week ago

Added PR to dragon repo fixing the early termination of any python processes tied to dragon-cleanup