Subject: kern/2349: specified value for NVNODE in kernel config file is ignored
To: None <gnats-bugs@NetBSD.ORG>
From: Tor Egge <tegge@idt.unit.no>
List: netbsd-bugs
Date: 04/29/1996 19:42:47
>Number:         2349
>Category:       kern
>Synopsis:       specified value for NVNODE in kernel config file is ignored
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Apr 29 14:05:01 1996
>Last-Modified:
>Originator:     tegge@idt.unit.no
>Organization:
	Norwegian Institute of Science and Technology
>Release:        NetBSD-current
>Environment:
System: NetBSD ikke.idt.unit.no 1.1B NetBSD 1.1B (TEGGE) #13: Tue Apr 23 00:45:57 MET DST 1996 root@ikke.idt.unit.no:/usr/src/sys/arch/i386/compile/TEGGE i386


>Description:
Currently, the line
	options         NVNODE=4000     # We need many vnodes
will have no effect in a kernel config file, since the value is overridden
by the param.c file
>How-To-Repeat:
Repeat { open(), mmap(), close() } 5000 times (mapping in 5000 small files).
>Fix:
*** /usr/src/sys/conf/param.c.orig	Tue Mar 12 13:23:50 1996
--- usr/src/sys/conf/param.c	Tue Mar 19 19:07:59 1996
***************
*** 91,97 ****
--- 91,99 ----
  #define	NPROC (20 + 16 * MAXUSERS)
  int	maxproc = NPROC;
  #define	NTEXT (80 + NPROC / 8)			/* actually the object cache */
+ #ifndef NVNODE
  #define	NVNODE (NPROC + NTEXT + 100)
+ #endif
  int	desiredvnodes = NVNODE;
  int	maxfiles = 3 * (NPROC + MAXUSERS) + 80;
  int	ncallout = 16 + NPROC;

>Audit-Trail:
>Unformatted: