MCPcopy Create free account
hub / github.com/F-Stack/f-stack / swapper_wkilled_only

Function swapper_wkilled_only

freebsd/vm/vm_swapout.c:733–739  ·  view source on GitHub ↗

* Limit swapper to swap in one non-WKILLED process in MAXSLP/2 * interval, assuming that there is: * - at least one domain that is not suffering from a shortage of free memory; * - no parallel swap-ins; * - no other swap-ins in the current SWAPIN_INTERVAL. */

Source from the content-addressed store, hash-verified

731 * - no other swap-ins in the current SWAPIN_INTERVAL.
732 */
733static bool
734swapper_wkilled_only(void)
735{
736
737 return (vm_page_count_min_set(&all_domains) || swap_inprogress > 0 ||
738 (u_int)(ticks - last_swapin) < SWAPIN_INTERVAL);
739}
740
741void
742swapper(void)

Callers 1

swapperFunction · 0.85

Calls 1

vm_page_count_min_setFunction · 0.85

Tested by

no test coverage detected