<div dir="ltr">Hi, <div><br></div><div>The two Rpi2 are identical, and has each 4 processors.</div><div>Here is their respective /proc/cpuinfo : </div><div><br></div><div><div>RPI 1 (where restore fails)</div><div><br></div><div>pi@raspberrypi:~ $ cat /proc/cpuinfo </div><div>processor<span style="white-space:pre-wrap">        </span>: 0</div><div>model name<span style="white-space:pre-wrap">        </span>: ARMv7 Processor rev 5 (v7l)</div><div>BogoMIPS<span style="white-space:pre-wrap">        </span>: 38.40</div><div>Features<span style="white-space:pre-wrap">        </span>: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm </div><div>CPU implementer<span style="white-space:pre-wrap">        </span>: 0x41</div><div>CPU architecture: 7</div><div>CPU variant<span style="white-space:pre-wrap">        </span>: 0x0</div><div>CPU part<span style="white-space:pre-wrap">        </span>: 0xc07</div><div>CPU revision<span style="white-space:pre-wrap">        </span>: 5</div><div><br></div><div>processor<span style="white-space:pre-wrap">        </span>: 1</div><div>model name<span style="white-space:pre-wrap">        </span>: ARMv7 Processor rev 5 (v7l)</div><div>BogoMIPS<span style="white-space:pre-wrap">        </span>: 38.40</div><div>Features<span style="white-space:pre-wrap">        </span>: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm </div><div>CPU implementer<span style="white-space:pre-wrap">        </span>: 0x41</div><div>CPU architecture: 7</div><div>CPU variant<span style="white-space:pre-wrap">        </span>: 0x0</div><div>CPU part<span style="white-space:pre-wrap">        </span>: 0xc07</div><div>CPU revision<span style="white-space:pre-wrap">        </span>: 5</div><div><br></div><div>processor<span style="white-space:pre-wrap">        </span>: 2</div><div>model name<span style="white-space:pre-wrap">        </span>: ARMv7 Processor rev 5 (v7l)</div><div>BogoMIPS<span style="white-space:pre-wrap">        </span>: 38.40</div><div>Features<span style="white-space:pre-wrap">        </span>: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm </div><div>CPU implementer<span style="white-space:pre-wrap">        </span>: 0x41</div><div>CPU architecture: 7</div><div>CPU variant<span style="white-space:pre-wrap">        </span>: 0x0</div><div>CPU part<span style="white-space:pre-wrap">        </span>: 0xc07</div><div>CPU revision<span style="white-space:pre-wrap">        </span>: 5</div><div><br></div><div>processor<span style="white-space:pre-wrap">        </span>: 3</div><div>model name<span style="white-space:pre-wrap">        </span>: ARMv7 Processor rev 5 (v7l)</div><div>BogoMIPS<span style="white-space:pre-wrap">        </span>: 38.40</div><div>Features<span style="white-space:pre-wrap">        </span>: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm </div><div>CPU implementer<span style="white-space:pre-wrap">        </span>: 0x41</div><div>CPU architecture: 7</div><div>CPU variant<span style="white-space:pre-wrap">        </span>: 0x0</div><div>CPU part<span style="white-space:pre-wrap">        </span>: 0xc07</div><div>CPU revision<span style="white-space:pre-wrap">        </span>: 5</div><div><br></div><div>Hardware<span style="white-space:pre-wrap">        </span>: BCM2709</div><div>Revision<span style="white-space:pre-wrap">        </span>: a01041</div><div>Serial<span style="white-space:pre-wrap">                </span>: 0000000026505904</div><div><br></div><div>----------------------------------------------------------------------</div><div>RPI 2 (where restore suceeds)</div><div><br></div><div><div>pi@raspberrypi:~ $ cat /proc/cpuinfo </div><div>processor<span style="white-space:pre-wrap">        </span>: 0</div><div>model name<span style="white-space:pre-wrap">        </span>: ARMv7 Processor rev 5 (v7l)</div><div>BogoMIPS<span style="white-space:pre-wrap">        </span>: 38.40</div><div>Features<span style="white-space:pre-wrap">        </span>: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm </div><div>CPU implementer<span style="white-space:pre-wrap">        </span>: 0x41</div><div>CPU architecture: 7</div><div>CPU variant<span style="white-space:pre-wrap">        </span>: 0x0</div><div>CPU part<span style="white-space:pre-wrap">        </span>: 0xc07</div><div>CPU revision<span style="white-space:pre-wrap">        </span>: 5</div><div><br></div><div>processor<span style="white-space:pre-wrap">        </span>: 1</div><div>model name<span style="white-space:pre-wrap">        </span>: ARMv7 Processor rev 5 (v7l)</div><div>BogoMIPS<span style="white-space:pre-wrap">        </span>: 38.40</div><div>Features<span style="white-space:pre-wrap">        </span>: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm </div><div>CPU implementer<span style="white-space:pre-wrap">        </span>: 0x41</div><div>CPU architecture: 7</div><div>CPU variant<span style="white-space:pre-wrap">        </span>: 0x0</div><div>CPU part<span style="white-space:pre-wrap">        </span>: 0xc07</div><div>CPU revision<span style="white-space:pre-wrap">        </span>: 5</div><div><br></div><div>processor<span style="white-space:pre-wrap">        </span>: 2</div><div>model name<span style="white-space:pre-wrap">        </span>: ARMv7 Processor rev 5 (v7l)</div><div>BogoMIPS<span style="white-space:pre-wrap">        </span>: 38.40</div><div>Features<span style="white-space:pre-wrap">        </span>: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm </div><div>CPU implementer<span style="white-space:pre-wrap">        </span>: 0x41</div><div>CPU architecture: 7</div><div>CPU variant<span style="white-space:pre-wrap">        </span>: 0x0</div><div>CPU part<span style="white-space:pre-wrap">        </span>: 0xc07</div><div>CPU revision<span style="white-space:pre-wrap">        </span>: 5</div><div><br></div><div>processor<span style="white-space:pre-wrap">        </span>: 3</div><div>model name<span style="white-space:pre-wrap">        </span>: ARMv7 Processor rev 5 (v7l)</div><div>BogoMIPS<span style="white-space:pre-wrap">        </span>: 38.40</div><div>Features<span style="white-space:pre-wrap">        </span>: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm </div><div>CPU implementer<span style="white-space:pre-wrap">        </span>: 0x41</div><div>CPU architecture: 7</div><div>CPU variant<span style="white-space:pre-wrap">        </span>: 0x0</div><div>CPU part<span style="white-space:pre-wrap">        </span>: 0xc07</div><div>CPU revision<span style="white-space:pre-wrap">        </span>: 5</div><div><br></div><div>Hardware<span style="white-space:pre-wrap">        </span>: BCM2709</div><div>Revision<span style="white-space:pre-wrap">        </span>: a01041</div><div>Serial<span style="white-space:pre-wrap">                </span>: 0000000004b73703</div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-05-21 17:01 GMT+02:00 Andrew Vagin <span dir="ltr">&lt;<a href="mailto:avagin@virtuozzo.com" target="_blank">avagin@virtuozzo.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">How many cpus has each of these RPi-s?<br>
<br>
cat /proc/cpuinfo<br>
<div><div class="h5"><br>
On Fri, May 20, 2016 at 11:06:53AM +0200, alex vk wrote:<br>
&gt; Hi Andrew,<br>
&gt;<br>
&gt; You&#39;re right, there was no &quot;cpuset&quot; on the Rpi where I tried the restoring<br>
&gt; process, whereas it&#39;s present on the other one..<br>
&gt; If I swap the roles between the two Pis, the checkpoint/restore succeeds :)<br>
&gt;<br>
&gt; I dont&#39;t really understand how come the configuration is different as I was<br>
&gt; using the exact same image loaded on the SD card..<br>
&gt; Do you have an idea why cpuset it disabled on one Rpi, or how I could enable it<br>
&gt; ?<br>
&gt;<br>
&gt; Thanks a lot,<br>
&gt; Alex.<br>
&gt;<br>
&gt;<br>
&gt; Raspberry 1 : (Restore on this Rpi)<br>
&gt; pi@raspberrypi:~ $ cat /proc/cgroups<br>
&gt; #subsys_name hierarchy num_cgroups enabled<br>
&gt; cpu 2 1 1<br>
&gt; cpuacct 2 1 1<br>
&gt; memory 0 1 0<br>
&gt; devices 3 1 1<br>
&gt; freezer 4 1 1<br>
&gt; net_cls 5 1 1<br>
&gt; blkio 6 1 1<br>
&gt;<br>
&gt; Raspberry 2 : (Snapshot on this Rpi)<br>
&gt; #subsys_name hierarchy num_cgroups enabled<br>
&gt; cpuset 2 1 1<br>
&gt; cpu 3 1 1<br>
&gt; cpuacct 3 1 1<br>
&gt; memory 0 1 0<br>
&gt; devices 4 1 1<br>
&gt; freezer 5 1 1<br>
&gt; net_cls 6 1 1<br>
&gt; blkio 7 1 1<br>
&gt;<br>
&gt; 2016-05-19 23:26 GMT+02:00 Andrew Vagin &lt;<a href="mailto:avagin@virtuozzo.com">avagin@virtuozzo.com</a>&gt;:<br>
&gt;<br>
&gt;     Hi Alex,<br>
&gt;<br>
&gt;     Can you show /proc/cgroups from both hosts?<br>
&gt;<br>
&gt;     On Thu, May 19, 2016 at 06:37:10PM +0200, alex vk wrote:<br>
&gt;     &gt;<br>
&gt;     &gt; pi@raspberrypi:~/criu/criu $ ./migrate-ssh.sh<br>
&gt;     &gt; Warn  (autofs.c:74): Failed to find pipe_ino option (old kernel?)<br>
&gt;     &gt; Connection to 192.168.0.2 closed.<br>
&gt;     &gt; Snapshoted<br>
&gt;     &gt; cgroup.img                                    100% 1948     1.9KB/s<br>
&gt;      00:00<br>
&gt;     &gt; core-943.img                                  100%  602     0.6KB/s<br>
&gt;      00:00<br>
&gt;     &gt; fdinfo-2.img                                  100%   80     0.1KB/s<br>
&gt;      00:00<br>
&gt;     &gt; fs-943.img                                    100%   18     0.0KB/s<br>
&gt;      00:00<br>
&gt;     &gt; ids-943.img                                   100%   32     0.0KB/s<br>
&gt;      00:00<br>
&gt;     &gt; inetsk.img                                    100%  251     0.3KB/s<br>
&gt;      00:00<br>
&gt;     &gt; inventory.img                                 100%   38     0.0KB/s<br>
&gt;      00:00<br>
&gt;     &gt; mm-943.img                                    100% 1862     1.8KB/s<br>
&gt;      00:00<br>
&gt;     &gt; pagemap-943.img                               100%  242     0.2KB/s<br>
&gt;      00:00<br>
&gt;     &gt; pages-1.img                                   100%  252KB 252.0KB/s<br>
&gt;      00:00<br>
&gt;     &gt; pstree.img                                    100%   26     0.0KB/s<br>
&gt;      00:00<br>
&gt;     &gt; reg-files.img                                 100%  994     1.0KB/s<br>
&gt;      00:00<br>
&gt;     &gt; sigacts-943.img                               100%  752     0.7KB/s<br>
&gt;      00:00<br>
&gt;     &gt; stats-dump                                    100%   36     0.0KB/s<br>
&gt;      00:00<br>
&gt;     &gt; tty.img                                       100%   30     0.0KB/s<br>
&gt;      00:00<br>
&gt;     &gt; tty-info.img                                  100%  178     0.2KB/s<br>
&gt;      00:00<br>
&gt;     &gt; Image transfered<br>
&gt;     &gt; (00.082257) Pagemap is fully functional<br>
&gt;     &gt; (00.082543) Found task size of 7f000000<br>
&gt;     &gt; (00.082892) Reading image tree<br>
&gt;     &gt; (00.083089) Add mnt ns 5 pid 943<br>
&gt;     &gt; (00.083211) Migrating process tree (GID 943-&gt;805 SID 791-&gt;741)<br>
&gt;     &gt; (00.083259) Will restore in 0 namespaces<br>
&gt;     &gt; (00.083295) NS mask to use 0<br>
&gt;     &gt; (00.083331) Collecting 39/18 (flags 1)<br>
&gt;     &gt; (00.083428) Collected [dev/pts/0] ID 0x1<br>
&gt;     &gt; (00.083486) Collected [lib/arm-linux-gnueabihf/<a href="http://libresolv-2.19.so" rel="noreferrer" target="_blank">libresolv-2.19.so</a>] ID 0x5<br>
&gt;     &gt; (00.083536) Collected [lib/arm-linux-gnueabihf/<a href="http://libnss_dns-2.19.so" rel="noreferrer" target="_blank">libnss_dns-2.19.so</a>] ID 0x6<br>
&gt;     &gt; (00.083581) Collected [lib/arm-linux-gnueabihf/<a href="http://libnss_files-2.19.so" rel="noreferrer" target="_blank">libnss_files-2.19.so</a>] ID<br>
&gt;     0x7<br>
&gt;     &gt; (00.083626) Collected [lib/arm-linux-gnueabihf/<a href="http://libc-2.19.so" rel="noreferrer" target="_blank">libc-2.19.so</a>] ID 0x8<br>
&gt;     &gt; (00.083672) Collected [lib/arm-linux-gnueabihf/libgcc_s.so.1] ID 0x9<br>
&gt;     &gt; (00.083715) Collected [lib/arm-linux-gnueabihf/<a href="http://libm-2.19.so" rel="noreferrer" target="_blank">libm-2.19.so</a>] ID 0xa<br>
&gt;     &gt; (00.083759) Collected [usr/lib/arm-linux-gnueabihf/libstdc++.so.6.0.20]<br>
&gt;     ID 0xb<br>
&gt;     &gt; (00.083804) Collected [lib/arm-linux-gnueabihf/libz.so.1.2.8] ID 0xc<br>
&gt;     &gt; (00.083847) Collected [usr/lib/arm-linux-gnueabihf/libenet.so.7.0.0] ID<br>
&gt;     0xd<br>
&gt;     &gt; (00.083892) Collected [usr/lib/arm-linux-gnueabihf/libarmmem.so] ID 0xe<br>
&gt;     &gt; (00.083935) Collected [lib/arm-linux-gnueabihf/<a href="http://ld-2.19.so" rel="noreferrer" target="_blank">ld-2.19.so</a>] ID 0xf<br>
&gt;     &gt; (00.083978) Collected [lib/arm-linux-gnueabihf/libnss_mdns4_minimal.so.2]<br>
&gt;     ID<br>
&gt;     &gt; 0x10<br>
&gt;     &gt; (00.084022) Collected [usr/lib/cube2/cube2_server] ID 0x11<br>
&gt;     &gt; (00.084064) Collected [usr/lib/cube2] ID 0x12<br>
&gt;     &gt; (00.084104) Collected [.] ID 0x13<br>
&gt;     &gt; (00.084151)  `- ... done<br>
&gt;     &gt; (00.084182) Collecting 52/56 (flags 0)<br>
&gt;     &gt; (00.084259) No remap-fpath.img image<br>
&gt;     &gt; (00.084318)  `- ... done<br>
&gt;     &gt; (00.084384) Collecting 42/21 (flags 0)<br>
&gt;     &gt; (00.084549)  `- ... done<br>
&gt;     &gt; (00.084991) cg: Preparing cgroups yard (cgroups restore mode 0x4)<br>
&gt;     &gt; (00.089011) cg: Opening .criu.cgyard.lg48ci as cg yard<br>
&gt;     &gt; (00.089161) cg:  Making controller dir .criu.cgyard.lg48ci/blkio (blkio)<br>
&gt;     &gt; (00.089465) cg: Determined cgroup dir blkio/ already exist<br>
&gt;     &gt; (00.089495) cg: Skip restoring properties on cgroup dir blkio/<br>
&gt;     &gt; (00.089593) cg:  Making controller dir .criu.cgyard.lg48ci/net_cls<br>
&gt;     (net_cls)<br>
&gt;     &gt; (00.089862) cg: Determined cgroup dir net_cls/ already exist<br>
&gt;     &gt; (00.089899) cg: Skip restoring properties on cgroup dir net_cls/<br>
&gt;     &gt; (00.089978) cg:  Making controller dir .criu.cgyard.lg48ci/freezer<br>
&gt;     (freezer)<br>
&gt;     &gt; (00.090218) cg: Determined cgroup dir freezer/ already exist<br>
&gt;     &gt; (00.090257) cg: Skip restoring properties on cgroup dir freezer/<br>
&gt;     &gt; (00.090334) cg:  Making controller dir .criu.cgyard.lg48ci/devices<br>
&gt;     (devices)<br>
&gt;     &gt; (00.090646) cg: Determined cgroup dir devices/ already exist<br>
&gt;     &gt; (00.090708) cg: Skip restoring properties on cgroup dir devices/<br>
&gt;     &gt; (00.090811) cg:  Making controller dir .criu.cgyard.lg48ci/cpu,cpuacct<br>
&gt;     &gt; (cpu,cpuacct)<br>
&gt;     &gt; (00.091066) cg: Determined cgroup dir cpu,cpuacct/ already exist<br>
&gt;     &gt; (00.091123) cg: Skip restoring properties on cgroup dir cpu,cpuacct/<br>
&gt;     &gt; (00.091229) cg:  Making controller dir .criu.cgyard.lg48ci/cpuset<br>
&gt;     (cpuset)<br>
&gt;     &gt; (00.091431) Error (cgroup.c:1562): cg:  Can&#39;t mount controller dir<br>
&gt;     &gt; .criu.cgyard.lg48ci/cpuset: No such file or directory<br>
&gt;     &gt;<br>
&gt;     &gt; Hi everyone,<br>
&gt;     &gt;<br>
&gt;     &gt; I&#39;m coming back to you because I<br>
&gt;     &gt; still have a problem when<br>
&gt;     &gt; restoring a snapshotted process<br>
&gt;     &gt; from a given RPi2 on another<br>
&gt;     &gt; RPi2.<br>
&gt;     &gt;<br>
&gt;     &gt; The snapshot/restore works well<br>
&gt;     &gt; on the same RPi2 thanks to the<br>
&gt;     &gt; patch :<br>
&gt;     &gt; <a href="https://lists.openvz.org/" rel="noreferrer" target="_blank">https://lists.openvz.org/</a><br>
&gt;     &gt; pipermail/criu/2016-April/<br>
&gt;     &gt; 027743.html<br>
&gt;     &gt; (Criu-dev version + patch and<br>
&gt;     &gt; Kernel 3.18)<br>
&gt;     &gt;<br>
&gt;     &gt; However when I try to restore a<br>
&gt;     &gt; snapshotted process from a given<br>
&gt;     &gt; RPi2 on another RPi2. (with<br>
&gt;     &gt; exactly the same image installed  ssh -t<br>
&gt;     &gt; on the SD card) I obtain the      <a href="mailto:pi@192.168.0.1">pi@192.168.0.1</a><br>
&gt;     &gt; following error :                 &#39;pid=$(pidof                    scp<br>
&gt;     &gt; (00.091431) Error                 cube2_server);<br>
&gt;     <a href="mailto:pi@192.168.0.1">pi@192.168.0.1</a>:               sudo criu restore<br>
&gt;     &gt; (cgroup.c:1562): cg:  Can&#39;t mount sudo criu dump -D echo          /home/<br>
</div></div>&gt;     pi/       echo &quot;Image   -d -D /home/pi/   echo &quot;Image restored&quot;<br>
<span class="">&gt;     &gt; controller dir                    /home/pi/         &quot;Snapshotted&quot;<br>
&gt;     checkpoint/* /  transferred&quot;  checkpoint/<br>
&gt;      --------------------------------<br>
&gt;     &gt; .criu.cgyard.lg48ci/cpuset: No    checkpoint/ -t                  home/pi<br>
</span>&gt;     /                      --shell-job<br>
<div class="HOEnZb"><div class="h5">&gt;     &gt; such file or directory            $pid<br>
&gt;     checkpoint/                   --tcp-established<br>
&gt;     &gt; (the snapshot process has         --tcp-established<br>
&gt;     &gt; succeeded on the first Rpi2)      --shell-job&#39;<br>
&gt;     &gt;<br>
&gt;     &gt; The dir .criu.cgyard.lg48ci is<br>
&gt;     &gt; indeed empty.<br>
&gt;     &gt; CONFIG_CGROUPS and CONFIG_MEMCG<br>
&gt;     &gt; are enabled (CONFIG_MEMCG_SWAP<br>
&gt;     &gt; and CONFIG_MEMCG_KMEM are<br>
&gt;     &gt; disabled) if that matters...<br>
&gt;     &gt;<br>
&gt;     &gt; Am I doing something wrong here ?<br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     &gt; Thanks again for your help,<br>
&gt;     &gt;<br>
&gt;     &gt; Alex<br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     &gt; Here is the simple script i&#39;m<br>
&gt;     &gt; using to migrate and the full log<br>
&gt;     &gt; of the restore:<br>
&gt;     &gt;<br>
&gt;     &gt; --------------------------------<br>
&gt;<br>
&gt;     &gt; _______________________________________________<br>
&gt;     &gt; CRIU mailing list<br>
&gt;     &gt; <a href="mailto:CRIU@openvz.org">CRIU@openvz.org</a><br>
&gt;     &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>
&gt;<br>
&gt;<br>
</div></div></blockquote></div><br></div>