Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/kern/init_main.c,v rcsdiff: /ftp/cvs/cvsroot/src/sys/kern/init_main.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.358.2.1 retrieving revision 1.358.2.2 diff -u -p -r1.358.2.1 -r1.358.2.2 --- src/sys/kern/init_main.c 2008/06/10 14:51:22 1.358.2.1 +++ src/sys/kern/init_main.c 2008/06/18 16:33:34 1.358.2.2 @@ -1,4 +1,4 @@ -/* $NetBSD: init_main.c,v 1.358.2.1 2008/06/10 14:51:22 simonb Exp $ */ +/* $NetBSD: init_main.c,v 1.358.2.2 2008/06/18 16:33:34 simonb Exp $ */ /*- * Copyright (c) 2008 The NetBSD Foundation, Inc. @@ -97,7 +97,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: init_main.c,v 1.358.2.1 2008/06/10 14:51:22 simonb Exp $"); +__KERNEL_RCSID(0, "$NetBSD: init_main.c,v 1.358.2.2 2008/06/18 16:33:34 simonb Exp $"); #include "opt_ipsec.h" #include "opt_ntp.h" @@ -440,10 +440,11 @@ main(void) /* * If maximum number of vnodes in namei vnode cache is not explicitly * defined in kernel config, adjust the number such as we use roughly - * 1.0% of memory for vnode cache (but not less than NVNODE vnodes). + * 10% of memory for vnodes and associated data structures in the + * assumed worst case. Do not provide fewer than NVNODE vnodes. */ usevnodes = - calc_cache_size(kernel_map, 1, VNODE_VA_MAXPCT) / sizeof(vnode_t); + calc_cache_size(kernel_map, 10, VNODE_VA_MAXPCT) / VNODE_COST; if (usevnodes > desiredvnodes) desiredvnodes = usevnodes; #endif @@ -498,6 +499,9 @@ main(void) /* Initialize the disk wedge subsystem. */ dkwedge_init(); + /* Initialize interfaces. */ + ifinit1(); + /* Configure the system hardware. This will enable interrupts. */ configure();