Index: sys/vm/vm_pageout.c =================================================================== --- sys/vm/vm_pageout.c +++ sys/vm/vm_pageout.c @@ -1815,10 +1815,18 @@ * (page reclamation) scan, then increase the level * and scan again now. Otherwise, sleep a bit and * try again later. + * LM: per discussions with the numa team, don't + * sleep if we have at least 2 cpus, just keep + * scanning. This makes a HUGE difference when + * the system is thrashing on memory, it's the + * difference between usable and borked. */ mtx_unlock(&vm_page_queue_free_mtx); - if (pass >= 1) - pause("psleep", hz / VM_INACT_SCAN_RATE); + if (pass >= 1) { + if (mp_ncpus < 2) { + pause("psleep", hz /VM_INACT_SCAN_RATE); + } + } pass++; } else { /*