[CRIU] Restoring multiple copies of the same process

Christopher Covington cov at codeaurora.org
Tue Dec 8 12:42:08 PST 2015


On 12/08/2015 01:43 PM, Gabriel Southern wrote:
> Thanks I'll be interested to try it when it is ready.  In the meantime
> I'm also looking at the C/R functionality that Ross mentioned is
> available with Docker.

My example for this has been:

criu dump -R -t $pid -v4 -o dump.log -D ckpt
unshare -fp -- criu restore -v4 -o restore0.log -d -D ckpt
unshare -fp -- criu restore -v4 -o restore1.log -d -D ckpt

Regards,
Christopher Covington

> On Fri, Dec 4, 2015 at 4:40 AM, Pavel Emelyanov <xemul at parallels.com
> <mailto:xemul at parallels.com>> wrote:
> 
>     On 12/04/2015 06:08 AM, Gabriel Southern wrote:
>     > Is there a way to restore multiple copies of the same process tree?  My initial naive attempt of just running restore twice for the same checkpoint led to an error saying that the PIDs did not match expected value.
>     >
>     > I looked on the mailing list and found a past discussion about this:
>     >
>     > -----------
>     > https://lists.openvz.org/pipermail/criu/2015-January/018554.html
>     >
>     > I might use the feature for restoring multiple copies of the same process. I
>     > don't really have a good reason for not using a namespace to begin with--just
>     > a little paranoia about it affecting performance and the probably unused
>     > opportunity to reuse existing checkpoints. The following is what I settled on
>     > for no namespace when dumping, but using a namespace on restore.
>     > -----------
>     >
>     > But this is from nearly a year ago so I'm curious if there is any updates, suggestions, or possible issues
>     > with trying to restore and run multiple copies of the same application simultaneously.  Any advice is appreciated.
> 
>     Well, I have a raw patch doing restore of the tree into a fresh new set
>     of namespaces that I plan to get back to after 1.8 to support
>     unprivileged
>     dump and restore. I'll try to rebase it onto master and post on the
>     mailing
>     list early next week :)
> 
>     -- Pavel
> 
> 
> 
> 
> _______________________________________________
> CRIU mailing list
> CRIU at openvz.org
> https://lists.openvz.org/mailman/listinfo/criu
> 


-- 
Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project


More information about the CRIU mailing list