Print this page
remove whole-process swapping
Long before Unix supported paging, it used process swapping to reclaim
memory.  The code is there and in theory it runs when we get *extremely* low
on memory.  In practice, it never runs since the definition of low-on-memory
is antiquated. (XXX: define what antiquated means)
You can check the number of swapout/swapin events with kstats:
$ kstat -p ::vm:swapin ::vm:swapout

*** 161,177 **** fsip->fsi_sobj_ops = (uintptr_t)thr.t_sobj_ops; fsip->fsi_tstate = thr.t_state; fsip->fsi_panic = !!(thr.t_flag & T_PANIC); - if ((thr.t_schedflag & TS_LOAD) == 0) { - if (print_warnings) - mdb_warn("thread %p isn't in memory\n", addr); - fsip->fsi_failed = FSI_FAIL_NOTINMEMORY; - return (DCMD_ERR); - } - if (thr.t_stk < thr.t_stkbase) { if (print_warnings) mdb_warn( "stack base or stack top corrupt for thread %p\n", addr); --- 161,170 ----