<p dir="ltr">By sending SIGCONT, I guess. <br></p>
<p dir="ltr">4 сент. 2015 г. 5:11 AM пользователь &quot;Francisco Tolmasky&quot; &lt;<a href="mailto:tolmasky@gmail.com">tolmasky@gmail.com</a>&gt; написал:<br>
&gt;<br>
&gt; Interesting, how would I then “revive” it if I add the final == TASK_STOPPED to that line? (Will respond about logs in another email, longer answer).<br>
&gt;<br>
&gt; On Thu, Sep 3, 2015 at 5:48 PM, Ruslan Kuprieiev &lt;<a href="mailto:kupruser@gmail.com">kupruser@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hi, Francisco,<br>
&gt;&gt;<br>
&gt;&gt; On 04.09.15 02:05, Francisco Tolmasky wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; So I have been tracking a bug in tonic (related to this logging issue, and general “breaking” of pipes/streams), and I have narrowed part of the problem to the fact that we restore multiple containers simultaneously from the same source run. We do this to have them “warm” and ready in case the user wants to go back to a previous checkpoint. So something along these lines happens:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Program is running -&gt; Checkpoint -&gt; immediate restore IN PARALLEL to original program/restore from previous checkpoint IN PARALLEL as well.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; So, you can end up with up to 3 copies of the same program running. Eventually that original one will die and we will choose one of the two “waiting” copies to pick up from.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; So, my first question is whether you would expect things to start breaking in this scenario (they seem to work a lot of times, again, we see occasional failures over time in the form of stream breakages possibly, or just getting “stuck” (I believe it gets stuck waiting on a pipe though)). <br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Could you provide some logs, please?<br>
&gt;&gt;<br>
&gt;&gt;&gt; My second question is, if this is in fact not expected to work well, would it be possible to “Restore” a container but not “start” it. That is, load up the memory get everything ready but have it waiting for a signal to actually kick off and get going. That way we can get most the benefit of pre-warming these restores, without having them all actually running at once.<br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; That&#39;s a great question. I&#39;ve been thinking about implementing --leave-stopped for restore, but never actually came to that. I&#39;ve tried just adding || opts.final_state == TASK_STOPPED to <a href="https://github.com/xemul/criu/blob/master/cr-restore.c#L1715">https://github.com/xemul/criu/blob/master/cr-restore.c#L1715</a> and it seems to work just fine with a test loop, though I&#39;m not sure that it will always work in more complicated scenarios.<br>
&gt;&gt;<br>
&gt;&gt; Also added this task to TODO list[1].<br>
&gt;&gt;<br>
&gt;&gt; [1] <a href="http://criu.org/Todo">http://criu.org/Todo</a><br>
&gt;&gt;<br>
&gt;&gt;&gt; Thanks,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Francisco<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; -- <br>
&gt;&gt;&gt; Francisco Tolmasky<br>
&gt;&gt;&gt; <a href="http://www.tolmasky.com">www.tolmasky.com</a><br>
&gt;&gt;&gt; <a href="mailto:tolmasky@gmail.com">tolmasky@gmail.com</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt; CRIU mailing list<br>
&gt;&gt;&gt; <a href="mailto:CRIU@openvz.org">CRIU@openvz.org</a><br>
&gt;&gt;&gt; <a href="https://lists.openvz.org/mailman/listinfo/criu">https://lists.openvz.org/mailman/listinfo/criu</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; -- <br>
&gt; Francisco Tolmasky<br>
&gt; <a href="http://www.tolmasky.com">www.tolmasky.com</a><br>
&gt; <a href="mailto:tolmasky@gmail.com">tolmasky@gmail.com</a></p>