Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |
condor:submit:checkpointing [2011/08/05 15:57] – garrettheath4 | condor:submit:checkpointing [2011/08/05 16:02] (current) – [Save a Checkpoint without Exiting] garrettheath4 |
---|
To make your program save a checkpoint but not exit, run your ''condor_compile''d program with checkpointing enabled. With your program running in one terminal window, open up a separate terminal window and run the ''killall'' command with the ''-s USR2'' argument to send your program the ''SIGUSR2'' signal, like so: | To make your program save a checkpoint but not exit, run your ''condor_compile''d program with checkpointing enabled. With your program running in one terminal window, open up a separate terminal window and run the ''killall'' command with the ''-s USR2'' argument to send your program the ''SIGUSR2'' signal, like so: |
<code bash>killall -s USR2 HellowOrld</code> | <code bash>killall -s USR2 HellowOrld</code> |
| Your program will receive the command and create a checkpoint but will continue running. That way, if the program is killed later and not given the chance to make a new checkpoint, you can start the program from where it left off at the checkpoint instead of completely starting over. |
| |
====Start from Checkpoint==== | ====Start from Checkpoint==== |