Re: rsockets and fork

Or Gerlitz
2012-12-02T12:20:03Z

On 29/11/2012 18:27, Hefty, Sean wrote:
> Fork support in rsockets is available now, and netperf should work.

Sean,

Trying the latest librdamcm git (+ the patch I sent to have it build
OK), we weren't able to run netperf

here's the server output
> starting netserver with host '192.168.20.126' port '12865' and family
> AF_UNSPEC
> accept_connections: enter
> set_fdset: enter list 0x22ea840 fd_set 0x7fff7134e040
> setting 3 in fdset
> accept_connection: enter
> spawn_child: enter
> close_listens: enter
> set_fdset: enter list 0x22ea840 fd_set 0x7fff7134e040
> setting 3 in fdset

and this is the client output

> resolve_host called with host '192.168.20.126' port '(null)' family
> AF_UNSPEC
> getaddrinfo returned the following for host '192.168.20.126' port
> '(null)' family AF_UNSPEC
> cannonical name: '192.168.20.126'
> flags: 22 family: AF_INET: socktype: SOCK_STREAM protocol
> IPPROTO_TCP addrlen 16
> sa_family: AF_INET sadata: 0 0 192 168 20 126 0 0 0 0 0 0 0 0 0 0
> scan_omni_args called with the following argument vector
> netperf -v 2 -d -H 192.168.20.126
> Program name: netperf
> Local send alignment: 8
> Local recv alignment: 8
> Remote send alignment: 8
> Remote recv alignment: 8
> Report local CPU 0
> Report remote CPU 0
> Verbosity: 2
> Debug: 1
> Port: 12865
> Test name: TCP_STREAM
> Test bytes: 0 Test time: 10 Test trans: 0
> Host name: 192.168.20.126
>
> installing catcher for all signals
> Could not install signal catcher for sig 32, errno 22
> Could not install signal catcher for sig 33, errno 22
> Could not install signal catcher for sig 65, errno 22
> remotehost is 192.168.20.126 and port 12865
> resolve_host called with host '192.168.20.126' port '12865' family AF_INET
> getaddrinfo returned the following for host '192.168.20.126' port
> '12865' family AF_INET
> cannonical name: '192.168.20.126'
> flags: 22 family: AF_INET: socktype: SOCK_STREAM protocol
> IPPROTO_TCP addrlen 16
> sa_family: AF_INET sadata: 50 65 192 168 20 126 0 0 0 0 0 0 0
> 0 0 0
> resolve_host called with host '0.0.0.0' port '0' family AF_UNSPEC
> getaddrinfo returned the following for host '0.0.0.0' port '0' family
> AF_UNSPEC
> cannonical name: '0.0.0.0'
> flags: 22 family: AF_INET: socktype: SOCK_STREAM protocol
> IPPROTO_TCP addrlen 16
> sa_family: AF_INET sadata: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
> establish_control called with host '192.168.20.126' port '12865'
> remfam AF_INET
> local '0.0.0.0' port '0' locfam AF_UNSPEC
> bound control socket to 0.0.0.0 and 0
> successful connection to remote netserver at 192.168.20.126 and 12865
> recv_response: received a 0 byte response
> recv_response: partial response received: 0 bytes

We used netperf version is 2.5.0

Or.