freebsd-dev/sys/vm
Seigo Tanimura 21cd6e6232 - If swap metadata does not fit into the KVM, reduce the number of
struct swblock entries by dividing the number of the entries by 2
until the swap metadata fits.

- Reject swapon(2) upon failure of swap_zone allocation.

This is just a temporary fix. Better solutions include:
(suggested by:	dillon)

o reserving swap in SWAP_META_PAGES chunks, and
o swapping the swblock structures themselves.

Reviewed by:	alfred, dillon
2000-12-13 10:01:00 +00:00
..
default_pager.c - If swap metadata does not fit into the KVM, reduce the number of 2000-12-13 10:01:00 +00:00
device_pager.c
phys_pager.c Really fix phys_pager: 2000-12-06 21:52:23 +00:00
pmap.h
swap_pager.c - If swap metadata does not fit into the KVM, reduce the number of 2000-12-13 10:01:00 +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
vm_fault.c Add the splvm()'s suggested in PR 20609 to protect vm_pager_page_unswapped(). 2000-11-18 21:11:23 +00:00
vm_glue.c - Change the allproc_lock to use a macro, ALLPROC_LOCK(how), instead 2000-12-13 00:17:05 +00:00
vm_init.c
vm_kern.c - If swap metadata does not fit into the KVM, reduce the number of 2000-12-13 10:01:00 +00:00
vm_kern.h
vm_map.c - If swap metadata does not fit into the KVM, reduce the number of 2000-12-13 10:01:00 +00:00
vm_map.h
vm_meter.c - Change the allproc_lock to use a macro, ALLPROC_LOCK(how), instead 2000-12-13 00:17:05 +00:00
vm_mmap.c
vm_object.c - If swap metadata does not fit into the KVM, reduce the number of 2000-12-13 10:01:00 +00:00
vm_object.h
vm_page.c Implement a low-memory deadlock solution. 2000-11-18 23:06:26 +00:00
vm_page.h Implement a low-memory deadlock solution. 2000-11-18 23:06:26 +00:00
vm_pageout.c - If swap metadata does not fit into the KVM, reduce the number of 2000-12-13 10:01:00 +00:00
vm_pageout.h
vm_pager.c Backed out previous commit. Don't depend on namespace pollution in 2000-12-02 12:03:58 +00:00
vm_pager.h
vm_param.h
vm_swap.c - If swap metadata does not fit into the KVM, reduce the number of 2000-12-13 10:01:00 +00:00
vm_unix.c
vm_zone.c - If swap metadata does not fit into the KVM, reduce the number of 2000-12-13 10:01:00 +00:00
vm_zone.h
vm.h
vnode_pager.c
vnode_pager.h