Changes

Jump to navigation Jump to search
1,008 bytes added ,  12:48, 13 July 2017
no edit summary
Line 1: Line 1: −
[[Category: Empty articles]]
+
When doing its work CRIU needs to know some information about the kernel it runs on and the tool set that's available on the host.
 +
 
 +
E.g. when performing [[memory dumping and restoring]] CRIU needs to distinguish anonymous [[shared memory]] from tmpfs file mappings. This can be done by checking the mapped file device number to be the anon one. This device number is generated by the kernel on boot and is persistent while the node is up and running.
 +
 
 +
Thus on start CRIU collects all the needed information, but the amount of data to find out and time it takes is quite big, especially if compared to the time it takes CRIU to perform requested action (dump or restore). To speed things up CRIU caches the collected information in <code>/run/criu.kdat</code> file. The directory is typically a tmpfs mount point that gets flushed when node reboots, so the cache is always clean after the kernel change.
 +
 
 +
The <code>/run</code> directory is not cut in stone, it can be changed compile-time by overriding the <code>RUNDIR</code> variable.
 +
 
 
[[Category: Under the hood]]
 
[[Category: Under the hood]]

Navigation menu