summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2009-02-22 19:58:00 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2009-02-22 19:58:00 +0000
commit578bc06c19a31d5c0d67382fa7421f353dc95448 (patch)
tree55161cb0da709d16453e3ca2160eb97207aaed54
parentd270ea0f4a0e1e1fea493b0a79c080d9b7d879d3 (diff)
Don't enforce a minimum size for nkmempages by default; if the computed
value (based on physmem) is below NKMEMPAGES_MIN, we are on a low memory machine and can not afford more anyway. ok deraadt@ tedu@
-rw-r--r--sys/kern/kern_malloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_malloc.c b/sys/kern/kern_malloc.c
index c7001ed886c..9e3269356ee 100644
--- a/sys/kern/kern_malloc.c
+++ b/sys/kern/kern_malloc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_malloc.c,v 1.78 2008/10/18 12:11:30 kettenis Exp $ */
+/* $OpenBSD: kern_malloc.c,v 1.79 2009/02/22 19:57:59 miod Exp $ */
/* $NetBSD: kern_malloc.c,v 1.15.4.2 1996/06/13 17:10:56 cgd Exp $ */
/*
@@ -65,7 +65,7 @@ u_int nkmempages = NKMEMPAGES;
* Can be overridden by kernel config options.
*/
#ifndef NKMEMPAGES_MIN
-#define NKMEMPAGES_MIN NKMEMPAGES_MIN_DEFAULT
+#define NKMEMPAGES_MIN 0
#endif
u_int nkmempages_min = 0;