diff options
author | Pavel Tikhomirov <ptikhomirov@virtuozzo.com> | 2018-04-06 10:31:28 +0300 |
---|---|---|
committer | Pavel Emelyanov <xemul@virtuozzo.com> | 2018-07-09 18:26:50 +0300 |
commit | 5451fc230d852d02a8f48f803b39f834e97e1bc4 (patch) | |
tree | b0ef8140ad41b082f865b9ff4d79d67370b1ad54 /images/inventory.proto | |
parent | b610f28adada6e3b14183f88c45655d21a926cf4 (diff) |
inventory: save uptime to know when dump had happened
We want to use a simple fact: If we have an alive process in a pstree we
want to dump, and a starttime of that process is less than pre-dump's
timestamp (taken while all processes were freezed), then these exact
process existed (100% sure) at the time of these pre-dump and the
process' memory was dumped in images.
So save inventory image on pre-dump and put there an uptime.
https://jira.sw.ru/browse/PSBM-67502
v9: improve comment, put uptime to ivnentory image as 1) where is no
stats in parent images directory if --work-dir option is set to
something different then images directory, 2) stats-dump is not an image
and it is a bad practice to put there data required for restoring.
v10:s/u_int64_t/uint64_t/
Signed-off-by: Pavel Tikhomirov <ptikhomirov@virtuozzo.com>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
Diffstat (limited to 'images/inventory.proto')
-rw-r--r-- | images/inventory.proto | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/images/inventory.proto b/images/inventory.proto index f1b01f7e8..7bc2b0c02 100644 --- a/images/inventory.proto +++ b/images/inventory.proto @@ -15,4 +15,5 @@ message inventory_entry { optional bool ns_per_id = 4; optional uint32 root_cg_set = 5; optional lsmtype lsmtype = 6; + optional uint64 dump_uptime = 8; } |