-
Notifications
You must be signed in to change notification settings - Fork 599
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable CUDA checkpointing with multiple processes
When checkpointing a container, CRIU uses the cgroup path specified by the container runtime (e.g., runc) via the `--freeze-cgroup` option to pause all running processes in the container and obtain a consistent process tree. However, if the container has multiple processes and some of them have CUDA state, we need to "lock" all these processes before freezing the cgroup; otherwise the cuda-checkpoint tool may hang. To address this problem, this patch updates the collect_pstree function to run the CUDA plugin PAUSE_DEVICES hook for all processes in the container cgroup prior to freezing. Signed-off-by: Radostin Stoyanov <[email protected]>
- Loading branch information
Showing
1 changed file
with
65 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters