diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-02-23 20:47:26 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-02-23 20:47:26 +0000 |
commit | dcc91cdce1f150b1cb6d3c8af2033e3a62ec2477 (patch) | |
tree | 2f5461a532fb6a0438d03a1b21c197db660abec2 | |
parent | f2eddf1056bcb160e8ad4e94fbf4037bfd16598f (diff) |
constrain nbuf until we find a better fix
-rw-r--r-- | sys/arch/sparc/sparc/machdep.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/arch/sparc/sparc/machdep.c b/sys/arch/sparc/sparc/machdep.c index adc9ef338fd..2007caae930 100644 --- a/sys/arch/sparc/sparc/machdep.c +++ b/sys/arch/sparc/sparc/machdep.c @@ -339,6 +339,8 @@ allocsys(v) if (nbuf < 16) nbuf = 16; } + if (nbuf > 200) + nbuf = 200; /* or we run out of PMEGS */ /* Restrict to at most 70% filled kvm */ if (nbuf * MAXBSIZE > (VM_MAX_KERNEL_ADDRESS-VM_MIN_KERNEL_ADDRESS) * 7 / 10) |