checkpoint and restore
checkpoint
- /proc file system (general place where criu takes all the information it needs) include
- files descriptors info
- pipes parameteres
- memory maps
checkpoint stage:
the process dumper (aka dumper)
- collect process tree and freeze it
- collect tasks’ resources and dump them
- cleanup
restore
restore procedure (aka restorer): morph itself into the task it restores with 4 steps:
- resolve shared resources
- fork the process tree
- restore basic tasks resources
- switch to restorer context, restore the rest and continue