Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178107555
D33867.1795980914.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
819 B
Referenced Files
None
Subscribers
None
D33867.1795980914.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
Sun, Nov 29, 7:35 PM (1 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42087828
Default Alt Text
D33867.1795980914.diff (819 B)
Attached To
Mode
D33867: uma: don't call cache_shrink() from pcpu_cache_drain_safe()
Attached
Detach File
Event Timeline