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: Kieran Mansley
Subject: Re: [lwip-users] Size of Mailbox
Date: Mon, 18 Aug 2008 14:26:26 +0100

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





reply via email to

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