On one second after # sysctl -w vm.act_scan_laundry_weight=0 executed, kernel is panic with "Fatal trap 18: integer divide fault while kernel mode" I assume that this is not a serious problem, just be happy ;-)
^Triage: I'm sorry that this PR did not get addressed in a timely fashion. By now, the version that it was created against is long out of support. Please re-open if it is still a problem on a supported version.
The bug is still there.
Created attachment 258432 [details] patch Because division by zero: static int vm_pageout_active_target(struct vm_domain *vmd) { int shortage; shortage = vmd->vmd_inactive_target + vm_paging_target(vmd) - (vmd->vmd_pagequeues[PQ_INACTIVE].pq_cnt + vmd->vmd_pagequeues[PQ_LAUNDRY].pq_cnt / act_scan_laundry_weight); shortage *= act_scan_laundry_weight; return (shortage); } Fix in attached patch.