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