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

Pavel Emelyanov xemul at parallels.com
Tue Jun 11 01:01:23 EDT 2013


On 06/11/2013 02:10 AM, 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].

Oh :(

> Is the correct way to handle this to close the socket and reopen it
> with remote syscall execution?

It is, but it shouldn't happen "by default". I think, that we can extend the
--ext-unix-sk option to do what it does for unix stream sockets as well.

> Is there a example elsewhere of doing
> close() before a dump and then open() before a restore?

Yes, the mentioned --ext-unix-sk option turns this behavior ON for datagram
unix sockets.

> Thanks!
> 
> Brandon
> 
> [1] http://cgit.freedesktop.org/systemd/systemd/tree/src/journal/journal-send.c#n404
> .
> 




More information about the CRIU mailing list