<div dir="ltr"><div class="gmail_extra">
<br><div class="gmail_quote">On Mon, Feb 20, 2017 at 1:16 PM, Pavel Emelyanov <span dir="ltr"><<a href="mailto:xemul@virtuozzo.com" target="_blank">xemul@virtuozzo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">On 02/19/2017 10:50 PM, Lele Ma wrote:<br>
> Hi All,<br>
><br>
</span>> I am testing container live migration with this github repos <<a href="https://github.com/boucher/docker/tree/v1.10_2-16-16-experimental" rel="noreferrer" target="_blank">https://github.com/boucher/<wbr>docker/tree/v1.10_2-16-16-<wbr>experimental</a>> for docker-1.10-dev. I found the container not restored exactly where it's checkpointed. For example:<br>
<span class="gmail-">><br>
> The container I run<br>
> docker run -d busybox /bin/sh -c 'echo > /foo; max=1000000; i=0; while [ $i -lt $max ] ; do date >> /foo; date +%s >> /foo; echo "i=$i" >> /foo; i=$(expr $i + 1 ); sleep 0.0001; done'<br>
><br>
> After migrated using p.haul, I got the /foo in target node:<br>
> .....<br>
> Sun Feb 19 03:23:13 UTC 2017<br>
> 1487474593<br>
> i=4247<br>
> Sun Feb 19 03:23:13 UTC 2017<br>
> 1487474593<br>
> i=4248 -----> before migration<br>
> i=7545 -----> after migartion ( it is supposed to be i=4249 )<br>
> Sun Feb 19 03:23:20 UTC 2017<br>
> 1487474600<br>
> i=7546<br>
> Sun Feb 19 03:23:20 UTC 2017<br>
> 1487474600<br>
> i=7547<br>
> ......<br>
> The printed numbers jump from 'i=4248' to 'i=7545' instead of increasing by one. It seems that it ignores<br>
> some computation status of the docker containers. But I am not sure where it goes wrong. However, when I<br>
> checkpoint and restore the container locally, the number increase continuously with no such jumping.<br>
<br>
</span>Where do you get these numbers from? Docker console or some file on disk?<br></blockquote><div><br></div><div>It's from the file '/foo' inside container. ( The container is running <span class="gmail-">/bin/sh -c 'echo > /foo; max=1000000; i=0; while [ $i
-lt $max ] ; do date >> /foo; date +%s >> /foo; echo "i=$i"
>> /foo; i=$(expr $i + 1 ); sleep 0.0001; done' )</span><br> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<span class="gmail-"><br>
> Does anyone know where goes wrong and how should it be fixed? Thank you in advance!<br>
><br>
> Best,<br>
> Lele<br>
><br>
><br>
</span>> ______________________________<wbr>_________________<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/<wbr>mailman/listinfo/criu</a><br>
><br>
<br>
</blockquote></div><br></div></div>