[CRIU] Increase limit
Federico Reghenzani
federico1.reghenzani at mail.polimi.it
Wed Apr 27 22:32:19 PDT 2016
2016-04-27 15:04 GMT+02:00 Pavel Emelyanov <xemul at virtuozzo.com>:
> On 04/26/2016 08:00 PM, Federico Reghenzani wrote:
> > Hi!
> >
> > I come back with another problem :)
> >
> > CRIU dump fails with this error:
> >
> > (00.020257) Error (files-reg.c:683): Can't dump ghost file
> /tmp/openmpi-sessions-root at it4i-vm-ubuntu_0/53051/1/shared_mem_pool.it4i-vm-ubuntu.1
> of 134217736 size, increase limit
> >
> > Searching in the mailing list I found that I have to increase the limit:
> >
> > criu_set_ghost_limit(1024 * 1024 * 1024); // 1 GB
>
> Hm... Can you try with this patch:
>
> --- a/criu/files-reg.c
> +++ b/criu/files-reg.c
> @@ -679,8 +679,8 @@ static int dump_ghost_remap(char *path, const struct
> stat *st,
> pr_info("Dumping ghost file for fd %d id %#x\n", lfd, id);
>
> if (st->st_size > opts.ghost_limit) {
> - pr_err("Can't dump ghost file %s of %"PRIu64" size,
> increase limit\n",
> - path, st->st_size);
> + pr_err("Can't dump ghost file %s of %"PRIu64" size,
> increase limit (current %zu)\n",
> + path, st->st_size, opts.ghost_limit);
> return -1;
> }
>
>
> It's strange that ghost_limit wasn't applied.
>
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.
Sorry and thank you anyway!
>
> > Unfortunately it does not seem to work. Full log attached.
>
> Not attached :)
>
Yeah, I definitely need a vacation :)
>
> > (CRIU version 2.0)
> >
> > Cheers and thank you as usual,
> > Federico
> > __
> > Federico Reghenzani
> > M.Eng. Student @ Politecnico di Milano
> > Computer Science and Engineering
> >
> >
> >
> >
> > _______________________________________________
> > CRIU mailing list
> > CRIU at openvz.org
> > https://lists.openvz.org/mailman/listinfo/criu
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvz.org/pipermail/criu/attachments/20160428/afc05952/attachment.html>
More information about the CRIU
mailing list