This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Questions about CYGPKG_NET_MEM_USAGE and CYGPKG_NET_MEMPOOL_SIZE
- From: Weili Yao <weili_yao at trimble dot com>
- To: "ecos-discuss at ecos dot sourceware dot org" <ecos-discuss at ecos dot sourceware dot org>
- Date: Wed, 29 Apr 2015 22:41:12 +0000
- Subject: Questions about CYGPKG_NET_MEM_USAGE and CYGPKG_NET_MEMPOOL_SIZE
- Authentication-results: sourceware.org; auth=none
Hello All,
We have devices that are using ECOS BSD_TCP stack for networking. The device supports multiple interfaces such as Ethernet on "eth0", ppp, and Wi-Fi on "eth1" and "eth2". In the ecos.ecc, we set the CYGPKG_NET_MEM_USAGE to 640000 bytes, CYGPKG_NET_MEMPOOL_SIZE to 300000 bytes, and CYGPKG_NET_MAXSOCKETS to 100. In our LAN, we occasionally see no free net_mem_pool, and also we see no free sockets.
My questions are:
1) What will happen when the system runs out of the configured NET_MEM_POOL memory? Will it corrupt the network stacks?
2) Since we see the system sometime runs out of sockets, we intend to double CYGPKG_NET_MAXSOCKETS to 200, then how much is CYGPKG_NET_MEMPOOL_SIZE needed and how much should I set CYGPKG_NET_MEM_USAGE to?
Any suggestions and insights are welcome!
Thank you a lot!
Weili
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss