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

 # podman container restore --latest --print-stats
 {
     "podman_restore_duration": 305871,
     "container_statistics": [
         {
             "Id": "47b02e1d474b5d5fe917825e91ac653efa757c91e5a81a368d771a78f6b5ed20",
             "runtime_restore_duration": 140614,
             "criu_statistics": {
                 "forking_time": 5,
                 "restore_time": 67672,
                 "pages_restored": 14
             }
         }
     ]
 }

The output contains 'podman_restore_duration' which contains the
number of microseconds Podman required to restore the checkpoint. The
output also includes 'runtime_restore_duration' which is the time
the runtime needed to restore 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:25 +00:00
..
annotations
api Added optional container restore statistics 2021-11-15 11:50:25 +00:00
auth standardize logrus messages to upper case 2021-09-22 15:29:34 -04:00
autoupdate vendor c/common@main 2021-09-20 15:07:41 +02:00
bindings Fix bindings container log test 2021-11-04 17:04:27 +01:00
cgroups cgroups: use SessionBusPrivateNoAutoStartup 2021-10-26 21:05:45 +02:00
channel channel: simplify implementation 2021-05-06 11:51:15 +02:00
checkpoint Merge pull request #12184 from adrianreber/2021-11-05-stats-dump 2021-11-08 09:29:56 +01:00
copy support container to container copy 2021-07-27 15:32:23 +02:00
criu Support checkpoint/restore with pods 2021-07-27 16:10:44 +02:00
ctime
domain Added optional container restore statistics 2021-11-15 11:50:25 +00:00
env Generate kube should'd add podman default environment vars 2021-09-21 09:03:31 -04:00
errorhandling Handle HTTP 409 error messages properly for Pod actions 2021-11-02 12:28:52 +01:00
hooks [CI:DOCS] oci-hooks.5.md: fixup section in header 2021-10-10 08:16:42 -04:00
inspect bump go module to v3 2021-02-22 09:03:51 +01:00
kubeutils Globally replace http:// with https:// 2021-08-27 06:14:46 -04:00
lookup Enable whitespace linter 2021-02-11 23:01:56 +01:00
machine Make stop message more similar to start 2021-11-02 22:26:04 +01:00
namespaces [NO TESTS NEEDED] Shrink the size of podman-remote 2021-03-29 09:49:45 -04:00
netns standardize logrus messages to upper case 2021-09-22 15:29:34 -04:00
network Split libpod/network package 2021-03-15 14:01:52 +01:00
parallel bump go module to v3 2021-02-22 09:03:51 +01:00
ps Ensure `podman ps --sync` functions 2021-10-06 11:19:32 -04:00
resolvconf bump go module to v3 2021-02-22 09:03:51 +01:00
rootless rootless: adjust error message 2021-11-10 09:26:22 +01:00
rootlessport libpod: deduplicate ports in db 2021-10-27 18:59:56 +02:00
seccomp
selinux
servicereaper standardize logrus messages to upper case 2021-09-22 15:29:34 -04:00
signal Fix build for mips architecture follow-up 2021-01-07 15:04:22 +01:00
specgen Merge pull request #12271 from Luap99/play-kube-net 2021-11-12 19:59:44 +01:00
specgenutil Enable 'podman run --memory-swappiness=0' 2021-11-12 13:20:20 -05:00
systemd Replace 'an user' => 'a user' 2021-10-24 22:27:39 +02:00
terminal Fix #11444: remote breaks with stdout redirection 2021-09-13 17:42:48 +03:00
timetype
trust standardize logrus messages to upper case 2021-09-22 15:29:34 -04:00
util Spell "build linux darwin" as "build !windows". 2021-09-03 13:38:14 +03:00