artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc6fb40
)
constrain nbuf until we find a better fix
author
deraadt
<deraadt@openbsd.org>
Sun, 23 Feb 1997 20:47:25 +0000
(20:47 +0000)
committer
deraadt
<deraadt@openbsd.org>
Sun, 23 Feb 1997 20:47:25 +0000
(20:47 +0000)
sys/arch/sparc/sparc/machdep.c
patch
|
blob
|
history
diff --git
a/sys/arch/sparc/sparc/machdep.c
b/sys/arch/sparc/sparc/machdep.c
index
adc9ef3
..
2007caa
100644
(file)
--- 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)