NetBSD Problem Report #16046

Received: (qmail 19069 invoked from network); 25 Mar 2002 11:32:33 -0000
Message-Id: <20020325113148.5580.qmail@h146n1fls31o859.telia.com>
Date: 25 Mar 2002 11:31:48 -0000
From: Tomas Svensson <tsn@gbdev.net>
Reply-To: Tomas Svensson <tsn@gbdev.net>
To: gnats-bugs@gnats.netbsd.org
Subject: www: fixes for mclpool faq
X-Send-Pr-Version: 3.95

>Number:         16046
>Category:       misc
>Synopsis:       www: fixes for mclpool faq
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    www
>State:          closed
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Mar 25 11:33:01 +0000 2002
>Closed-Date:    Tue Jul 16 02:10:49 +0000 2002
>Last-Modified:  Wed May 13 13:26:06 +0000 2015
>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>
         # gdb --write /netbsd<br>
-        (gdb) set nmbclusters=1024<br> 
+        (gdb) set nmbclusters=2048<br> 
         (gdb) quit<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>
-	# sysctl -w kern.mbuf.nmbclusters=1024<br>
+	# sysctl -w kern.mbuf.nmbclusters=2048<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>
 	# echo 'print nmbclusters' | gdb -q /netbsd<br>
 </blockquote>
>Release-Note:
>Audit-Trail:

From: Christoph Badura <bad@bsd.de>
To: gnats-bugs@netbsd.org
Cc:  
Subject: Re: misc/16046: www: fixes for mclpool faq
Date: Tue, 26 Mar 2002 12:40:53 +0100

 IMHO, it would be better to move the paragraph about the default value
 and how to print it to before where the "fix" is suggested.  One might
 add that one can print the value with sysctl(8), too.

 The suggested way to fix this should probably be reworded to suggest doubling
 the value of NMBCLUSTERS until the problem goes away.  Going directly to
 2048 may be counterproductive on small memory machines.

 --chris
Responsible-Changed-From-To: misc-bug-people->www 
Responsible-Changed-By: wiz 
Responsible-Changed-When: Sun May 12 16:48:11 PDT 2002 
Responsible-Changed-Why:  
Relates to webpages. 
State-Changed-From-To: open->closed 
State-Changed-By: jschauma 
State-Changed-When: Mon Jul 15 19:10:24 PDT 2002 
State-Changed-Why:  

I just updated the information as suggested.  Thanks a lot. 


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.