Subject: Re: boot panic on sparc with modified generic
To: Clarence Wilkerson <wilker@hopf.math.purdue.edu>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: port-sparc
Date: 12/20/1996 14:47:35
On Fri, 20 Dec 1996 16:43:44 -0500 (EST)
Clarence Wilkerson <wilker@hopf.math.purdue.edu> wrote:
> My recent current kernel, ( supped sources this AM ) panics
> on boot, with the message after boot of
>
> real mem = 4......
> panic: me_alloc : all pmegs gone
> halted
Can you try this patch, please?
Jason R. Thorpe thorpej@nas.nasa.gov
NASA Ames Research Center Home: 408.866.1912
NAS: M/S 258-6 Work: 415.604.0935
Moffett Field, CA 94035 Pager: 415.428.6939
----- snip -----
Index: machdep.c
===================================================================
RCS file: /mastersrc/netbsd/src/sys/arch/sparc/sparc/machdep.c,v
retrieving revision 1.5
diff -c -r1.5 machdep.c
*** machdep.c 1996/11/12 06:24:38 1.5
--- machdep.c 1996/12/20 22:42:00
***************
*** 337,342 ****
--- 337,350 ----
if (nbuf < 16)
nbuf = 16;
}
+
+ /*
+ * XXX stopgap measure to prevent wasting too much KVM on
+ * the sparsely filled buffer cache.
+ */
+ if (nbuf > 128)
+ nbuf = 128;
+
if (nswbuf == 0) {
nswbuf = (nbuf / 2) &~ 1; /* force even */
if (nswbuf > 256)