Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F166171371
D33867.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
819 B
Referenced Files
None
Subscribers
None
D33867.diff
View Options
Index: sys/vm/uma_core.c
===================================================================
--- sys/vm/uma_core.c
+++ sys/vm/uma_core.c
@@ -1482,14 +1482,6 @@
{
int cpu;
- /*
- * Polite bucket sizes shrinking was not enough, shrink aggressively.
- */
- if (zone)
- cache_shrink(zone, NULL);
- else
- zone_foreach(cache_shrink, NULL);
-
CPU_FOREACH(cpu) {
thread_lock(curthread);
sched_bind(curthread, cpu);
@@ -5225,6 +5217,7 @@
break;
case UMA_RECLAIM_DRAIN_CPU:
zone_foreach(zone_drain, arg);
+ zone_foreach(cache_shrink, NULL);
pcpu_cache_drain_safe(NULL);
zone_foreach(zone_drain, arg);
break;
@@ -5292,6 +5285,7 @@
zone_drain(zone, arg);
break;
case UMA_RECLAIM_DRAIN_CPU:
+ cache_shrink(zone, NULL);
pcpu_cache_drain_safe(zone);
zone_drain(zone, arg);
break;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Aug 13, 2:10 AM (4 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36606585
Default Alt Text
D33867.diff (819 B)
Attached To
Mode
D33867: uma: don't call cache_shrink() from pcpu_cache_drain_safe()
Attached
Detach File
Event Timeline
Log In to Comment