[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [microblaze-uclinux] TCP transmit performance
Hi,
I compared my settings with Jim's and the only thing different is that I don't have XFRAME set. (By the way what is it and how can it be set in make menuconfig?). Anyway I think that doesn't matter for the problem.
I compiled in netperf some tracing messages and found out it hangs in a while loop in function getaddrinfo() which is in the uClibc/libc/inet/getaddrinfo.c. Though I don't understand what that loop actually does and why the hangs happens (?).
After all I'm stuck here now, getaddrinfo() of v0.3-rc1 seems to be broken. Anyone out there who can help?
I also tried to tweak the user/netperf sources a bit in a way they should use its own local default implementation of getaddrinfo() which is in user/netperf/src/missing/getaddrinfo.c (it's need is actually detected by ./configure) but that just leads to strange debug outputs like this:
# /bin/netperf -d -H 172.20.20.99
Program name: /bin/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: 1
Debug: 1
Port: 12865
Test name: TCP_STREAM
Test bytes: 0 Test time: 10 Test trans: 0
Host name: 172.20.20.99
installing catcher for all signals
Could not install signal catcher for sig 9, errno 22
Could not install signal catcher for sig 19, errno 22
remotehost is 172.20.20.99 and port 12865
establish_control called with host '172.20.20.99' port '12865' remfam AF_UNSPEC
local '0.0.0.0' port '0' locfam AF_UNSPEC
getaddrinfo returned the following for host '172.20.20.99' port '12865' family AF_UNSPEC
cannonical name: ''
flags: 0 family: AF_INET: socktype: SOCK_STREAM protocol IPPROTO_TCP addrlen 16
sa_family: AF_UNSPEC sadata: 50 46 50 48 46 50
getaddrinfo returned the following for host '0.0.0.0' port '0' family AF_UNSPEC
cannonical name: ''
flags: 0 family: AF_INET: socktype: SOCK_STREAM protocol IPPROTO_TCP addrlen 16
sa_family: AF_UNSPEC sadata: 48 46 48 46 48 0
bound control socket to 0.0.0.0 and 0
successful connection to remote netserver at 172.20.20.99 and 12865
complete_addrinfo using hostname 172.20.20.99 port 0 family AF_UNSPEC type SOCK_STREAM prot IPPROTO_TCP flags 0x0
getaddrinfo returned the following for host '172.20.20.99' port '0' family AF_UNSPEC
cannonical name: ''
flags: 0 family: AF_INET: socktype: SOCK_STREAM protocol IPPROTO_TCP addrlen 16
complete_addrinfo using hostname 0.0.0.0 port 0 family AF_UNSPEC type SOCK_STREAM prot IPPROTO_TCP flags 0x1
getaddrinfo returned the following for host '0.0.0.0' port '0' family AF_UNSPEC
cannonical name: ''
flags: 0 family: AF_INET: socktype: SOCK_STREAM protocol IPPROTO_TCP addrlen 16
TCP STREAM TEST from (184.8.27.16) port 33280 AF_INET to (184.8.27.16) port 33280 AF_INET
create_data_socket: socket 4 obtained...
netperf: set_sock_buffer: send socket size determined to be 16384
netperf: set_sock_buffer: receive socket size determined to be 87380
netperf: create_data_socket: data socket bind failed errno 99
port: 33280
send_tcp_stream: send_socket obtained...
CU, F@lk
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/