[CRIU] Dump Process

Pavel Emelyanov xemul at parallels.com
Wed Jul 16 06:52:15 PDT 2014


On 07/16/2014 05:50 PM, Thouraya TH wrote:
> You use 3 terms interchangeably -- interrupt, stop and kill the process. --Yes
> i want just stay running the ./test.sh script
> 
> root at thouraya-Lenovo-3000-N500:/home/thouraya# criu dump -vvvv -o dump.log *-R* -t 4172 --shell-job && echo OK
> OK
> it works :)
> 
> Please, i have two other questions which are importants for me:
> 1) i'd like to restart process on a new machine
> Here is restore files in my current machine:
> root at thouraya-Lenovo-3000-N500:/home/thouraya/imgDir# criu restore -d -vvv -o restore.log && echo OK
> OK
> root at thouraya-Lenovo-3000-N500:/home/thouraya/imgDir# ls
> cgroup.img         fifo-data.img        netlinksk.img      sigacts-20099.img
> core-19654.img     fifo.img             ns-files.img       signalfd.img
> core-20099.img     filelocks-19654.img  packetsk.img       signal-p-19654.img
> creds-19654.img    filelocks-20099.img  pagemap-19654.img  signal-p-20099.img
> creds-20099.img    fs-19654.img         pagemap-20099.img  signal-s-19654.img
> dump.log           fs-20099.img         pages-1.img        signal-s-20099.img
> eventfd.img        ids-19654.img        pages-2.img        sk-queues.img
> eventpoll.img      ids-20099.img        pipes-data.img     stats-dump
> eventpoll-tfd.img  inetsk.img           pipes.img          stats-restore
> ext-files.img      inotify.img          pstree.img         tty.img
> fanotify.img       inotify-wd.img       reg-files.img      tty-info.img
> fanotify-mark.img  inventory.img        remap-fpath.img    tunfile.img
> fdinfo-2.img       mm-19654.img         restore.log        unixsk.img
> fdinfo-3.img       mm-20099.img         sigacts-19654.img
> 
> Question: i ask what can i do to restart process on the new machine ? 
> i have just to send imgDir to the new machine and run the command criu restore ?

Not only. You also have to make sure that files that are in use by your
processes are available on the other machine.

> i cant't test this now because i haven't another machine with criu ..
> 
> 2) i have to test criu dumping process with an application ( a binary file which uses some input files)
> i have tested this with blcr, when i restart the process on a new machine, i have to migrate input fileson the machine
> is it the same with criu ?

Yes.

Thanks,
Pavel



More information about the CRIU mailing list