Subject: misc/16046: www: fixes for mclpool faq
To: None <gnats-bugs@gnats.netbsd.org>
From: Tomas Svensson <tsn@gbdev.net>
List: netbsd-bugs
Date: 03/25/2002 11:31:48
>Number:         16046
>Category:       misc
>Synopsis:       www: fixes for mclpool faq
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Mar 25 03:33:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Tomas Svensson
>Release:        NetBSD 1.5ZC
>Organization:
>Environment:
>Description:
	The Documentation/Kernel entry on NMBCLUSTERS is out of date
	and recommends the user to use a value that is already the
	default since NetBSD 1.5.1.
>How-To-Repeat:
>Fix:

Index: index.list
===================================================================
RCS file: /cvsroot/htdocs/Documentation/kernel/index.list,v
retrieving revision 1.61
diff -u -r1.61 index.list
--- index.list	2002/01/26 10:39:52	1.61
+++ index.list	2002/03/25 11:12:37
@@ -168,28 +168,28 @@
 mbuf clusters are used by the network code to store packets and
 other network related data. To fix this you can either add 
 <blockquote>
-	options NMBCLUSTERS=1024<br>
+	options NMBCLUSTERS=2048<br>
 </blockquote>
 to your <a href="#how_to_build_a_kernel">kernel configuration</a>, or patch the
 binary:
 <blockquote>
         # <strong>gdb --write /netbsd</strong><br>
-        (gdb) <strong>set nmbclusters=1024</strong><br> 
+        (gdb) <strong>set nmbclusters=2048</strong><br> 
         (gdb) <strong>quit</strong><br>
 </blockquote>
 Note that if you patch the binary only, you will need to reboot for the change
 to take effect.  If you're on a platform which supports it, you can set the
 value with:
 <blockquote>
-	# <strong>sysctl -w kern.mbuf.nmbclusters=1024</strong><br>
+	# <strong>sysctl -w kern.mbuf.nmbclusters=2048</strong><br>
 </blockquote>
 This will work, but will be lost on the next reboot.  Combining this,
 and patching the binary, would mean no need to build a new kernel or
 reboot.
 <p>
-The default setting for NMBCLUSTERS is 256, so if you have this problem,
-try with e.g. 1024. Busy server machines sometimes need even more.  The
-following will display the current value of NMBCLUSTERS:
+The default setting for NMBCLUSTERS is 1024 (256 in NetBSD 1.5 and earlier), so
+if you have this problem, try with e.g. 2048. Busy server machines sometimes
+need even more.  The following will display the current value of NMBCLUSTERS:
 <blockquote>
 	# <strong>echo 'print nmbclusters' | gdb -q /netbsd</strong><br>
 </blockquote>
>Release-Note:
>Audit-Trail:
>Unformatted: