summaryrefslogtreecommitdiff
path: root/sys/arch/sparc
diff options
context:
space:
mode:
authorBob Beck <beck@cvs.openbsd.org>2009-08-02 16:28:41 +0000
committerBob Beck <beck@cvs.openbsd.org>2009-08-02 16:28:41 +0000
commitdd3b8eacde77cc7df789cf96b6e56355467f18c5 (patch)
tree9c55348b269a51c1c38df3aa7b10ceaaae481bc7 /sys/arch/sparc
parentd39d8390343be0240365f612fe409018c18f13d5 (diff)
Dynamic buffer cache support - a re-commit of what was backed out
after c2k9 allows buffer cache to be extended and grow/shrink dynamically tested by many, ok oga@, "why not just commit it" deraadt@
Diffstat (limited to 'sys/arch/sparc')
-rw-r--r--sys/arch/sparc/sparc/machdep.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/arch/sparc/sparc/machdep.c b/sys/arch/sparc/sparc/machdep.c
index 0cc40477def..b54c0096f4b 100644
--- a/sys/arch/sparc/sparc/machdep.c
+++ b/sys/arch/sparc/sparc/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.119 2009/07/13 19:50:00 kettenis Exp $ */
+/* $OpenBSD: machdep.c,v 1.120 2009/08/02 16:28:39 beck Exp $ */
/* $NetBSD: machdep.c,v 1.85 1997/09/12 08:55:02 pk Exp $ */
/*
@@ -204,12 +204,6 @@ cpu_startup()
if (bufpages == 0)
bufpages = physmem * bufcachepercent / 100;
- /* Restrict to at most 25% filled kvm */
- if (bufpages >
- (VM_MAX_KERNEL_ADDRESS-VM_MIN_KERNEL_ADDRESS) / PAGE_SIZE / 4)
- bufpages = (VM_MAX_KERNEL_ADDRESS-VM_MIN_KERNEL_ADDRESS) /
- PAGE_SIZE / 4;
-
/*
* Allocate a submap for exec arguments. This map effectively
* limits the number of processes exec'ing at any time.