summaryrefslogtreecommitdiff
path: root/sys/arch/socppc
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/socppc
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/socppc')
-rw-r--r--sys/arch/socppc/socppc/machdep.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/arch/socppc/socppc/machdep.c b/sys/arch/socppc/socppc/machdep.c
index 1743306806d..e9b77c46f97 100644
--- a/sys/arch/socppc/socppc/machdep.c
+++ b/sys/arch/socppc/socppc/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.10 2009/06/02 21:38:10 drahn Exp $ */
+/* $OpenBSD: machdep.c,v 1.11 2009/06/03 21:30:20 beck Exp $ */
/* $NetBSD: machdep.c,v 1.4 1996/10/16 19:33:11 ws Exp $ */
/*
@@ -772,12 +772,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.