Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177382699
D49349.1794252410.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
624 B
Referenced Files
None
Subscribers
None
D49349.1794252410.diff
View Options
diff --git a/sys/vm/uma_core.c b/sys/vm/uma_core.c
--- a/sys/vm/uma_core.c
+++ b/sys/vm/uma_core.c
@@ -5339,6 +5339,13 @@
zone_foreach(uma_reclaim_domain_cb, &args);
break;
case UMA_RECLAIM_DRAIN_CPU:
+ /*
+ * Reclaim globally visible free items from all zones, then drain
+ * per-CPU buckets, then reclaim items freed while draining.
+ * This approach minimizes expensive context switching needed to
+ * drain each zone's per-CPU buckets.
+ */
+ args.req = UMA_RECLAIM_DRAIN;
zone_foreach(uma_reclaim_domain_cb, &args);
pcpu_cache_drain_safe(NULL);
zone_foreach(uma_reclaim_domain_cb, &args);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 9, 7:26 PM (7 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41619377
Default Alt Text
D49349.1794252410.diff (624 B)
Attached To
Mode
D49349: uma: Avoid excessive per-CPU draining
Attached
Detach File
Event Timeline