public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] FreeBSD Network Stack memory allocation
@ 2008-01-07 22:41 Victor Valencia
  0 siblings, 0 replies; only message in thread
From: Victor Valencia @ 2008-01-07 22:41 UTC (permalink / raw)
  To: ecos-discuss

I am building an application using ecos on an ARM9 processor using the
FreeBSD stack.  The default
configuration for the stack allocates 256k + (max-sockets * 1024).  It then
breaks it up into
1/2 for mbufs, 1/4 for general heap, and 1/4 for clusters.

My question is how do I determine how much memory I should allocate for my
application?  Is
there some formula for determining how much to allocate based on number of
sockets, max packet size,
network throughput, etc?

My application is fairly simple and maintains TCP sockets with up to 4
hosts.  I am trying to minimize
the amount of network memory I need to hopefully under 128k but I have no
way of
verifying analytically if this will work or not.  Any suggestions??

Thanks In Advance

  Victor



-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-01-07 22:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-07 22:41 [ECOS] FreeBSD Network Stack memory allocation Victor Valencia

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).