Skip to content

Support for deleted memory mapped files #2

@jhead

Description

@jhead

I noticed that one of the limitations due to unprivileged checkpointing is:

Memory mapped files that have been deleted are not supported.

Unfortunately, this appears to be a non-starter for any JVM application using Netty. It seems to immediately copy the .so into /tmp and map it into memory, then deletes it.

Error (criu/proc_parse.c:348): Can't open mapped [/tmp/libnetty_transport_native_epoll_x86_643796318373806122906.so (deleted)]: No such file or directory
Error (criu/proc_parse.c:672): Can't open 1000's mapfile link 7f363e210000: No such file or directory
Error (criu/cr-dump.c:1261): Collect mappings (pid: 1000) failed with -1
Error (criu/cr-dump.c:1779): Dumping FAILED.
tar: Removing leading `/' from member names
[ff.checkpoint] (0.329s) `criu dump --tree 1000 --leave-stopped --empty-ns net --tcp-established --skip-in-flight --tcp-close --ext-unix-sk --images-dir /var/fastfreeze/run --cpu-cap --shell-job --file-locks --file-validation filesize --stream` failed with exit_code=1

Any ideas how I might be able to work around this? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions