summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1993-10-29 08:58:34 +0000
committerdg <dg@FreeBSD.org>1993-10-29 08:58:34 +0000
commit1cf0cc74f49ee9a3dca0194fddb100f57d4c789e (patch)
treeaad8cf147a2757a085d4a719bb4d56fdf73ffd1a /sys/amd64
parentce47804b9f948c7aa8c1d6dc64ae53d8141bcc2b (diff)
downloadFreeBSD-src-1cf0cc74f49ee9a3dca0194fddb100f57d4c789e.zip
FreeBSD-src-1cf0cc74f49ee9a3dca0194fddb100f57d4c789e.tar.gz
Change filesystem buffer cache size calculation to be less for 4MB
machines (now 20% of all memory after the first 3MB). This is necessary in order for 4MB machine to be able to rebuild the entire source tree and not run out of physical memory because of fixed memory requirements of processes and kernel VM.
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/amd64/machdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c
index 49b9304..d88c4ea 100644
--- a/sys/amd64/amd64/machdep.c
+++ b/sys/amd64/amd64/machdep.c
@@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
- * $Id: machdep.c,v 1.11 1993/10/14 18:15:35 rgrimes Exp $
+ * $Id: machdep.c,v 1.12 1993/10/15 10:34:22 rgrimes Exp $
*/
#include "npx.h"
@@ -203,7 +203,7 @@ again:
* We allocate 1/2 as many swap buffer headers as file i/o buffers.
*/
if (bufpages == 0)
- bufpages = (ctob(physmem) - 2048*1024) / NBPG / 5;
+ bufpages = (physmem << PAGE_SHIFT - 3072*1024) / NBPG / 5;
if (bufpages < 32)
bufpages = 32;
OpenPOWER on IntegriCloud