Skip to content

OpenVZ kernel based checkpointing/restart (v2)

Andrey Mirkin containers lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 69 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10Introduce trivial sys_checkpoint and sys_restore system callsMakefile arch/x86/kernel/syscall_table_32.S checkpoint/Makefile +2 more+44 -10 replies
2/10Make checkpoint/restart functionality modularcheckpoint/Kconfig checkpoint/Makefile checkpoint/checkpoint.h +3 more+107 -24 replies
3/10Introduce context structure needed during checkpointing/restartcheckpoint/checkpoint.h checkpoint/cpt_image.h checkpoint/sys.c+225 -33 replies
4/10Introduce container dump functioncheckpoint/Makefile checkpoint/checkpoint.c checkpoint/checkpoint.h +2 more+87 -20 replies
5/10Introduce function to dump processcheckpoint/Makefile checkpoint/checkpoint.c checkpoint/checkpoint.h +2 more+362 -27 replies
6/10Introduce functions to dump mmarch/x86/mm/hugetlbpage.c checkpoint/Makefile checkpoint/checkpoint.h +4 more+504 -511 replies
7/10Introduce function for restarting a containercheckpoint/Makefile checkpoint/checkpoint.h checkpoint/restart.c +1 more+90 -21 reply
8/10Introduce functions to restart a processarch/x86/kernel/entry_32.S arch/x86/kernel/process_32.c checkpoint/Makefile +4 more+307 -241 replies
9/10Introduce functions to restore mmcheckpoint/Makefile checkpoint/checkpoint.h checkpoint/cpt_image.h +4 more+332 -21 reply
10/10Add support for multiple processescheckpoint/cpt_image.h checkpoint/cpt_process.c checkpoint/rst_process.c+76 -354 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/10] OpenVZ kernel based checkpointing/restart (v2)

These patchset introduces kernel based checkpointing/restart as it is implemented in OpenVZ project. This version (v2) supports multiple processes with simple private memory and open files (regular files).

Todo:
- Create processes with the same PID during restart
- Add support for x86-64
- Add support for shared objects

Changelog:

18 Oct 2008 (v2):
- Add support for multiple processes
- Cleanup and bug fixes

--

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.