Listing Snapshots
List snapshots using the mvmcli snapshot list command.
Procedure
List snapshots that have been captured on the host:
$ mvmcli snapshot list -n app_name -T|-U|-R -r
$ mvmcli snapshot list -p|--pid pid -n|--application_name application_name -T|--snap-time -U|--used-pmem -R|--recoverable-pmem -r|--reverse
The pid and app_name parameters filter
the listed snapshots:
- pid
- is the process ID, for listing snapshots of a single process.
- app_name
- is the application name, for listing snapshots of all instances of particular application.
If you do not specify a PID or an appliication name, all snapshots on the host
are listed.
The remaining options sort the listed snapshots:
- -T or --snap-time
- causes the list to be sorted in order of time that the snapshot was taken, most recent first.
- -U or --used-pmem
- causes the list to be sorted in order of the amount of PMEM used by each snapshot, largest to smallest.
- -R or --recoverable-pmem
- causes the list to be sorted in order of the amount PMEM that can be recovered if the snapshot is deleted, largest to smallest.
- -r
- Reverses the order of a sort. For example, passing -T -r (or -Tr) lists snapshots oldest first rather than newest first.
For example:
$ mvmcli snapshot list -p 18074 -T PID User Date Created Application Status PMEM Used PMEM Freeable Label 18074 root 2020-08-18 12:39 redis-serverP 4194304 4194304 redis_player_1_ca4a0982 18074 root 2020-08-17 12:39 redis-serverP 4033320 4033320 redis_player_1_40406881 18074 root 2020-08-16 12:40 redis-serverP 4009456 4009456 redis_player_1_21ecc005