summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2002-09-16 16:06:34 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2002-09-16 16:06:34 +0000
commit52b428a57fa67b27068f6dde42af0c61aea98163 (patch)
treecc7c0dbeab5e838d4fbd066ed707cefdf2b0710b /sys/arch
parentb21577dc6f81936c7128437e0473d562be0d2194 (diff)
Limit buffer cache size to 35% kvm, not 70.
drahn@ ok
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/macppc/macppc/machdep.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/arch/macppc/macppc/machdep.c b/sys/arch/macppc/macppc/machdep.c
index 27160b81045..66004c2f47c 100644
--- a/sys/arch/macppc/macppc/machdep.c
+++ b/sys/arch/macppc/macppc/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.42 2002/09/15 09:01:58 deraadt Exp $ */
+/* $OpenBSD: machdep.c,v 1.43 2002/09/16 16:06:33 art Exp $ */
/* $NetBSD: machdep.c,v 1.4 1996/10/16 19:33:11 ws Exp $ */
/*
@@ -659,11 +659,11 @@ allocsys(v)
if (nbuf < 16)
nbuf = 16;
}
- /* Restrict to at most 70% filled kvm */
- if (nbuf * MAXBSIZE >
- (VM_MAX_KERNEL_ADDRESS - VM_MIN_KERNEL_ADDRESS) * 7 / 10)
+ /* Restrict to at most 35% filled kvm */
+ if (nbuf >
+ (VM_MAX_KERNEL_ADDRESS-VM_MIN_KERNEL_ADDRESS) / MAXBSIZE * 35 / 100)
nbuf = (VM_MAX_KERNEL_ADDRESS - VM_MIN_KERNEL_ADDRESS) /
- MAXBSIZE * 7 / 10;
+ MAXBSIZE * 35 / 100;
/* More buffer pages than fits into the buffers is senseless. */
if (bufpages > nbuf * MAXBSIZE / PAGE_SIZE)