summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2016-12-25 21:54:47 +0100
committerRichard Braun <rbraun@sceen.net>2016-12-25 21:54:47 +0100
commita926bb3a5bbd9cd5db6f1435d32312a5499ed62d (patch)
treeb99231245bceea28a1523586992b0ab5408de61f
parent49547a4a10aa594c669dbf4199e2609f84e63a3c (diff)
Increase the size of the kernel map
Sometimes, in particular during IO spikes, the slab allocator needs more virtual memory than is currently available. The new size should also be fine for the Xen version. * i386/i386/vm_param.h (VM_KERNEL_MAP_SIZE): Increase value.
-rw-r--r--i386/i386/vm_param.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/i386/i386/vm_param.h b/i386/i386/vm_param.h
index 2635c2cd..7051b7af 100644
--- a/i386/i386/vm_param.h
+++ b/i386/i386/vm_param.h
@@ -56,12 +56,11 @@
#define VM_MAX_KERNEL_ADDRESS (LINEAR_MAX_KERNEL_ADDRESS - LINEAR_MIN_KERNEL_ADDRESS + VM_MIN_KERNEL_ADDRESS)
#endif /* MACH_PV_PAGETABLES */
-/* Reserve mapping room for kmem. */
-#ifdef MACH_XEN
-#define VM_KERNEL_MAP_SIZE (128 * 1024 * 1024)
-#else
-#define VM_KERNEL_MAP_SIZE (96 * 1024 * 1024)
-#endif
+/*
+ * Reserve mapping room for the kernel map, which includes
+ * the device I/O map and the IPC map.
+ */
+#define VM_KERNEL_MAP_SIZE (152 * 1024 * 1024)
/* The kernel virtual address space is actually located
at high linear addresses.