summaryrefslogtreecommitdiffstats
path: root/sys/vm/swap_pager.c
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>2002-08-31 21:15:29 +0000
committerdillon <dillon@FreeBSD.org>2002-08-31 21:15:29 +0000
commit1703af0c56813289ea298b2b5a59770581a1f8ae (patch)
tree8d18c05ec24ac093fd6c805468b9b96731525249 /sys/vm/swap_pager.c
parent9e3c08d6b113d845f55b0e7ff27cf14a5475d53d (diff)
downloadFreeBSD-src-1703af0c56813289ea298b2b5a59770581a1f8ae.zip
FreeBSD-src-1703af0c56813289ea298b2b5a59770581a1f8ae.tar.gz
Reduce the maximum KVA reserved for swap meta structures from 70 to 32 MB.
Reduce the swap meta calculation by a factor of 2, it's still massive overkill. X-MFC after: immediately
Diffstat (limited to 'sys/vm/swap_pager.c')
-rw-r--r--sys/vm/swap_pager.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/vm/swap_pager.c b/sys/vm/swap_pager.c
index 7dc703c..53ad161 100644
--- a/sys/vm/swap_pager.c
+++ b/sys/vm/swap_pager.c
@@ -314,9 +314,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;
OpenPOWER on IntegriCloud