Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107477083
D12660.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
518 B
Referenced Files
None
Subscribers
None
D12660.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D12660: Evaluate the real size of the sblk_zone.
Attached
Detach File
Event Timeline
Log In to Comment