aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/kern/kern_malloc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/kern_malloc.c b/sys/kern/kern_malloc.c
index c39f14359bf9..9e29030fb6f0 100644
--- a/sys/kern/kern_malloc.c
+++ b/sys/kern/kern_malloc.c
@@ -717,6 +717,8 @@ kmeminit(void)
* a given architecture.
*/
mem_size = vm_cnt.v_page_count;
+ if (mem_size <= 32768) /* delphij XXX 128MB */
+ kmem_zmax = PAGE_SIZE;
if (vm_kmem_size_scale < 1)
vm_kmem_size_scale = VM_KMEM_SIZE_SCALE;