Hi Kieran,
Thanks for your reply!
Here is the answer to your questions:
1) I am using TCP API.
2) I didn't change MEMP_NUM_TCP_SEG since you didn't think it was
the problem anyway.
3) Changing #define MEMP_NUM_NETBUF 3 to #define MEMP_NUM_NETBUF 30
did not help.
4) Sorry, but I don't know how to use LWIP_STATS:
In lwipopts.h, I already have #define LWIP_STATS 1, I added
stats_display() to my code, but it displays nothing.
I read into stats.c, first, I am not sure which one is more critical
to monitor (I assume it is the memory?). Secondly, say I wish to
monitor memory since we suspect memory resource, I assume I should
use stats_display_mem, but I have no clue what to complete the call
so that I can do it.
Any pointer on how to proceed?
Thanks again for your time,
Chen
At 12:00 PM 12/14/2010, you wrote:
Send lwip-users mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.nongnu.org/mailman/listinfo/lwip-users
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of lwip-users digest..."
Today's Topics:
1. Re: Re: lwip-users Digest, Vol 88, Issue 15 (Kieran Mansley)
----------------------------------------------------------------------
Message: 1
Date: Tue, 14 Dec 2010 15:28:30 +0000
From: Kieran Mansley <[email protected]>
Subject: Re: [lwip-users] Re: lwip-users Digest, Vol 88, Issue 15
To: Mailing list for lwIP users <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain
On Tue, 2010-12-14 at 10:12 -0500, Chen wrote:
>
> Also attached is lwipopts.h, and I checked a few times, and believed
> I specify a decent tx buffer.
>
> /* TCP sender buffer space (bytes). */
> #define TCP_SND_BUF 30000
>
> Maybe you can point out my mistake in the setting, or maybe there is
> an error in lwip that ignores such setting.
Your buffer size and TCP_SND_QUEUELEN look fine.
Which API are you using? If netconn or sockets API then this is probably
limiting you:
#define MEMP_NUM_NETBUF 3
You also have a relatively small value for this (although clearly this
isn't your current limiting factor):
/* MEMP_NUM_TCP_SEG: the number of simultaneously queued TCP segments.
*/
#define MEMP_NUM_TCP_SEG 9
I would suggest using the LWIP_STATS code to see which resources are
reaching their maximum, and adjusting appropriately.
Thanks
Kieran
------------------------------
_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users
End of lwip-users Digest, Vol 88, Issue 17
******************************************
_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users