How To Install dmtcp on CentOS 8

dmtcp is Checkpoint/Restart functionality for Linux processes

Introduction

In this tutorial we learn how to install dmtcp on CentOS 8.

What is dmtcp

DMTCP (Distributed MultiThreaded Checkpointing) is a tool to transparently checkpointing the state of an arbitrary group of applications including multi-threaded and distributed computations. It operates directly on the user binary executable, with no Linux kernel modules or other kernel mods. Among the applications supported by DMTCP are Open MPI, MVAPICH2, MATLAB, R, Python, Perl, and many programming languages and shell scripting languages. It supports both TCP sockets and InfiniBand connections. With the use of TightVNC, it can also checkpoint and restart X-Window applications. The OpenGL library for 3D graphics is supported through a special plugin. This package contains DMTCP binaries.

We can use yum or dnf to install dmtcp on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install dmtcp.

Install dmtcp on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install dmtcp using dnf by running the following command:

sudo dnf -y install dmtcp

Install dmtcp on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install dmtcp using yum by running the following command:

sudo yum -y install dmtcp

How To Uninstall dmtcp on CentOS 8

To uninstall only the dmtcp package we can use the following command:

sudo dnf remove dmtcp

dmtcp Package Contents on CentOS 8

/usr/bin/dmtcp_command
/usr/bin/dmtcp_coordinator
/usr/bin/dmtcp_discover_rm
/usr/bin/dmtcp_launch
/usr/bin/dmtcp_nocheckpoint
/usr/bin/dmtcp_restart
/usr/bin/dmtcp_rm_loclaunch
/usr/bin/dmtcp_srun_helper
/usr/bin/dmtcp_ssh
/usr/bin/dmtcp_sshd
/usr/bin/mtcp_restart
/usr/lib/.build-id
/usr/lib/.build-id/04
/usr/lib/.build-id/04/c8a335f96d15553bf34945fd78c6f9c9c1248f
/usr/lib/.build-id/05
/usr/lib/.build-id/05/4d529723f7bc20df7f1ff41ca93b537188cfd8
/usr/lib/.build-id/0b
/usr/lib/.build-id/0b/b9e50cbee471447a1a6371aa0f13ce0809d5d1
/usr/lib/.build-id/2f
/usr/lib/.build-id/2f/4c3c2647b1a37856861f61087877b58c25ddbb
/usr/lib/.build-id/4d
/usr/lib/.build-id/4d/df3b99d1dee82543be39357fff391b0af219e1
/usr/lib/.build-id/73
/usr/lib/.build-id/73/f67c6461665c78e825abdb66e157913f4434f9
/usr/lib/.build-id/78
/usr/lib/.build-id/78/2b9a2fab17ef09c58e1a1a7568c95e09e9dac9
/usr/lib/.build-id/90
/usr/lib/.build-id/90/6057436a5934ad20a2d330742134108771224f
/usr/lib/.build-id/91
/usr/lib/.build-id/91/21c9baa2168d9759d0f7422571bcc8b9077b44
/usr/lib/.build-id/93
/usr/lib/.build-id/93/bf83cd113273bfcda1ad27c9aeb0d01164b320
/usr/lib/.build-id/94
/usr/lib/.build-id/94/234560fd19142817185d6bae338ed41c7aacfa
/usr/lib/.build-id/94/6a04c025a708fdd8c8d1568d7f55b4640ff870
/usr/lib/.build-id/94/cd3761b389b592a7ff760c89d0efe02c9dec84
/usr/lib/.build-id/99
/usr/lib/.build-id/99/0af5fc1d118e2efca8358e36fba7b4a77f9cac
/usr/lib/.build-id/ad
/usr/lib/.build-id/ad/7a9d712b3b5514a8658f05839af4cb80a5a939
/usr/lib/.build-id/c2
/usr/lib/.build-id/c2/5c5803dc5db1e2d6873199a693bad7cb5781ca
/usr/lib/.build-id/cc
/usr/lib/.build-id/cc/c6569f5de008e6119f172f59c9d074832325d5
/usr/lib/.build-id/d1
/usr/lib/.build-id/d1/dc9a00965f5d0f789240ecda0d1aefb99881ca
/usr/lib/.build-id/db
/usr/lib/.build-id/db/c2ce5141bec07cf95b771f87b3b08cf64b65a1
/usr/lib/.build-id/de
/usr/lib/.build-id/de/623c73c2b94656d2c6c35434c2fdd5a4b78d6c
/usr/lib/.build-id/fe
/usr/lib/.build-id/fe/683143420d6d5891171081bc6cce9ca2234cc9
/usr/lib64/dmtcp
/usr/lib64/dmtcp/libdmtcp.so
/usr/lib64/dmtcp/libdmtcp_alloc.so
/usr/lib64/dmtcp/libdmtcp_batch-queue.so
/usr/lib64/dmtcp/libdmtcp_dl.so
/usr/lib64/dmtcp/libdmtcp_ipc.so
/usr/lib64/dmtcp/libdmtcp_modify-env.so
/usr/lib64/dmtcp/libdmtcp_pathvirt.so
/usr/lib64/dmtcp/libdmtcp_pid.so
/usr/lib64/dmtcp/libdmtcp_svipc.so
/usr/lib64/dmtcp/libdmtcp_timer.so
/usr/lib64/dmtcp/libdmtcp_unique-ckpt.so
/usr/share/doc/dmtcp
/usr/share/doc/dmtcp/AUTHORS
/usr/share/doc/dmtcp/COPYING
/usr/share/doc/dmtcp/NEWS
/usr/share/doc/dmtcp/QUICK-START.md
/usr/share/licenses/dmtcp
/usr/share/licenses/dmtcp/COPYING
/usr/share/man/man1/dmtcp.1.gz
/usr/share/man/man1/dmtcp_command.1.gz
/usr/share/man/man1/dmtcp_coordinator.1.gz
/usr/share/man/man1/dmtcp_discover_rm.1.gz
/usr/share/man/man1/dmtcp_launch.1.gz
/usr/share/man/man1/dmtcp_nocheckpoint.1.gz
/usr/share/man/man1/dmtcp_restart.1.gz
/usr/share/man/man1/dmtcp_rm_loclaunch.1.gz
/usr/share/man/man1/dmtcp_srun_helper.1.gz
/usr/share/man/man1/dmtcp_ssh.1.gz
/usr/share/man/man1/dmtcp_sshd.1.gz
/usr/share/man/man1/mtcp_restart.1.gz

References

Summary

In this tutorial we learn how to install dmtcp on CentOS 8 using yum and dnf.