2008-03-17 11:54:09 tcpip speed
Servaes Joordens (NETHERLANDS)
Message: 52588
I want to send images at maximum speed over tcpip (not udp) to another computer. The maximum speed I achieve with sending data across the 100Mbit network is approx. 2.5 MByte. I need at least 5 MByte in order to have a working application.
I think the data throughput will be better when I change the socket-option SO_SNDBUF to a larger value, but it is limited to 208896 bytes. How can I make this send-buffer larger?
Are there other options to speed up communication?
QuoteReplyEditDelete
2008-03-17 12:35:34 Re: tcpip speed
Mike Frysinger (UNITED STATES)
Message: 52590 what hardware are you using ? we get pretty much line rate with the Blackfin on-chip mac (so a BF537-STAMP). simple test is to use wget and have it fetch a large file and write it to /dev/null.
QuoteReplyEditDelete
2008-03-17 14:41:32 Re: tcpip speed
Servaes Joordens (NETHERLANDS)
Message: 52595
I use the bluetechnix tcm-bf537.
I have a simple server-socket, when a client connects to it, It starts sending data blocks of 500KByte in an continuous loop. I use send in a blocking manner.
The client is capable of receiving up to 10MB/s of data. I tested this by running the same program on the linux host PC.
QuoteReplyEditDelete
2008-03-17 14:59:24 Re: tcpip speed
Mike Frysinger (UNITED STATES)
Message: 52596 that isnt a completely fair comparison ... your host pc has a lot more resources at its disposal
make sure you are putting the buffers for the MAC into L1 (look in your kernel configuration menu)
also, run a simple wget test as i suggested before trying to diagnosis your app
QuoteReplyEditDelete
2008-03-17 15:55:12 Re: tcpip speed
Servaes Joordens (NETHERLANDS)
Message: 52601
I want to send data from my embedded system to a host PC. How does that relate to wget?
QuoteReplyEditDelete
2008-03-17 16:38:35 Re: tcpip speed
Mike Frysinger (UNITED STATES)
Message: 52607 the direction shouldnt matter ... if it does, then presumably something is even more messed up in the hardware / software
QuoteReplyEditDelete
2008-03-17 16:47:55 Re: tcpip speed
Servaes Joordens (NETHERLANDS)
Message: 52609
What should I type on the host pc to fetch a file from the target?
or
What should I type on the target to upload a file to the host?
I do not have NFS enabled, so we can only use ip-numbers.