summaryrefslogtreecommitdiff
path: root/sys/arch/i386
diff options
context:
space:
mode:
authorBob Beck <beck@cvs.openbsd.org>2009-06-03 21:30:21 +0000
committerBob Beck <beck@cvs.openbsd.org>2009-06-03 21:30:21 +0000
commite4c01a324522cec2879a3f95a917b6434020498a (patch)
treeef6db87f8ac740cc6d4f3d0065d284571f6c9e72 /sys/arch/i386
parentcffdd398610e708a53403eb903038d25b2ce9319 (diff)
add kern.bufcachepercent sysctl to allow adjusting the buffer cache
size on a running system. ok art@, oga@
Diffstat (limited to 'sys/arch/i386')
-rw-r--r--sys/arch/i386/i386/machdep.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/arch/i386/i386/machdep.c b/sys/arch/i386/i386/machdep.c
index b255c2bf145..ad3a266aa0f 100644
--- a/sys/arch/i386/i386/machdep.c
+++ b/sys/arch/i386/i386/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.451 2009/06/03 00:41:48 weingart Exp $ */
+/* $OpenBSD: machdep.c,v 1.452 2009/06/03 21:30:19 beck Exp $ */
/* $NetBSD: machdep.c,v 1.214 1996/11/10 03:16:17 thorpej Exp $ */
/*-
@@ -547,11 +547,6 @@ setup_buffers()
if (bufpages == 0)
bufpages = atop(avail_end) * 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;
}
/*