diff options
author | 2002-02-21 20:30:15 +0000 | |
---|---|---|
committer | 2002-02-21 20:30:15 +0000 | |
commit | 1f5b1a6d1b0e64ffbf3016f863476e4aa5671732 (patch) | |
tree | 2e9d619ce631b474ce329e9a005ceb1f543650b6 | |
parent | Correctly initialize the compression case. (diff) | |
download | wireguard-openbsd-1f5b1a6d1b0e64ffbf3016f863476e4aa5671732.tar.xz wireguard-openbsd-1f5b1a6d1b0e64ffbf3016f863476e4aa5671732.zip |
There is no need to restrict number of bufs to 200.
It's just a pasto from sparc.
-rw-r--r-- | sys/arch/sparc64/sparc64/machdep.c | 10 |
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) |