This is the mail archive of the ecos-patches@sources.redhat.com 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]

Net - increase default memory pool size


-- 
Gary Thomas <gary@mlbassoc.com>
MLB Associates
Index: net/bsd_tcpip/current/ChangeLog
===================================================================
RCS file: /misc/cvsfiles/ecos-opt/net/net/bsd_tcpip/current/ChangeLog,v
retrieving revision 1.38
diff -u -5 -p -r1.38 ChangeLog
--- net/bsd_tcpip/current/ChangeLog	10 Dec 2003 12:09:23 -0000	1.38
+++ net/bsd_tcpip/current/ChangeLog	16 Dec 2003 14:45:26 -0000
@@ -1,5 +1,12 @@
+2003-12-16  Gary Thomas  <gary@mlbassoc.com>
+
+	* 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  <gary@mlbassoc.com>
 
 	* include/netinet/in.h: Prototype for inet_ntoa_r()
 
 2003-11-22  Andrew Lunn  <andrew.lunn@ascom.ch>
Index: net/bsd_tcpip/current/cdl/freebsd_net.cdl
===================================================================
RCS file: /misc/cvsfiles/ecos-opt/net/net/bsd_tcpip/current/cdl/freebsd_net.cdl,v
retrieving revision 1.7
diff -u -5 -p -r1.7 freebsd_net.cdl
--- net/bsd_tcpip/current/cdl/freebsd_net.cdl	22 Nov 2003 12:59:20 -0000	1.7
+++ net/bsd_tcpip/current/cdl/freebsd_net.cdl	16 Dec 2003 14:41:59 -0000
@@ -273,14 +273,16 @@ 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 {
         display "Max number of open sockets."
         flavor  data

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