artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
194e876
)
mv comment to proper place
author
deraadt
<deraadt@openbsd.org>
Wed, 5 Feb 1997 14:28:57 +0000
(14:28 +0000)
committer
deraadt
<deraadt@openbsd.org>
Wed, 5 Feb 1997 14:28:57 +0000
(14:28 +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
ded5e96
..
adc9ef3
100644
(file)
--- a/
sys/arch/sparc/sparc/machdep.c
+++ b/
sys/arch/sparc/sparc/machdep.c
@@
-334,12
+334,12
@@
allocsys(v)
*/
if (bufpages == 0)
bufpages = (physmem / ((100/BUFCACHEPERCENT) / CLSIZE));
- /* Restrict to at most 70% filled kvm */
if (nbuf == 0) {
nbuf = bufpages;
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)
nbuf = (VM_MAX_KERNEL_ADDRESS-VM_MIN_KERNEL_ADDRESS) /