lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] Size of Mailbox


From: Akshat Bisht
Subject: Re: [lwip-users] Size of Mailbox
Date: Tue, 19 Aug 2008 09:19:01 +0530

Thank you everyone for your valuable inputs.

As of now, i've just to transfer a byte of data over TCP/IP/IPCP/PPP, using a hayes modem (or null modem for testing). I'm familiar with my RTOS and have done the following:
I'm not sure on:
Also i don't have a debug interface to i'm not sure stats)display() would be of any help.

Thanks and regards,

AB

On Mon, Aug 18, 2008 at 7:09 PM, Rishi Khan <address@hidden> wrote:
I would also suggest running for a while and calling stats_display() to see how many mailboxes were used and what the maximum usage was.

Rishi


On Aug 18, 2008, at 9:26 AM, Kieran Mansley wrote:

On Mon, 2008-08-18 at 18:43 +0530, Akshat Bisht wrote:
@rishi... i think you got me wrong. I didn't want to know what size
lwip is making, but what is recommended. I realized later that size
per msg = sizeof(void *) only! how stupid of me.. Thanks and sorry for
wasting your time.

What is recommended will vary depending on the project, what API you
plan to use, how many connections you want to support, what traffic
pattern you have to deal with, what drivers you're running on, how much
memory you have spare etc.  It's impossible to give you an ideal number
I'm afraid.

There are two approaches you can take to find out what's best for your
project:
 - make sure there are lots of everything, and you'll then be unlikely
to run out, but may use more memory than you need to; or
 - start off with a few of everything, run some typical traffic patterns
and see what you run short of.  Increase these resources until you're
able to support the necessary number of connections without running out
of anything.

Hope that helps,

Kieran



_______________________________________________
lwip-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/lwip-users




_______________________________________________
lwip-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/lwip-users


reply via email to

[Prev in Thread] Current Thread [Next in Thread]