summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/alpha/include/param.h2
-rw-r--r--sys/i386/include/param.h8
-rw-r--r--sys/vm/swap_pager.c4
3 files changed, 8 insertions, 6 deletions
diff --git a/sys/alpha/include/param.h b/sys/alpha/include/param.h
index c17bdc1f4180..6ac8f1adb5f6 100644
--- a/sys/alpha/include/param.h
+++ b/sys/alpha/include/param.h
@@ -136,7 +136,7 @@
* Ceiling on amount of swblock kva space.
*/
#ifndef VM_SWZONE_SIZE_MAX
-#define VM_SWZONE_SIZE_MAX (70 * 1024 * 1024)
+#define VM_SWZONE_SIZE_MAX (32 * 1024 * 1024)
#endif
/*
diff --git a/sys/i386/include/param.h b/sys/i386/include/param.h
index cb2edf30d8f6..4c9bd44edb06 100644
--- a/sys/i386/include/param.h
+++ b/sys/i386/include/param.h
@@ -113,15 +113,17 @@
#define UPAGES 3 /* pages of u-area */
/*
- * Ceiling on amount of swblock kva space.
+ * Ceiling on amount of swblock kva space, can be changed via
+ * kern.maxswzone /boot/loader.conf variable.
*/
#ifndef VM_SWZONE_SIZE_MAX
-#define VM_SWZONE_SIZE_MAX (70 * 1024 * 1024)
+#define VM_SWZONE_SIZE_MAX (32 * 1024 * 1024)
#endif
/*
* Ceiling on size of buffer cache (really only effects write queueing,
- * the VM page cache is not effected).
+ * the VM page cache is not effected), can be changed via
+ * kern.maxbcache /boot/loader.conf variable.
*/
#ifndef VM_BCACHE_SIZE_MAX
#define VM_BCACHE_SIZE_MAX (200 * 1024 * 1024)
diff --git a/sys/vm/swap_pager.c b/sys/vm/swap_pager.c
index 678cc05e9341..318846ef5224 100644
--- a/sys/vm/swap_pager.c
+++ b/sys/vm/swap_pager.c
@@ -301,9 +301,9 @@ swap_pager_swap_init()
* Initialize our zone. Right now I'm just guessing on the number
* we need based on the number of pages in the system. Each swblock
* can hold 16 pages, so this is probably overkill. This reservation
- * is typically limited to around 70MB by default.
+ * is typically limited to around 32MB by default.
*/
- n = cnt.v_page_count;
+ n = cnt.v_page_count / 2;
if (maxswzone && n > maxswzone / sizeof(struct swblock))
n = maxswzone / sizeof(struct swblock);
n2 = n;