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...")
 
m (fix a typo)
 
Line 21: Line 21:
 
Serve local memory dump to a remote [[CLI/cmd/lazy-pages|<code>lazy-pages</code>]] daemon.
 
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.
+
In this mode the <code>page-server</code> reads local memory dump and allows the remote <code>lazy-pages</code> daemon to request memory pages in random order.

Latest revision as of 20:56, 15 June 2021

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[edit]

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[edit]

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[edit]

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 daemon to request memory pages in random order.