* 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. */
| 731 | * - no other swap-ins in the current SWAPIN_INTERVAL. |
| 732 | */ |
| 733 | static bool |
| 734 | swapper_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 | |
| 741 | void |
| 742 | swapper(void) |
no test coverage detected