This is the mail archive of the mailing list for the eCos project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: CYGPKG_NET_MEM_USAGE in the FreeBSD stack cdl

On 02/02/2011 17:05, Stanislav Meduna wrote:

the formula for CYGPKG_NET_MEM_USAGE in freebsd_net.cdl


is IMHO completely bogus.

First, from my debugging it looks like the stack allocates
1352 bytes per socket:
- 176 for socket
- 280 for UDP
- 616 for TCP
- 280 for raw

Second, these things are allocated from an area of

I don't understand the BSD stack enough to know what exactly
can be allocated and from where, but this is surely wrong -
the pool size expands 256 bytes per additional socket,
whereas it should be 1352 bytes per socket.

Anyone already tried to find the correct way of counting?

I found exactly the same thing previously and got very little response to my email.




-- ------------------------------------------------------------------------ Will Wagner Development Manager Office Tel: +44 (0)20 7371 2032 Carallon Ltd, Studio G20, Shepherds Building, Rockley Rd, London W14 0DA ------------------------------------------------------------------------

Before posting, please read the FAQ:
and search the list archive:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]