[netperf-talk] Re: Running Netperf on an 11.23 system with VxFS 5.0
Rick Jones
rick.jones2 at hp.com
Thu Jul 12 16:23:09 PDT 2007
Tom McNeal wrote:
> Rick -
>
> Specifying the -4 test option works:
>
> # netperf -- -4
> TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to
> localhost.uklab.veritas.com (127.0.0.1) port 0 AF_INET
> Recv Send Send
> Socket Socket Message Elapsed
> Size Size Size Time Throughput
> bytes bytes bytes secs. 10^6bits/sec
>
> 32768 32768 32768 10.01 2200.55
>
>
> These platforms must be set up to default to PV6, which
> I wasn't noticing....
Well, the other thing to try is to add an AI_ADDRCONFIG (IIRC, check the
getaddinfo manpage) to the getaddrinfo calls and see if that fixes
things. I may have put that into the top of trunk netperf bits:
http://www.netperf.org/svn/netperf2/trunk
if you want to give those a try - hpux.connect.org.uk will have a
subversion depot for HP-UX if you need one. (It is a subversion repository)
rick
>
> Tom
>
> --
> Tom McNeal
> Symantec Corporation
> 650-527-0234
>
> -----Original Message-----
> From: Rick Jones [mailto:rick.jones2 at hp.com]
> Sent: Thursday, July 12, 2007 3:47 PM
> To: Tom McNeal; Richard Jones
> Subject: Re: Running Netperf on an 11.23 system with VxFS 5.0
>
> Tom McNeal wrote:
>
>>Anyway, I'm getting AF_UNSPEC for the netserver port, but I
>>think thats just another name for 0, right?
>
>
> IIRC yes.
>
>
>>I did see your
>>discussions through google in the archives... Anyway, netperf
>>doesn't like it, and also doesn't seem to look at the correct port:
>>
>># netserver
>>Starting netserver at port 12865
>>Starting netserver at hostname 0.0.0.0 port 12865 and family AF_UNSPEC
>>
>># netperf
>>TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to localhost
>
> (::1)
>
>>port 0 AF_INET6
>>netperf: send_tcp_stream: data socket connect failed: Address family
>
> not
>
>>supported by protocol family
>
>
> That means it is trying to establish a data connection from an IPv4
> endpoint to an IPv6 endpoint. Generally considered a no-no.
>
> The control connection was fine.
>
>
>>I rebooted, and tried to specify the family, but that didn't work:
>>
>># netserver -L 0.0.0.0,0
>>Starting netserver at port 12865
>>Starting netserver at hostname 0.0.0.0 port 12865 and family AF_UNSPEC
>
>
> All that changed was the binding of the listen endpoint for the control
> connection, and did nothing for the data connection.
>
>
>>I also looked at some of the email discussions, and I do see that
>>things are in the listen state:
>>
>># netstat -an | grep 12865
>>tcp 0 0 *.12865 *.*
>>LISTEN
>>tcp 0 0 127.0.0.1.12865 127.0.0.1.50265
>>CLOSE_WAIT
>>tcp 0 0 127.0.0.1.50265 127.0.0.1.12865
>>FIN_WAIT_2
>>#
>>
>>So, I guess I'm stuck. I'm assuming this is the right sequence
>>for loopback runs, which is what I wanted.
>
>
> Try something like
>
> netperf ... -- -4
>
> to force the AF_INET for the data connection. I'm guessing that for
> some reason loopback/localhost calls to getaddrinfo() are returning an
> AF_INET6 response first.
>
>
>>Also, I was about to put an entry into /etc/inetd.conf, but I wanted
>>to double check that it was correct:
>>
>>netserver stream tcp nowait root /usr/local/bin/netserver
>>
>>BTW, do you want me to use the netperf email address, or the hp
>>address?
>
>
> Well, joinging netperf-talk at netperf.org might be best since that adds to
>
> the archives.
>
>
>>
>>Tom
>>
>>--
>>Tom McNeal
>>Symantec Corporation
>>650-527-0234
>>
More information about the netperf-talk
mailing list