<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"><<a href="mailto:xemul@parallels.com" target="_blank">xemul@parallels.com</a>></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>
> Re-addressed to criu mailing list<br>
><br>
> On 12.07.2015 10:48, Yanbao Cui wrote:<br>
>> Hi,<br>
>><br>
>> I am working on the docker checkpoint/restore use CRIU, and the time consuming is the key point we concerned.<br>
>><br>
>> I found a strange phenomenon that the created socket need additional at least 0.5 seconds to reconnect after<br>
>> 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 "criu restore" time you observe?<br>
<span class=""><br>
>><br>
>> But if I create a new socket after restoring the docker , it will connect to the peer immediately.<br>
>><br>
>> No matter the connection uses TCP or UDP.<br>
>><br>
>> 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>
>><br>
>> Could someone help me to explain it or give me some points?<br>
>><br>
>> Thanks very much!<br>
>><br>
>> --<br>
>> Best Regards<br>
>> Cui Yanbao | 崔言宝<br>
>> --<br>
>> 龍生玖天,豈能安於凡塵!<br>
</span>> _______________________________________________<br>
> CRIU mailing list<br>
> <a href="mailto:CRIU@openvz.org">CRIU@openvz.org</a><br>
> <a href="https://lists.openvz.org/mailman/listinfo/criu" rel="noreferrer" target="_blank">https://lists.openvz.org/mailman/listinfo/criu</a><br>
><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>