[CRIU] [PATCH 0/4] add multireq mode to rpc

Pavel Emelyanov xemul at parallels.com
Mon Feb 3 12:02:41 PST 2014


On 02/02/2014 02:55 PM, Ruslan Kuprieiev wrote:
> Providing multireq mode allows us to avoid reconnecting to
> service socket in request sequences.
> 
> Here how it works:
>  1. service gets request of MULTIREQ type with logfile set in opts.
>  2. service sets logfile for this session and waits for requests on the same socket.
>  3. once it got a request, it forks a child and passes this request to it.
>     While that request in process, service waits and processes new requests.
>  4. if request of MULTIREQ type is received again, service turns off.
> 
> Ruslan Kuprieiev (4):
>   service: some preparations for multirequest support
>   rpc: add multireq and ids
>   service: add multireq support
>   test: rpc: add multireq test
> 
>  cr-service.c                  | 222 ++++++++++++++++++++++++------------------
>  protobuf/rpc.proto            |   6 ++
>  test/rpc/multireq-pre-dump.py |  67 +++++++++++++
>  test/rpc/run.sh               |   3 +
>  test/rpc/test.py              |   7 +-
>  5 files changed, 207 insertions(+), 98 deletions(-)
>  create mode 100755 test/rpc/multireq-pre-dump.py
> 


I'll try to look at it nearest days. Plz, make --work-dir working in RPC meanwhile.


More information about the CRIU mailing list