[CRIU] Anyone have a plan to support dumping of stream unix connection?

James Bottomley jbottomley at parallels.com
Mon Jun 10 18:23:42 EDT 2013


On Mon, 2013-06-10 at 15:10 -0700, Brandon Philips wrote:
> > On 06/10/2013 10:34 AM, Chanho Park wrote:
> > > I think many processes will use this type(SOCK_STREAM) of socket for IPC.
> > > ProcessA sock(/tmp/socketA) <------> ProcessB connect(/tmp/socketA)
> > > Does anyone have a plan to support the stream connection of unix socket?
> >
> > I agree it might worth implementing it, but we what are the use-cases? If
> > you plan to dump only the process A, then you will not be able to live-migrate
> > it, since unix sockets don't work across network, so what's the reason?
> 
> I hit this error because systemd hooks up stdout to a unix socket[1].

But that should be connected to systemd-journal (the syslog
replacement), surely?  That means you should be checkpointing both
processes together (to keep the socket connection).

James

> Is the correct way to handle this to close the socket and reopen it
> with remote syscall execution? Is there a example elsewhere of doing
> close() before a dump and then open() before a restore?




More information about the CRIU mailing list