Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F152769861
D19337.id54320.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D19337.id54320.diff
View Options
Index: sys/kern/subr_vmem.c
===================================================================
--- sys/kern/subr_vmem.c
+++ sys/kern/subr_vmem.c
@@ -691,9 +691,11 @@
/*
* Reserve enough tags to allocate new tags. We allow multiple
* CPUs to attempt to allocate new tags concurrently to limit
- * false restarts in UMA.
+ * false restarts in UMA. vmem_bt_alloc() allocates from a per-domain
+ * arena, which may involve importing a range from the kernel arena,
+ * so we need to keep at least 2 * BT_MAXALLOC tags reserved.
*/
- uma_zone_reserve(vmem_bt_zone, BT_MAXALLOC * (mp_ncpus + 1) / 2);
+ uma_zone_reserve(vmem_bt_zone, 2 * BT_MAXALLOC * mp_ncpus);
uma_zone_set_allocf(vmem_bt_zone, vmem_bt_alloc);
#endif
}
Index: sys/vm/vm_kern.c
===================================================================
--- sys/vm/vm_kern.c
+++ sys/vm/vm_kern.c
@@ -124,8 +124,8 @@
#if VM_NRESERVLEVEL > 0
#define KVA_QUANTUM_SHIFT (VM_LEVEL_0_ORDER + PAGE_SHIFT)
#else
-/* On non-superpage architectures want large import sizes. */
-#define KVA_QUANTUM_SHIFT (10 + PAGE_SHIFT)
+/* On non-superpage architectures we want large import sizes. */
+#define KVA_QUANTUM_SHIFT (8 + PAGE_SHIFT)
#endif
#define KVA_QUANTUM (1 << KVA_QUANTUM_SHIFT)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 18, 12:22 AM (3 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31687713
Default Alt Text
D19337.id54320.diff (1 KB)
Attached To
Mode
D19337: Improve vmem tuning for platforms without a direct map.
Attached
Detach File
Event Timeline
Log In to Comment