Coder Social home page Coder Social logo

Support checkpoint and restore about youki HOT 13 OPEN

Furisto avatar Furisto commented on June 14, 2024 2
Support checkpoint and restore

from youki.

Comments (13)

Furisto avatar Furisto commented on June 14, 2024 2

I have started with the implementation. Will let you know if I need support or if we can divide it up.

from youki.

Furisto avatar Furisto commented on June 14, 2024 2

Hey @duduainankai I could use your help. What I have done so far:

  • I have generated the code for the criu protobuf messages
  • I can start criu in swrk mode
  • I can send a message to criu to dump a simple process
  • The message is processed and the process successfully dumped according to the criu logs. The image files are written to the output folder.
  • I am waiting to receive a response from criu to tell me everything went well
    ... and nothing happens, I am never receiving a response

I am following the steps outlined here and in runc. Maybe you have an idea?

from youki.

adrianreber avatar adrianreber commented on June 14, 2024 1

I started the discussion about a CRIU rust interface here checkpoint-restore/criu#1722

from youki.

adrianreber avatar adrianreber commented on June 14, 2024 1

I only implemented the checkpoint part. I did not find the time yet to implement the restore part of the code. Once restore is implemented this can be closed.

from youki.

lizhemingi avatar lizhemingi commented on June 14, 2024

Is there any thing I can help ?

from youki.

utam0k avatar utam0k commented on June 14, 2024

@Furisto Have you started implementing this yet?

from youki.

lizhemingi avatar lizhemingi commented on June 14, 2024

Hey @duduainankai I could use your help. What I have done so far:

  • I have generated the code for the criu protobuf messages
  • I can start criu in swrk mode
  • I can send a message to criu to dump a simple process
  • The message is processed and the process successfully dumped according to the criu logs. The image files are written to the output folder.
  • I am waiting to receive a response from criu to tell me everything went well
    ... and nothing happens, I am never receiving a response

I am following the steps outlined here and in runc. Maybe you have an idea?

Got. I will check on what you have listed and see what I can do. @Furisto

from youki.

Furisto avatar Furisto commented on June 14, 2024

@adrianreber Thanks! Will take a look.

from youki.

adrianreber avatar adrianreber commented on June 14, 2024

I tried to checkpoint a container and it almost works. The main problem currently is that -d --detach is missing which does a setsid(). Are there any plans to implement --detach soon? With --detach checkpointing should be possible pretty easily.

from youki.

adrianreber avatar adrianreber commented on June 14, 2024

Checkpointing works now, if I do setsid() after starting the container with stdin, stdout, stderr redirected to /dev/null.

It is also important that the youki re-opens /dev/null inside the container like I did it for crun: containers/crun@bbb1fa9

This is also needed: #623

from youki.

utam0k avatar utam0k commented on June 14, 2024

@adrianreber
Awesome!
Oh, I forgot about it 😭 Can I ask you to create an issue?

Are there any plans to implement --detach soon?

from youki.

adrianreber avatar adrianreber commented on June 14, 2024

from youki.

YJDoc2 avatar YJDoc2 commented on June 14, 2024

Sorry to ping the issue subscribers here, but is this still relevant? Two of the thing mentioned in above have been merged/closed, and the first issue has a related PR which has been merged. If I recall correctly, there are also some integration tests regarding the checkpoint-restore functionality. If this support is done, can we close this issue? If not, what else might be needed for it to work?

from youki.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.