Subject: kern/17397: defopt/devparam NBUF (and document it)
To: None <gnats-bugs@gnats.netbsd.org>
From: Greg A. Woods <woods@weird.com>
List: netbsd-bugs
Date: 06/25/2002 17:18:00
>Number:         17397
>Category:       kern
>Synopsis:       defopt/devparam NBUF (and document it)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 25 14:19:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Greg A. Woods
>Release:        NetBSD-current 2002/06/23
>Organization:
Planix, Inc.; Toronto, Ontario; Canada
>Environment:
System: NetBSD
>Description:

	NBUF is a tunable option and should be documented and
	defopt'ed/defparam'ed.

>How-To-Repeat:

>Fix:

	a description that I think is correct, for options(4):

     options NBUF=value
     
     Sets the number of buffer headers available, i.e. the number of
     open files that may have a buffer cache entry.  Each buffer header
     requires MAXBSIZE (machine dependent, but usually 65536) bytes.
     The default value is machine dependent, but is usually equal to the
     value of BUFPAGES.  If an architecture dependent VM_MAX_KERNEL_BUF
     constant is defined then NBUF may be reduced at run time so that
     the storage allocated for buffer headers doesn't exceed that limit.

	I think this is everything else that's necessary in this case
	since opt_bufcache.h is already supported or other options.

Index: files
===================================================================
RCS file: /cvs/master/m-NetBSD/main/syssrc/sys/conf/files,v
retrieving revision 1.530
diff -c -c -r1.530 files
*** files	21 May 2002 03:05:00 -0000	1.530
--- files	25 Jun 2002 21:10:32 -0000
***************
*** 113,119 ****
  
  # buffer cache size options
  #
! defparam opt_bufcache.h		BUFCACHE BUFPAGES
  
  # userconf
  #
--- 113,119 ----
  
  # buffer cache size options
  #
! defparam opt_bufcache.h		BUFCACHE BUFPAGES NBUF
  
  # userconf
  #
>Release-Note:
>Audit-Trail:
>Unformatted: