[CRIU] Increase limit
Pavel Emelyanov
xemul at virtuozzo.com
Wed Apr 27 06:04:20 PDT 2016
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.
> Unfortunately it does not seem to work. Full log attached.
Not attached :)
> (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
>
More information about the CRIU
mailing list