Subject: Re: 4G memory
To: Matt Thomas <matt@3am-software.com>
From: None <itojun@iijlab.net>
List: port-i386
Date: 08/21/2002 07:17:27
>> are there anything that has to be done to run NetBSD 1.6E/i386
>> with 4G memory? my colleague says that it goes to DDB from UVM
>> (yes, i need to get backtrace).
>Decrease BUFPAGES down to a sane number. I use
>options BUFPAGES=0x1000
could we somehow automate this? like below (not sure if it is
entirely correct, since i'm touching MI code):
itojun
Index: kern_allocsys.c
===================================================================
RCS file: /cvsroot/syssrc/sys/kern/kern_allocsys.c,v
retrieving revision 1.18
diff -u -r1.18 kern_allocsys.c
--- kern_allocsys.c 2001/11/12 15:25:05 1.18
+++ kern_allocsys.c 2002/08/20 22:17:12
@@ -171,7 +171,6 @@
panic("bufcache is out of range (%d)\n",
bufcache);
bufpages = physmem / 100 * bufcache;
-
} else {
if (physmem < btoc(2 * 1024 * 1024))
bufpages = physmem / 10;
@@ -180,6 +179,12 @@
20;
}
}
+
+ /*
+ * don't try to use way too much BUFPAGES
+ */
+ if (bufpages > 0x1000)
+ bufpages = 0x1000;
#ifdef DIAGNOSTIC
if (bufpages == 0)