Difference between revisions of "CLI/opt/--lazy-pages"

From CRIU
Jump to navigation Jump to search
(Created page with "The <code>--lazy-pages</code> option may be used with <code>dump</code>, <code>restore</code> and <code>page-server</code> actions. Specifying this option enables functionalit...")
(No difference)

Revision as of 13:19, 8 August 2017

The --lazy-pages option may be used with dump, restore and page-server actions. Specifying this option enables functionality necessary for lazy memory restore and Lazy migration.

The actual meaning of the --lazy-pages option depends what criu actions has been called with that option.

Dump

Perform the dump procedure without writing memory pages into the image files and prepare to service page requests over the network.

When dump runs in this mode it presumes that lazy-pages daemon will connect to it and fetch memory pages in order to lazily inject them into the restored process address space.

This option is intended for post-copy (lazy) migration and should be used in conjunction with restore with appropriate options.

Restore

Restore the processes without filling out the entire memory contents.

When this option is used, restore sets up the infrastructure required to fill memory pages either on demand when the process accesses them or in the background without stopping the restored process.

This option requires running lazy-pages daemon.

Page server

Serve local memory dump to a remote lazy-pages daemon.

In this mode the page-server reads local memory dump and allows the remote lazy-pages deamon to request memory pages in random order.