# HG changeset patch # User gthomas # Date 1071585960 0 # Node ID 9f065ea84515ad6c45ab61d5052730e11c97743a # Parent 85afbe4f7f1cea7f86f5c9ef0b1aecfe79fda1e3 Increase default memory pool size diff --git a/packages/net/bsd_tcpip/current/ChangeLog b/packages/net/bsd_tcpip/current/ChangeLog --- a/packages/net/bsd_tcpip/current/ChangeLog +++ b/packages/net/bsd_tcpip/current/ChangeLog @@ -1,3 +1,10 @@ +2003-12-16 Gary Thomas + + * cdl/freebsd_net.cdl: Increase default memory pool size to + include at least enough space to allocate PCBs and SOCKETs. + Without this, if the number of open files was raised, the + memory pool was inadequate. + 2003-12-10 Gary Thomas * include/netinet/in.h: Prototype for inet_ntoa_r() diff --git a/packages/net/bsd_tcpip/current/cdl/freebsd_net.cdl b/packages/net/bsd_tcpip/current/cdl/freebsd_net.cdl --- a/packages/net/bsd_tcpip/current/cdl/freebsd_net.cdl +++ b/packages/net/bsd_tcpip/current/cdl/freebsd_net.cdl @@ -275,10 +275,12 @@ cdl_package CYGPKG_NET_FREEBSD_STACK { cdl_option CYGPKG_NET_MEM_USAGE { display "Memory designated for networking buffers." flavor data - default_value 256*1024 + default_value (256*1024)+(CYGPKG_NET_MAXSOCKETS*1024) description " This option controls the amount of memory pre-allocated - for buffers used by the networking code." + for buffers used by the networking code. The number is an + upper limit, with at least enough space to get the stack + initialized." } cdl_option CYGPKG_NET_MAXSOCKETS {