freebsd-nq/sys/vm
Matthew Dillon ff2b5645b5 Two fixes to the out-of-swap process termination code. First, start killing
processes a little earlier to avoid a deadlock.  Second, when calculating
the 'largest process' do not just count RSS.  Instead count the RSS + SWAP
used by the process.  Without this the code tended to kill small
inconsequential processes like, oh, sshd, rather then one of the many
'eatmem 200MB' I run on a whim :-).  This fix has been extensively tested on
-stable and somewhat tested on -current and will be MFCd in a few days.

Shamed into fixing this by: ps
2001-06-09 18:06:58 +00:00
..
default_pager.c Introduce a global lock for the vm subsystem (vm_mtx). 2001-05-19 01:28:09 +00:00
device_pager.c Assert Giant is held for the device pager alloc and getpages methods since 2001-05-23 22:27:52 +00:00
phys_pager.c Set the phys_pager_alloc_lock to 1 when it is acquired so that it is 2001-05-23 19:52:23 +00:00
pmap.h Unrevert the pmap_map() changes. They weren't broken on x86. 2001-03-07 05:29:21 +00:00
swap_pager.c - Fix the sw_alloc_interlock to actually lock itself when the lock is 2001-05-23 22:31:15 +00:00
swap_pager.h - If swap metadata does not fit into the KVM, reduce the number of 2000-12-13 10:01:00 +00:00
vm_extern.h Remove unused 3rd argument from vsunlock() which abused B_WRITE. 2000-03-13 10:47:24 +00:00
vm_fault.c Take a more conservative approach and still lock Giant around VM faults 2001-05-23 22:09:18 +00:00
vm_glue.c - Lock the VM around the pmap_swapin_proc() call in faultin(). 2001-05-23 22:35:45 +00:00
vm_init.c Sort includes from previous commit. 2001-05-22 05:35:45 +00:00
vm_kern.c Introduce a global lock for the vm subsystem (vm_mtx). 2001-05-19 01:28:09 +00:00
vm_kern.h Fix null-pointer dereference crash when the system is intentionally 2000-02-16 21:11:33 +00:00
vm_map.c Two fixes to the out-of-swap process termination code. First, start killing 2001-06-09 18:06:58 +00:00
vm_map.h Two fixes to the out-of-swap process termination code. First, start killing 2001-06-09 18:06:58 +00:00
vm_meter.c Clean up the code exporting interrupt statistics via sysctl a bit: 2001-06-01 13:23:28 +00:00
vm_mmap.c Stick VM syscalls back under Giant if the BLEED option is not defined. 2001-05-24 18:04:29 +00:00
vm_object.c - Assert that the vm lock is held for all of _vm_object_allocate(). 2001-05-23 22:42:10 +00:00
vm_object.h Introduce a global lock for the vm subsystem (vm_mtx). 2001-05-19 01:28:09 +00:00
vm_page.c This patch implements O_DIRECT about 80% of the way. It takes a patchset 2001-05-24 07:22:27 +00:00
vm_page.h This patch implements O_DIRECT about 80% of the way. It takes a patchset 2001-05-24 07:22:27 +00:00
vm_pageout.c Two fixes to the out-of-swap process termination code. First, start killing 2001-06-09 18:06:58 +00:00
vm_pageout.h Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL" 1999-12-29 05:07:58 +00:00
vm_pager.c Introduce a global lock for the vm subsystem (vm_mtx). 2001-05-19 01:28:09 +00:00
vm_pager.h Introduce a global lock for the vm subsystem (vm_mtx). 2001-05-19 01:28:09 +00:00
vm_param.h Change the way information about swap devices is exported to be more 2001-06-01 22:53:10 +00:00
vm_swap.c Change the way information about swap devices is exported to be more 2001-06-01 22:53:10 +00:00
vm_unix.c Stick VM syscalls back under Giant if the BLEED option is not defined. 2001-05-24 18:04:29 +00:00
vm_zone.c Introduce a global lock for the vm subsystem (vm_mtx). 2001-05-19 01:28:09 +00:00
vm_zone.h Undo part of the tangle of having sys/lock.h and sys/mutex.h included in 2001-05-01 08:13:21 +00:00
vm.h Introduce a global lock for the vm subsystem (vm_mtx). 2001-05-19 01:28:09 +00:00
vnode_pager.c Don't hold the VM lock across VOP's and other things that can sleep. 2001-05-29 16:58:25 +00:00
vnode_pager.h vnode_pager_freepage() is really vm_page_free() in disguise, 2001-04-19 06:18:23 +00:00