<div dir="ltr"><div class="gmail_extra"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>2016-04-27 15:04 GMT+02:00 Pavel Emelyanov <span dir="ltr"><<a href="mailto:xemul@virtuozzo.com" target="_blank">xemul@virtuozzo.com</a>></span>:<br></div></div></div></div></div></div></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">On 04/26/2016 08:00 PM, Federico Reghenzani wrote:<br>
> Hi!<br>
><br>
> I come back with another problem :)<br>
><br>
> CRIU dump fails with this error:<br>
><br>
> (00.020257) Error (files-reg.c:683): Can't dump ghost file /tmp/openmpi-sessions-root@it4i-vm-ubuntu_0/53051/1/shared_mem_pool.it4i-vm-ubuntu.1 of 134217736 size, increase limit<br>
><br>
> Searching in the mailing list I found that I have to increase the limit:<br>
><br>
> criu_set_ghost_limit(1024 * 1024 * 1024); // 1 GB<br>
<br>
</span>Hm... Can you try with this patch:<br>
<br>
--- a/criu/files-reg.c<br>
+++ b/criu/files-reg.c<br>
@@ -679,8 +679,8 @@ static int dump_ghost_remap(char *path, const struct stat *st,<br>
pr_info("Dumping ghost file for fd %d id %#x\n", lfd, id);<br>
<br>
if (st->st_size > opts.ghost_limit) {<br>
- pr_err("Can't dump ghost file %s of %"PRIu64" size, increase limit\n",<br>
- path, st->st_size);<br>
+ pr_err("Can't dump ghost file %s of %"PRIu64" size, increase limit (current %zu)\n",<br>
+ path, st->st_size, opts.ghost_limit);<br>
return -1;<br>
}<br>
<br>
<br>
It's strange that ghost_limit wasn't applied.<br></blockquote><div><br></div><div>Actually today I cannot reproduce the problem after a `make clean` on my software, probably for a mysterious reason it wasn't compiling the new file with the criu_set_ghost_limit. </div><div><br></div><div>Sorry and thank you anyway!</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<span class=""><br>
> Unfortunately it does not seem to work. Full log attached.<br>
<br>
</span>Not attached :)<br></blockquote><div><br></div><div>Yeah, I definitely need a vacation :)</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<span class="im"><br>
> (CRIU version 2.0)<br>
><br>
> Cheers and thank you as usual,<br>
> Federico<br>
> __<br>
> Federico Reghenzani<br>
> M.Eng. Student @ Politecnico di Milano<br>
> Computer Science and Engineering<br>
><br>
><br>
><br>
><br>
</span><div class=""><div class="h5">> _______________________________________________<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>
</div></div></blockquote></div><br></div></div>