summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include/vmparam.h
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2007-12-27 16:45:39 +0000
committeralc <alc@FreeBSD.org>2007-12-27 16:45:39 +0000
commit37cdbd87f5bb1a270014c737300881b26dbe2c0c (patch)
tree55ca53f4bcd6d131ca9394e3be1a58050a881ae4 /sys/amd64/include/vmparam.h
parent430e46303c3bc521da09dfc267d0a5fd64c1d689 (diff)
downloadFreeBSD-src-37cdbd87f5bb1a270014c737300881b26dbe2c0c.zip
FreeBSD-src-37cdbd87f5bb1a270014c737300881b26dbe2c0c.tar.gz
Add configuration knobs for the superpage reservation system. Initially,
the reservation will only be enabled on amd64.
Diffstat (limited to 'sys/amd64/include/vmparam.h')
-rw-r--r--sys/amd64/include/vmparam.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/sys/amd64/include/vmparam.h b/sys/amd64/include/vmparam.h
index 50962e5..712b54b 100644
--- a/sys/amd64/include/vmparam.h
+++ b/sys/amd64/include/vmparam.h
@@ -132,6 +132,20 @@
#define VM_NFREEORDER 13
/*
+ * Enable superpage reservations: 1 level.
+ */
+#ifndef VM_NRESERVLEVEL
+#define VM_NRESERVLEVEL 1
+#endif
+
+/*
+ * Level 0 reservations consist of 512 pages.
+ */
+#ifndef VM_LEVEL_0_ORDER
+#define VM_LEVEL_0_ORDER 9
+#endif
+
+/*
* Virtual addresses of things. Derived from the page directory and
* page table indexes from pmap.h for precision.
* Because of the page that is both a PD and PT, it looks a little
OpenPOWER on IntegriCloud