<div dir="ltr">Hi,<div><br></div><div>Detail my scenarios as follows:</div><div><br></div><div>1. Run a docker container on node A, the applications in it are VNC server and a simple UDP test program.</div><div><br></div><div>2. Checkpoint it, and then restore it another node B</div><div><br></div><div>3. After restore successful, we found the UDP test program need at least 0.5 seconds (if only this test program in the container) to reconnect to peer. </div><div>Also the TCP which is used by VNC, we found it need more time to reconnected from tcpdump.</div><div><br></div><div>in this scenario, it need about 1.5 seconds to recovery</div><div><br></div><div>4. we ping the container ip with interval 0.1 when checkpoint/restore, and find that it only hang about 20ms during this procedure</div><div><br></div><div>summarize my test results:</div><div><br></div><div>the restore need about 0.5 seconds</div><div><br></div><div>after restore successful, it also need at least 0.5 seconds to recover the established connection which created before checkpoint. for the new created connection, such as ping, it can response immediately.</div><div><br></div><div>and I think there is no particular system call hangs.</div><div><br><div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 13, 2015 at 8:12 PM, Pavel Emelyanov <span dir="ltr">&lt;<a href="mailto:xemul@parallels.com" target="_blank">xemul@parallels.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 07/12/2015 11:57 AM, Vasily Averin wrote:<br>
&gt; Re-addressed to criu mailing list<br>
&gt;<br>
&gt; On 12.07.2015 10:48, Yanbao Cui wrote:<br>
&gt;&gt; Hi,<br>
&gt;&gt;<br>
&gt;&gt; I am working on the docker checkpoint/restore use CRIU, and the time consuming is the key point we concerned.<br>
&gt;&gt;<br>
&gt;&gt; I found a strange phenomenon that the created socket need additional at least 0.5 seconds to reconnect after<br>
&gt;&gt; the docker restore done.<br>
<br>
</span>Can you shed more light on this -- is there any particular system call that hangs for 0.5<br>
seconds or is it just a &quot;criu restore&quot; time you observe?<br>
<span class=""><br>
&gt;&gt;<br>
&gt;&gt; But if I create a new socket after restoring the docker , it will connect to the peer immediately.<br>
&gt;&gt;<br>
&gt;&gt; No matter the connection uses TCP or UDP.<br>
&gt;&gt;<br>
&gt;&gt; From the CRIU source code, I found that it will create a new socket with SO_REUSEADDR, and change the original fd to this new one. but I have no idea that why it need more time to recovery.<br>
&gt;&gt;<br>
&gt;&gt; Could someone help me to explain it or give me some points?<br>
&gt;&gt;<br>
&gt;&gt; Thanks very much!<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Best Regards<br>
&gt;&gt; Cui Yanbao | 崔言宝<br>
&gt;&gt; --<br>
&gt;&gt; 龍生玖天,豈能安於凡塵!<br>
</span>&gt; _______________________________________________<br>
&gt; CRIU mailing list<br>
&gt; <a href="mailto:CRIU@openvz.org">CRIU@openvz.org</a><br>
&gt; <a href="https://lists.openvz.org/mailman/listinfo/criu" rel="noreferrer" target="_blank">https://lists.openvz.org/mailman/listinfo/criu</a><br>
&gt;<br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><font color="#3333ff"><div><font color="#3333ff">Best Regards</font></div><div><font color="#3333ff">Cui Yanbao | 崔言宝</font></div><div><font color="#3333ff">--</font></div>龍生玖天,豈能安於凡塵!</font></div>
</div></div></div></div>