Changeset View
Changeset View
Standalone View
Standalone View
head/sys/vm/vm_pageout.c
Show First 20 Lines • Show All 1,865 Lines • ▼ Show 20 Lines | while ((u_int)(ticks - last) / hz >= lowmem_period) { | ||||
/* | /* | ||||
* Decrease registered cache sizes. | * Decrease registered cache sizes. | ||||
*/ | */ | ||||
SDT_PROBE0(vm, , , vm__lowmem_scan); | SDT_PROBE0(vm, , , vm__lowmem_scan); | ||||
EVENTHANDLER_INVOKE(vm_lowmem, VM_LOW_PAGES); | EVENTHANDLER_INVOKE(vm_lowmem, VM_LOW_PAGES); | ||||
/* | /* | ||||
* We do this explicitly after the caches have been | * We do this explicitly after the caches have been | ||||
* drained above. | * drained above. If we have a severe page shortage on | ||||
* our hands, completely drain all UMA zones. Otherwise, | |||||
* just prune the caches. | |||||
*/ | */ | ||||
uma_reclaim(); | uma_reclaim(vm_page_count_min() ? UMA_RECLAIM_DRAIN_CPU : | ||||
UMA_RECLAIM_TRIM); | |||||
return (true); | return (true); | ||||
} | } | ||||
return (false); | return (false); | ||||
} | } | ||||
static void | static void | ||||
vm_pageout_worker(void *arg) | vm_pageout_worker(void *arg) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 245 Lines • Show Last 20 Lines |