Subject: Re: www/mozilla build on sparc seems to need a custom kernel....
To: NetBSD/sparc Discussion List <port-sparc@NetBSD.ORG>
From: Greg A. Woods <woods@weird.com>
List: port-sparc
Date: 08/20/2001 20:06:24
I just recently wrote:
>
> I'm going to try locking down NBUF and BUFPAGES:
>
> options NBUF=1200 # buffer headers
> options BUFPAGES="(28*1024*1024/CLBYTES)" # 10% of RAM
Obviously that latter setting won't work on sparc as there is no CLBYTES
definition (anymore).
It seems the better setting would be (which actualy compiles! :-):
options BUFCACHE=10 # 10% of RAM
However it turns out that's probably not the problem I encountered.
This seems to be more along the lines of a real solution:
src/sys/arch/sparc/include/param.h:
- #define NKMEMPAGES_MAX_DEFAULT ((6 * 1024 * 1024) >> PAGE_SHIFT)
+ #define NKMEMPAGES_MAX_DEFAULT ((128 * 1024 * 1024) >> PAGE_SHIFT)
I've no idea why NKMEMPAGES_MAX_DEFAULT was the same as NKMEMPAGES_MIN_DEFAULT.
It would seem to be an excessively silly limitation.
I took the "128" from the similar definitions in the i386 variant....
--
Greg A. Woods
+1 416 218-0098 VE3TCP <gwoods@acm.org> <woods@robohack.ca>
Planix, Inc. <woods@planix.com>; Secrets of the Weird <woods@weird.com>