[lwip-users] lwIP and performance tools

97 views
Skip to first unread message

MaX

unread,
May 3, 2011, 12:16:23 PM5/3/11
to lwip-...@nongnu.org
Hi All,

I have just started to have a look to lwIP and I would like to run some performance test to get an idea of the gain.
Can anyone point me to some docs to compile iperf or netstat with IwIP?

Thanks,
MaX

Tyrel Newton

unread,
May 3, 2011, 12:27:23 PM5/3/11
to Mailing list for lwIP users, MaX
I looked into using iperf with lwIP on my embedded system. The crux of the problem is that iperf needs to be compiled for a POSIX environment. You might get it to successfully wrap around lwIP's socket layer, but you'd probably have to modify the iperf configuration files to target your specific environment.

I did not look at netstat.

Needless to say, this was beyond the scope of what I was looking for. In the end, if you have access to the code for your driver, its a fairly simple matter to modify it so that it collects the statistics for you. The driver usually has to parse out the length of packets anyway, so the information you need is already there.

Tyrel
_______________________________________________ lwip-users mailing list lwip-...@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users


MaX

unread,
May 3, 2011, 12:38:27 PM5/3/11
to new...@tethers.com, Mailing list for lwIP users
Hi Tyrel,

thanks for the fast reply. My target system is a POSIX environment, so this should make the problem easier.
I though that the process of wrapping lwIP's socket layer would be more straightforward.
I will try to work on the iperf configuration files as you suggested.

MaX

Tyrel Newton

unread,
May 3, 2011, 12:48:59 PM5/3/11
to MaX, Mailing list for lwIP users
On 5/3/2011 9:38 AM, MaX wrote:
> Hi Tyrel,
>
> thanks for the fast reply. My target system is a POSIX environment, so
> this should make the problem easier.
> I though that the process of wrapping lwIP's socket layer would be
> more straightforward.
> I will try to work on the iperf configuration files as you suggested.
I'm working with a FreeRTOS environment, so I would have had to make a
lot of modifications to the iperf source code. If you have a POSIX
environment, I think that iperf should be able to wrap around the lwIP
sockets layer without too much trouble. The challenge will be if lwIP
doesn't support the socket options that iperf requires, but I don't know
much about lwIP sockets as I generally don't use it.

Tyrel

Arti Dwivedi

unread,
May 3, 2011, 11:53:30 PM5/3/11
to new...@tethers.com, Mailing list for lwIP users

Hi ,

Please tell me how many number of sockets LwIP supports?

 

Arti



Larsen & Toubro Limited

www.larsentoubro.com

This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.

Simon Goldschmidt

unread,
May 4, 2011, 12:51:38 AM5/4/11
to Mailing list for lwIP users
Arti Dwivedi <Arti.D...@lnties.com> wrote:

Please tell me how many number of sockets LwIP supports?

As many as you configure it to support, I.e. Limited by RAM only. however, lwIP uses linked lists in many places, which have to be traversed, which can make the performance worse when using many sockets. This is because it is optimized for size, not for speed.

Simon
Reply all
Reply to author
Forward
0 new messages