summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_radix.c
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2013-02-15 14:50:36 +0000
committerattilio <attilio@FreeBSD.org>2013-02-15 14:50:36 +0000
commitbe627ca24ca9bcb20e72c6f3595a849fb2ff8eb7 (patch)
tree85371f4eebb3558431e1c35a2ca0e42eb33be623 /sys/vm/vm_radix.c
parent47ecbcf556e09158491ed5ac5477347b70bfad7f (diff)
downloadFreeBSD-src-be627ca24ca9bcb20e72c6f3595a849fb2ff8eb7.zip
FreeBSD-src-be627ca24ca9bcb20e72c6f3595a849fb2ff8eb7.tar.gz
- When panicing for "too small boot cache" reason, print the actual
cache size value - Add a way to specify the size of the boot cache at compile time Sponsored by: EMC / Isilon storage division
Diffstat (limited to 'sys/vm/vm_radix.c')
-rw-r--r--sys/vm/vm_radix.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/vm/vm_radix.c b/sys/vm/vm_radix.c
index 0d5689e..26c8787 100644
--- a/sys/vm/vm_radix.c
+++ b/sys/vm/vm_radix.c
@@ -45,6 +45,7 @@
#include <sys/cdefs.h>
#include "opt_ddb.h"
+#include "opt_vm.h"
#include <sys/param.h>
#include <sys/conf.h>
@@ -67,7 +68,9 @@
#include <ddb/ddb.h>
#endif
+#ifndef VM_RADIX_BOOT_CACHE
#define VM_RADIX_BOOT_CACHE 1500
+#endif
/*
* Such sizes should permit to keep node children contained into a single
@@ -134,7 +137,8 @@ vm_radix_carve_bootcache(void)
struct vm_radix_node *rnode;
if (boot_cache_cnt == VM_RADIX_BOOT_CACHE)
- panic("%s: Increase VM_RADIX_BOOT_CACHE", __func__);
+ panic("%s: Increase VM_RADIX_BOOT_CACHE (%u)", __func__,
+ VM_RADIX_BOOT_CACHE);
rnode = &boot_cache[boot_cache_cnt];
boot_cache_cnt++;
return (rnode);
OpenPOWER on IntegriCloud