Difference between revisions of "Statistics"
Jump to navigation
Jump to search
(Add info how to read stats file) |
m |
||
| (4 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
| − | CRIU generates a set of <code>stats-<type></code> files that contain statistics about how dump/restore went. These files are in google-protocol-buffers format, just like the [[images]] are, and can be viewed using the <code>criu show -f [FILE]</code> | + | CRIU generates a set of <code>stats-<type></code> files that contain statistics about how dump/restore went. These files are in google-protocol-buffers format, just like the [[images]] are, and can be viewed using the <code>crit show [FILE]</code> command (<code>criu show -f [FILE]</code> in previous versions). |
== Dump/Pre-dump stats == | == Dump/Pre-dump stats == | ||
| Line 9: | Line 9: | ||
;<code>frozen_time</code> | ;<code>frozen_time</code> | ||
| − | :Time tasks were in frozen state | + | :Time tasks were in frozen state. This time includes <code>memdump_time</code> and <code>memwrite_time</code>. |
;<code>memdump_time</code> | ;<code>memdump_time</code> | ||
| − | :Time criu spent grabbing required pages out of processes. This time | + | :Time criu spent grabbing required pages out of processes. This time includes <code>memwrite_time</code>. |
;<code>memwrite_time</code> | ;<code>memwrite_time</code> | ||
| Line 27: | Line 27: | ||
;<code>pages_written</code> | ;<code>pages_written</code> | ||
:The total number of pages criu put into image files | :The total number of pages criu put into image files | ||
| + | |||
| + | == Restore stats == | ||
| + | |||
| + | ;<code>forking_time</code> | ||
| + | :Time took to fork the tree of processes (with groups and sessions) | ||
| + | |||
| + | ;<code>restore_time</code> | ||
| + | :Total time of restore | ||
| + | |||
| + | ;<code>pages_compared</code> | ||
| + | :Number of pages compared for being COW-ed | ||
| + | |||
| + | ;<code>pages_skipped_cow</code> | ||
| + | :Number of pages, restoration of which was skipped due to COW setup | ||
| + | |||
| + | [[Category:API]] | ||
Latest revision as of 20:31, 26 February 2025
CRIU generates a set of stats-<type> files that contain statistics about how dump/restore went. These files are in google-protocol-buffers format, just like the images are, and can be viewed using the crit show [FILE] command (criu show -f [FILE] in previous versions).
Dump/Pre-dump stats[edit]
These are in stats-dump file. Fields are:
freezing_time- Time it took criu to freeze the process tree
frozen_time- Time tasks were in frozen state. This time includes
memdump_timeandmemwrite_time.
memdump_time- Time criu spent grabbing required pages out of processes. This time includes
memwrite_time.
memwrite_time- Time criu spend transferring memory pages into image files (locally or on page-server)
All the above times are in microseconds.
pages_scanned- The number of pages criu looked at to decide whether or not to dump them
pages_skipped_parent- The number of pages criu skipped due to they were found in parent images (read about memory changes tracking)
pages_written- The total number of pages criu put into image files
Restore stats[edit]
forking_time- Time took to fork the tree of processes (with groups and sessions)
restore_time- Total time of restore
pages_compared- Number of pages compared for being COW-ed
pages_skipped_cow- Number of pages, restoration of which was skipped due to COW setup