Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F112540193
D49349.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
624 B
Referenced Files
None
Subscribers
None
D49349.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
Thu, Mar 20, 2:04 PM (21 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17160587
Default Alt Text
D49349.diff (624 B)
Attached To
Mode
D49349: uma: Avoid excessive per-CPU draining
Attached
Detach File
Event Timeline
Log In to Comment