podman/pkg/api/handlers/libpod
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
..
containers.go Added optional container restore statistics 2021-11-15 11:50:25 +00:00
containers_create.go Refacter API server emphasis on logging 2021-09-10 15:07:25 -07:00
containers_stats.go Refacter API server emphasis on logging 2021-09-10 15:07:25 -07:00
generate.go Refacter API server emphasis on logging 2021-09-10 15:07:25 -07:00
healthcheck.go Refacter API server emphasis on logging 2021-09-10 15:07:25 -07:00
images.go faster image inspection 2021-10-08 14:47:33 +02:00
images_pull.go Refacter API server emphasis on logging 2021-09-10 15:07:25 -07:00
info.go Refacter API server emphasis on logging 2021-09-10 15:07:25 -07:00
manifests.go Refacter API server emphasis on logging 2021-09-10 15:07:25 -07:00
networks.go Do not allow network modes to be used as network names 2021-09-16 11:01:52 +02:00
play.go Add support to play kube for --log-opt 2021-10-25 11:40:42 -04:00
pods.go Enable 'podman run --memory-swappiness=0' 2021-11-12 13:20:20 -05:00
secrets.go Refacter API server emphasis on logging 2021-09-10 15:07:25 -07:00
swagger.go Wire network interface into libpod 2021-09-15 20:00:20 +02:00
system.go Refacter API server emphasis on logging 2021-09-10 15:07:25 -07:00
volumes.go Allow label and labels when creating volumes 2021-10-28 16:02:22 -07:00