podman/libpod/define
Adrian Reber 6202e8102b
Added optional container checkpointing statistics
This adds the parameter '--print-stats' to 'podman container checkpoint'.
With '--print-stats' Podman will measure how long Podman itself, the OCI
runtime and CRIU requires to create a checkpoint and print out these
information. CRIU already creates checkpointing statistics which are
just read in addition to the added measurements. In contrast to just
printing out the ID of the checkpointed container, Podman will now print
out JSON:

 # podman container checkpoint --latest --print-stats
 {
     "podman_checkpoint_duration": 360749,
     "container_statistics": [
         {
             "Id": "25244244bf2efbef30fb6857ddea8cb2e5489f07eb6659e20dda117f0c466808",
             "runtime_checkpoint_duration": 177222,
             "criu_statistics": {
                 "freezing_time": 100657,
                 "frozen_time": 60700,
                 "memdump_time": 8162,
                 "memwrite_time": 4224,
                 "pages_scanned": 20561,
                 "pages_written": 2129
             }
         }
     ]
 }

The output contains 'podman_checkpoint_duration' which contains the
number of microseconds Podman required to create the checkpoint. The
output also includes 'runtime_checkpoint_duration' which is the time
the runtime needed to checkpoint that specific container. Each container
also includes 'criu_statistics' which displays the timing information
collected by CRIU.

Signed-off-by: Adrian Reber <areber@redhat.com>
2021-11-15 11:50:24 +00:00
..
annotations.go add {generate,play} kube 2020-05-06 17:08:22 +02:00
checkpoint_restore.go Added optional container checkpointing statistics 2021-11-15 11:50:24 +00:00
config.go Support selinux options with bind mounts play/gen 2021-09-30 10:49:14 -05:00
container.go rename oneshot initcontainers to once 2021-08-12 12:57:15 -05:00
container_inspect.go podman inspect add State.Health field for docker compat 2021-09-23 14:44:34 +02:00
containerstate.go Podman Stats additional features 2021-06-23 09:23:40 -04:00
diff.go podman diff accept two images or containers 2021-07-02 17:11:56 +02:00
errors.go Improve OCI Runtime error 2021-05-22 04:58:48 -04:00
exec_codes.go Revert "Exec: use ErrorConmonRead" 2020-03-09 09:50:40 -04:00
fileinfo.go Fixes from make codespell 2021-04-21 13:16:33 -04:00
healthchecks.go Fix remote integration for healthchecks 2020-05-20 14:43:01 -05:00
info.go Add network backend to podman info 2021-11-11 16:49:46 +01:00
mount.go separate file with mount consts in libpod/define 2021-03-07 12:01:04 +01:00
pod_inspect.go Pod Volumes From Support 2021-10-01 14:09:11 -04:00
podstate.go Add a Degraded state to pods 2020-10-21 13:31:40 -04:00
runtime.go Add support for containers.conf 2020-03-27 14:36:03 -04:00
terminal.go prune remotecommand dependency 2021-02-25 10:02:41 -06:00
version.go Use version package to track all versions 2021-03-03 17:03:19 -07:00
volume_inspect.go Initial implementation of volume plugins 2021-01-14 15:35:33 -05:00