Page MenuHomeFreeBSD

D12660.id33958.diff
No OneTemporary

D12660.id33958.diff

Index: sys/vm/swap_pager.c
===================================================================
--- sys/vm/swap_pager.c
+++ sys/vm/swap_pager.c
@@ -541,6 +541,14 @@
*/
n -= ((n + 2) / 3);
} while (n > 0);
+
+ /*
+ * uma_zone_reserve_kva() often cannot reserve precisly the
+ * requested size. Account for the slack when calculating
+ * swap_maxpages.
+ */
+ n = uma_zone_get_max(swblk_zone);
+
if (n2 != n)
printf("Swap blk zone entries reduced from %lu to %lu.\n",
n2, n);

File Metadata

Mime Type
text/plain
Expires
Tue, Feb 10, 10:49 PM (7 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28632800
Default Alt Text
D12660.id33958.diff (499 B)

Event Timeline