Page MenuHomeFreeBSD

D12660.diff
No OneTemporary

D12660.diff

Index: head/sys/vm/swap_pager.c
===================================================================
--- head/sys/vm/swap_pager.c
+++ head/sys/vm/swap_pager.c
@@ -541,6 +541,14 @@
*/
n -= ((n + 2) / 3);
} while (n > 0);
+
+ /*
+ * Often uma_zone_reserve_kva() cannot reserve exactly the
+ * requested size. Account for the difference 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
Wed, Jan 15, 6:12 PM (14 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15813780
Default Alt Text
D12660.diff (518 B)

Event Timeline