Changes

1,569 bytes added ,  13:19, 8 August 2017
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..."
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 functionality necessary for [[Userfaultfd|lazy memory restore]] and [[Lazy migration]].

The actual meaning of the <code>--lazy-pages</code> option depends what <code>criu</code> 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 <code>dump</code> runs in this mode it presumes that [[CLI/cmd/lazy-pages|<code>lazy-pages</code>]] 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 [[Lazy migration|post-copy (lazy) migration]] and should be used in conjunction with <code>restore</code> with appropriate options.

== Restore ==
Restore the processes without filling out the entire memory contents.

When this option is used, <code>restore</code> 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 [[CLI/cmd/lazy-pages|<code>lazy-pages</code>]] daemon.

== Page server ==
Serve local memory dump to a remote [[CLI/cmd/lazy-pages|<code>lazy-pages</code>]] daemon.

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

edits