[Paper Review] User-Level Socket-Based Checkpointing for Distributed and Parallel Computation
DMTCP is a user-level, socket-based checkpointing system for Linux that enables checkpointing of distributed and parallel applications—including dynamically created threads, forked processes, and remotely spawned processes—without kernel or application code modifications. It supports process migration across homogeneous hosts by copying checkpoint files, offering a lightweight, portable solution for fault tolerance in high-performance computing environments.
We present a preliminary description of a user-level checkpointing package, DMTCP, for Linux. The socket-based approach presents a novel method for checkpointing distributed processes. This includes checkpointing of any dynamically created POSIX threads and forked child processes. It also includes checkpointing of remotely spawned processes via ssh and other mechanisms. As with all user-level checkpointing, no modification of the kernel is needed, and the application code is not modified. The package also checkpoints signal handlers, ordinary file descriptors, socket descriptors, and certain other types of file descriptors. Each checkpointed process has an associated checkpoint file. Hence, process migration, and even migration of an entire computation to a new cluster, are achieved through the simple expedient of copying checkpoint files to a new host. However, process migration adds the additional restriction that the source and destination host must be homogeneous. 1
Motivation & Objective
- To provide a transparent, user-level checkpointing solution for distributed and parallel applications on Linux.
- To enable checkpointing of dynamically created POSIX threads and forked child processes without modifying application code.
- To support remote process checkpointing via SSH and similar mechanisms.
- To facilitate process migration between homogeneous hosts using checkpoint file transfer.
- To ensure consistency of critical descriptors such as sockets, file descriptors, and signal handlers during checkpointing.
Proposed method
- The system uses a socket-based communication mechanism to coordinate checkpointing across distributed processes.
- It operates entirely in user space, requiring no kernel modifications or changes to application source code.
- Checkpoint files are created per process, storing all relevant state including thread contexts, file descriptors, and socket states.
- Remote processes are checkpointed via secure shell (ssh) or similar remote execution mechanisms.
- Signal handlers and various file descriptor types are preserved during the checkpointing process.
- Process migration is achieved by copying checkpoint files to a new host and restarting the processes there.
Experimental results
Research questions
- RQ1How can user-level checkpointing be effectively extended to distributed and parallel applications with dynamic process creation?
- RQ2What mechanisms enable reliable checkpointing of remote processes spawned via SSH or similar tools?
- RQ3How can critical runtime state such as sockets and file descriptors be consistently captured and restored?
- RQ4What constraints limit process migration across heterogeneous or heterogeneous computing environments?
- RQ5What is the performance and reliability overhead of user-level checkpointing in production HPC workloads?
Key findings
- DMTCP successfully enables checkpointing of distributed applications without requiring kernel or application code modifications.
- The system supports checkpointing of dynamically created POSIX threads and forked child processes within the same application context.
- Remote processes can be checkpointed using standard remote execution tools like SSH, extending checkpointing to cluster-wide computations.
- Process migration is feasible between homogeneous hosts by transferring checkpoint files, enabling fault tolerance and load balancing.
- The approach preserves critical runtime state, including socket descriptors, file descriptors, and signal handlers, ensuring correct state restoration.
- The solution demonstrates practical feasibility for fault tolerance in high-performance computing environments through transparent, user-level operation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.