2008-03-31 06:07:13 socket speed
Servaes Joordens (NETHERLANDS)
Message: 53359
I wrote a simple server-client socket application (see attachment). The throughput is approx. 5MB, while I expect approx 9-10MB.
How do I enhance the communication speed?
I used the server application in a tcm-bf537bp module, and the client application on a linux host PC.
speed_stream_server.c
speed_stream_client.c
QuoteReplyEditDelete
2008-03-31 08:07:17 Re: socket speed
Robin Getz (UNITED STATES)
Message: 53363 Servaes:
Do you know where the time is being spent? (server or client?)
-Robin
QuoteReplyEditDelete
2008-03-31 08:53:37 Re: socket speed
Servaes Joordens (NETHERLANDS)
Message: 53366
I don't know exactly, but the client side is a very fast PC, so I guess that the blackfin causes the bandwidth limit.
Any ideas how to measure which side is the slow one?
QuoteReplyEditDelete
2008-03-31 09:23:07 Re: socket speed
Robin Getz (UNITED STATES)
Message: 53368 Servaes:
What is the test results if you do the tests on two different PCs?
-Robin
QuoteReplyEditDelete
2008-03-31 09:36:02 Re: socket speed
Servaes Joordens (NETHERLANDS)
Message: 53369
I do not have 2 linux PC's, so I cannot test it correctly.
QuoteReplyEditDelete
2008-03-31 16:01:27 Re: socket speed
Robin Getz (UNITED STATES)
Message: 53389 Servaes:
Just as a test - test it on the same PC. (just make sure you test it with the IP address, not the loopback address).
-Robin
QuoteReplyEditDelete
2008-04-01 14:41:15 Re: socket speed
Servaes Joordens (NETHERLANDS)
Message: 53480
I ran both the applications on the same linux PC on it's ip address (not 127.0.01, but 192.168.0.39).
the throughput is 526MB/s!!! I guess this is a kind of loopback, so this is actually a RAM speed test.
QuoteReplyEditDelete
2008-04-01 16:38:01 Re: socket speed
Robin Getz (UNITED STATES)
Message: 53487 Servaes:
Now run both on the Blackfin. - and make sure it is not a wiring/hub problem.
-Robin
QuoteReplyEditDelete
2008-04-02 11:12:33 Re: socket speed
Servaes Joordens (NETHERLANDS)
Message: 53554 I tried, bu I can't get a connection on it's own ip address.
QuoteReplyEditDelete
2008-04-02 12:48:36 Re: socket speed
Robin Getz (UNITED STATES)
Message: 53558 Servaes:
Does it give you an error?
-Robin
QuoteReplyEditDelete
2008-04-03 03:26:01 Re: socket speed
Servaes Joordens (NETHERLANDS)
Message: 53585
for 127.0.0.1: network unreachable (I disabled loopback in the kernel)
for 192.168.0.40: Connection timed out