<div dir="ltr"> We can have number of processes with same start time and same pid as fork is fast enough. What is predump start_time? If you mean process&#39; start time we don&#39;t save it in predump and it will require separate image for it.<br>
</div><div dir="ltr"><br>
</div><div dir="ltr"><br>
</div><div dir="ltr"><br>
</div><div class="wps_signature">Best regards, Tikhomirov Pavel.</div><div class="wps_quotion">Dmitry Safonov &lt;0x7f454c46@gmail.com&gt; | От: 9 февр. 2018 г. 19:34 | Сообщение:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p></p><p dir="ltr">2018-02-09 16:06 GMT+00:00 Pavel Tikhomirov &lt;<a href="mailto:ptikhomirov@virtuozzo.com">ptikhomirov@virtuozzo.com</a>&gt;: <br>
&gt; We want to use a simple fact: If we have an alive process in a pstree we <br>
&gt; want to dump, and a starttime of that process is less than pre-dump&#39;s <br>
&gt; timestamp, then these exact process existed (100% sure) at the time of <br>
&gt; these pre-dump and the process&#39; memory was dumped in images. Thus we <br>
&gt; save uptime while in freezed state else these won&#39;t work. <br>
&gt; <br>
&gt; <a href="https://jira.sw.ru/browse/PSBM-67502">https://jira.sw.ru/browse/PSBM-67502</a> <br>
&gt; <br>
&gt; Signed-off-by: Pavel Tikhomirov &lt;<a href="mailto:ptikhomirov@virtuozzo.com">ptikhomirov@virtuozzo.com</a>&gt; <br>
&gt; --- <br>
&gt;  criu/cr-dump.c       |  4 ++++ <br>
&gt;  criu/include/stats.h |  2 ++ <br>
&gt;  criu/proc_parse.c    |  2 +- <br>
&gt;  criu/stats.c         | 22 ++++++++++++++++++++++ <br>
&gt;  images/stats.proto   |  2 ++ <br>
&gt;  5 files changed, 31 insertions(+), 1 deletion(-) <br>
<br>
The commit message doesn&#39;t answer, why we need uptime at all. <br>
ITOW, why checking of start_time from procfs you use to compare <br>
with uptime can&#39;t be used to check if process is the same: <br>
pre-dump-1&#39;s start_time == pre-dump-2&#39;s start_time <br>
<br>
I&#39;m not against, just wonder why we need additionally save uptime in <br>
image files to what we already have.. <br>
<br>
--  <br>
             Dmitry <br>
</p>
</blockquote></div>