[ECOS] Sockets and files
Thu Nov 27 13:12:00 GMT 2008
My eCos project with the FreeBSD stack is undergoing some more real world tests (put into a more typical network environment).
The network related threads are a web server and an SNMP agent.
Lately I've noticed that the web server thread does not accept connections for about 1 minute after startup.
It used to accept connections within a few seconds.
To avoid running out of sockets, (which seems to be a recurring problem I've seen in this forum)
I've had to double CYGPKG_NET_MAXSOCKETS and then increase CYGPKG_NET_MEM_USAGE to
larger than its default calculation and change CYGPKG_NET_MEMPOOL_SIZE and CYGPKG_NET_MBUFS_SIZE to their new defaults.
Initially this did not help until I also increased FOPEN_MAX, CYGNUM_FILEIO_NFILE and CYGNUM_FILEIO_NFD to be almost
the same as the number of sockets.
I'd like to understand the relationship between these values (sockets and file opens) so I can set these values
by more than just trial and error and possibly find why the 1 minute delay occurs.
Can someone point me at some documentation that explains these relationships or offer advice?
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
More information about the Ecos-discuss