[CRIU] Restoring multiple copies of the same process

Pavel Emelyanov xemul at parallels.com
Fri Dec 4 04:40:36 PST 2015


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



More information about the CRIU mailing list