World Library  
Flag as Inappropriate
Email this Article


Article Id: WHEBN0036522251
Reproduction Date:

Title: Criu  
Author: World Heritage Encyclopedia
Language: English
Subject: Linux kernel, Evdev, Kernel same-page merging, Debugfs, Mm tree
Publisher: World Heritage Encyclopedia


Developer(s) OpenVZ Team
Written in C and Assembler
Operating system Linux
Type Application checkpointing
License GNU GPL v.2

Checkpoint/Restore In Userspace, or CRIU, is a software tool for the Linux operating system. Using this tool, it is possible to freeze a running application (or part of it) and checkpoint it to persistent storage as a collection of files. One can then use the files to restore and run the application from the point it was frozen at. The distinctive feature of the CRIU project is that it is mainly implemented in user space.

The project is currently under active development.


The initial version of CRIU software was presented to the Linux developers community by Pavel Emelianov, the OpenVZ team leader, on 15 July 2011. In September 2011, the project was presented at the Linux Plumbers Conference.[1]

In general, most of the attendees took a positive view of the project, which is proven by the fact that a number of kernel patches required for implementing the project were included in the mainline kernel. Linus Torvalds, however, was a bit skeptical:

A note on this: this is a project by various mad Russians to perform c/r mainly from userspace, with various oddball helper code added into the kernel where the need is demonstrated... However I'm less confident than the developers that it will all eventually work! So what I'm asking them to do is to wrap each piece of new code inside CONFIG_CHECKPOINT_RESTORE. So if it all eventually comes to tears and the project as a whole fails, it should be a simple matter to go through and delete all trace of it.
—Linus Torvalds, [2]

Project version 0.1 was released on July 23, 2012.

First major release

On 25 Nov 2013 the team has announced the first major release of the tool—v1.0.[3] The v1.0 tool supports x86_64 and ARM architectures and can work on unmodified Linux kernel version 3.11 and above.


The CRIU tool is being developed as part of the OpenVZ project. Though its main focus is to support the migration of containers, allowing users to check-point and restore the current state of running processes and process groups. The tool can currently be used on x86-64 systems only and supports the following features:

No kernel patching is required, all the needed functionality is available since Linux kernel version 3.11 from 2 September 2013.

TCP connection migration

One of the initial project goals was to support the migration of TCP connections, the biggest challenge being to suspend and then restore only one side of a connection. This was necessary for performing the live migration of containers (along with all their active network connections) between physical servers, the main scenario of using the checkpoint/restore feature in OpenVZ. To cope with this problem, a new feature, "TCP repair mode", was implemented. The feature was included in the v3.5 mainline Linux kernel[4] and provides users with additional means to disassemble and reconstruct TCP sockets without the necessity of exchanging network packets with the opposite side of the connection.

Similar projects

The following projects provide functionality similar to CRIU:

External links

  1. ^ "Checkpoint/restart in the userspace". 
  2. ^ Linux kernel git commit,;a=commit;h=099469502f62fbe0d7e4f0b83a2f22538367f734
  3. ^ CRIU v1.0 announce
  4. ^ «TCP connection repair»
  5. ^ DMTCP
  6. ^ BLCR
  7. ^ Linux C/R
This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.

Copyright © World Library Foundation. All rights reserved. eBooks from Project Gutenberg are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.