summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2002-02-21 20:30:16 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2002-02-21 20:30:16 +0000
commit6ca8431aa2bdd013284f5d16522fb57fd1ed8f0b (patch)
tree5eff3a9fba5e7d2caf65414ff011f1d646737645 /sys
parenta7f4c15fc53d32513e7a3b6451a503e578c0cd6b (diff)
There is no need to restrict number of bufs to 200.
It's just a pasto from sparc.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/sparc64/sparc64/machdep.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/arch/sparc64/sparc64/machdep.c b/sys/arch/sparc64/sparc64/machdep.c
index 0777a52ad40..c5130b06aab 100644
--- a/sys/arch/sparc64/sparc64/machdep.c
+++ b/sys/arch/sparc64/sparc64/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.36 2002/02/18 17:22:05 jason Exp $ */
+/* $OpenBSD: machdep.c,v 1.37 2002/02/21 20:30:15 art Exp $ */
/* $NetBSD: machdep.c,v 1.108 2001/07/24 19:30:14 eeh Exp $ */
/*-
@@ -397,13 +397,11 @@ allocsys(caddr_t v)
if (nbuf < 16)
nbuf = 16;
}
- if (nbuf > 200)
- nbuf = 200; /* or we run out of PMEGS */
- /* Restrict to at most 70% filled kvm */
+ /* Restrict to at most 30% filled kvm */
if (nbuf * MAXBSIZE >
- (VM_MAX_KERNEL_ADDRESS-VM_MIN_KERNEL_ADDRESS) * 7 / 10)
+ (VM_MAX_KERNEL_ADDRESS-VM_MIN_KERNEL_ADDRESS) * 3 / 10)
nbuf = (VM_MAX_KERNEL_ADDRESS-VM_MIN_KERNEL_ADDRESS) /
- MAXBSIZE * 7 / 10;
+ MAXBSIZE * 3 / 10;
/* More buffer pages than fits into the buffers is senseless. */
if (bufpages > nbuf * MAXBSIZE / PAGE_SIZE)