chibiOS, lwIP and socket API: Sending needs a long time
Posted: Mon Jul 16, 2012 12:43 pm
Hi everybody,
I'm currently evaluating chibiOS for a hardware project containing an ethernet port and the lwIP TCP/IP stack on an AT91SAM7X CPU.
We're using the socket API and everything works fine so far, but we are facing some performance issues.
Situation is as follows: The project acts as server waiting for TCP connection requests on a certain port. When connected, it opens
a separate socket per connection and delivers TCP packets with a payload of less than 100 bytes on a regular basis, which is about
five packets per second and socket.
When pushing out these packages, the lwip_send call needs about 100 milliseconds before returning. This is way longer compared to
the old codebase (same own code, same lwIP version and config, different RTOS) -- therefore I'm assuming that this is a
chibiOS-related problem and not (directly) connected to lwIP or our own code.
Any ideas what could cause such a long time?
Thanks and best regards,
Gerhard
I'm currently evaluating chibiOS for a hardware project containing an ethernet port and the lwIP TCP/IP stack on an AT91SAM7X CPU.
We're using the socket API and everything works fine so far, but we are facing some performance issues.
Situation is as follows: The project acts as server waiting for TCP connection requests on a certain port. When connected, it opens
a separate socket per connection and delivers TCP packets with a payload of less than 100 bytes on a regular basis, which is about
five packets per second and socket.
When pushing out these packages, the lwip_send call needs about 100 milliseconds before returning. This is way longer compared to
the old codebase (same own code, same lwIP version and config, different RTOS) -- therefore I'm assuming that this is a
chibiOS-related problem and not (directly) connected to lwIP or our own code.
Any ideas what could cause such a long time?
Thanks and best regards,
Gerhard