Skip to content

OpenVZ kernel based checkpointing/restart

Andrey Mirkin containers lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 105 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9Introduce trivial sys_checkpoint and sys_restore system callsMakefile arch/x86/kernel/syscall_table_32.S cpt/Makefile +2 more+44 -15 replies
2/9Make checkpoint/restart functionality modularcpt/Kconfig cpt/Makefile cpt/cpt.h +3 more+107 -24 replies
3/9Introduce context structure needed during checkpointing/restartcpt/cpt.h cpt/cpt_image.h cpt/sys.c+224 -39 replies
4/9Introduce container dump functioncpt/Makefile cpt/checkpoint.c cpt/cpt.h +2 more+82 -23 replies
5/9Introduce function to dump processcpt/Makefile cpt/checkpoint.c cpt/cpt.h +2 more+362 -20 replies
6/9Introduce functions to dump mmarch/x86/mm/hugetlbpage.c cpt/Makefile cpt/cpt.h +4 more+501 -52 replies
7/9Introduce function for restarting a containercpt/Makefile cpt/cpt.h cpt/restart.c +1 more+90 -20 replies
8/9Introduce functions to restart a processarch/x86/kernel/entry_32.S arch/x86/kernel/process_32.c cpt/Makefile +4 more+307 -24 replies
9/9Introduce functions to restore mmcpt/Makefile cpt/cpt.h cpt/cpt_image.h +4 more+332 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/9] OpenVZ kernel based checkpointing/restart

This patchset introduces kernel based checkpointing/restart as it is implemented in OpenVZ project. This patchset has limited functionality and are able to checkpoint/restart only single process. Recently Oren Laaden sent another kernel based implementation of checkpoint/restart. The main differences between this patchset and Oren's patchset are:

* In this patchset checkpointing initiated not from the process (right now we do not have a container, only namespaces), Oren's patchset performs checkpointing from the process context.

* Restart in this patchset is initiated from process, which restarts a new process (in new namespaces) with saved state. Oren's patchset uses the same process from which restart was initiated and restore saved state over it.

* Checkpoint/restart functionality in this patchset is implemented as a kernel module

As checkpointing is initiated not from the process which state should be saved we should freeze a process before saving its state. Right now Container Freezer from Matt Helsley can be used for this.

This patchset introduce only a concept how kernel based checkpointing/restart can be implemented and are able to checkpoint/restart only a single process with simple VMAs.

I've tried to split my patchset in small patches to make review more easier.